edu.internet2.middleware.grouper.internal.dao
Interface TableIndexDAO

All Superinterfaces:
GrouperDAO
All Known Implementing Classes:
Hib3TableIndexDAO

public interface TableIndexDAO
extends GrouperDAO

Author:
mchyzer $Id$

Method Summary
 void delete(TableIndex tableIndex)
          delete a table index
 TableIndex findById(String id, boolean exceptionIfNotFound)
           
 TableIndex findByType(TableIndexType tableIndexType)
          find by type
 TableIndex reserveIds(TableIndexType tableIndexType, int numberOfIndicesToReserve)
          reserve a certain amount of indices
 void saveOrUpdate(TableIndex tableIndex)
          insert or update a tableIndex
 

Method Detail

saveOrUpdate

void saveOrUpdate(TableIndex tableIndex)
insert or update a tableIndex

Parameters:
tableIndex -

delete

void delete(TableIndex tableIndex)
delete a table index

Parameters:
tableIndex -

findById

TableIndex findById(String id,
                    boolean exceptionIfNotFound)
Parameters:
id -
exceptionIfNotFound -
Returns:
the table index

findByType

TableIndex findByType(TableIndexType tableIndexType)
find by type

Parameters:
tableIndexType -
Returns:
the table index

reserveIds

TableIndex reserveIds(TableIndexType tableIndexType,
                      int numberOfIndicesToReserve)
reserve a certain amount of indices

Parameters:
tableIndexType -
numberOfIndicesToReserve -
Returns:
the tabe index that was saved (subtract the number of indices to reserve to see the start index