| Course Teaching | You are Offering Professional Course | Locality Gandhipuram |
The Hibernate Criteria Query Language (HCQL) is used to fetch the records based on the specific criteria. The Criteria interface provides methods to apply criteria such as retreiving all the records of table whose salary is greater than 50000 etc.
Advantage of HCQL
The HCQL provides methods to add criteria, so it is easy for the java programmer to add criteria. The java programmer is able to add many criteria on a query.
Criteria Interface
The Criteria interface provides many methods to specify criteria. The object of Criteria can be obtained by calling the createCriteria() method of Session interface.
Syntax of createCriteria() method of Session interface
public Criteria createCriteria(Class c)
The commonly used methods of Criteria interface are as follows:
public Criteria add(Criterion c) is used to add restrictions.
public Criteria addOrder(Order o) specifies ordering.
public Criteria setFirstResult(int firstResult) specifies the first number of record to be retreived.
public Criteria setMaxResult(int totalResult) specifies the total number of records to be retreived.
public List list() returns list containing object.
public Criteria setProjection(Projection projection) specifies the projection.
Step once At Fu-VISION for Faster growth, Better salary and make your career Bright!
PLS CONTACTFOR MORE DETAILS CALL IMMEDIATE: 9360029290 / 9003206648
Fu-VISION TRANING SOLUTION PVT LTD
COIMBATORE: HEAD OFFICE
NO: 96-A SREE NAGAR,
PALANI AANDAVAR ILLAM, 1nd FLOOR
OPP KRISHNA SWEETS,
AVINASHI ROAD, PEELAMEDU,
HOPES COLLEGE BUS STOP ,
COIMBATORE-641004
COIMBATORE: BRANCH
2nd FLOOR, SAI TOWERS,
DIAGONALLY OPP TO GANGA-YAMUNA-KAVERI THEATRE
ABOVE BAJAJ MOTORCYCLES,
GP (100FT ROAD)
COIMBATORE-641012
MAIL ID: [email protected]
Website:www.fu-vision.com / www.fu-vision.in