Class Hib3TableIndexDAO
java.lang.Object
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TableIndexDAO
- All Implemented Interfaces:
GrouperDAO
,TableIndexDAO
Data Access Object for table index
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(TableIndex tableIndex) delete a table indexfindByType
(TableIndexType type) find by typereserveIds
(TableIndexType tableIndexType, int numberOfIndicesToReserve) reserve a certain amount of indicesvoid
saveOrUpdate
(TableIndex tableIndex) insert or update a tableIndexMethods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, session
-
Field Details
-
testingNumberOfTimesReservedIndexes
public static long testingNumberOfTimesReservedIndexes
-
-
Constructor Details
-
Hib3TableIndexDAO
public Hib3TableIndexDAO()
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceTableIndexDAO
- Returns:
- the table index
- See Also:
-
saveOrUpdate
Description copied from interface:TableIndexDAO
insert or update a tableIndex- Specified by:
saveOrUpdate
in interfaceTableIndexDAO
- See Also:
-
delete
Description copied from interface:TableIndexDAO
delete a table index- Specified by:
delete
in interfaceTableIndexDAO
- See Also:
-
findByType
Description copied from interface:TableIndexDAO
find by type- Specified by:
findByType
in interfaceTableIndexDAO
- Returns:
- the table index
- See Also:
-
TableIndexDAO#findByType(String)
-
reserveIds
Description copied from interface:TableIndexDAO
reserve a certain amount of indices- Specified by:
reserveIds
in interfaceTableIndexDAO
- Returns:
- the tabe index that was saved (subtract the number of indices to reserve to see the start index
- See Also:
-