|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PkGenerator
Defines methods to support automatic primary key generation.
Method Summary | |
---|---|
void |
createAutoPk(DataNode node,
List dbEntities)
Generates necessary database objects to provide automatic primary key support. |
List |
createAutoPkStatements(List dbEntities)
Returns a list of SQL strings needed to generates database objects to provide automatic primary support for the list of entities. |
void |
dropAutoPk(DataNode node,
List dbEntities)
Drops any common database objects associated with automatic primary key generation process. |
List |
dropAutoPkStatements(List dbEntities)
Returns SQL string needed to drop database objects associated with automatic primary key generation. |
Object |
generatePkForDbEntity(DataNode dataNode,
DbEntity ent)
Generates new (unique and non-repeating) primary key for specified DbEntity. |
void |
reset()
Resets any cached primary keys forcing generator to go to the database next time id generation is requested. |
Method Detail |
---|
void createAutoPk(DataNode node, List dbEntities) throws Exception
node
- node that provides access to a DataSource.dbEntities
- a list of entities that require primary key autogeneration
support
Exception
List createAutoPkStatements(List dbEntities)
void dropAutoPk(DataNode node, List dbEntities) throws Exception
node
- node that provides access to a DataSource.dbEntities
- a list of entities whose primary key autogeneration support
should be dropped.
Exception
List dropAutoPkStatements(List dbEntities)
Object generatePkForDbEntity(DataNode dataNode, DbEntity ent) throws Exception
ent
- DbEntity for which automatic PK is generated.
Exception
void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |