|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.toften.jlips.persist.db.pk.IntegerPrimaryKeyHandler
public class IntegerPrimaryKeyHandler
This is a primary key handler for a primary key of
the type Integer
For info about how the key is generated, see
getNextPrimaryKey()
Constructor Summary | |
---|---|
IntegerPrimaryKeyHandler(DBTableInfo tableInfo,
DBTableColumnInfo columnInfo)
Constructor for IntegerPrimaryKeyHandler |
Method Summary | |
---|---|
DBTableColumnInfo |
getColumnInfo()
Return the column info for the column that holds the primary key |
Object |
getLastPrimaryKey()
Returns the last used primary key This might not have any meaning for certain types of primary key types |
Object |
getNextPrimaryKey()
The way this primary key handler generates a new primary key is by using the highest number currently in the database and then incrementing it |
DBTableInfo |
getTableInfo()
Return the table info for the table the primary key handler is used by |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerPrimaryKeyHandler(DBTableInfo tableInfo, DBTableColumnInfo columnInfo)
tableInfo
- the table info for the related tablecolumnInfo
- the column info for the primary key columnMethod Detail |
---|
public Object getNextPrimaryKey()
getNextPrimaryKey
in interface PrimaryKeyHandler
PrimaryKeyHandler.getNextPrimaryKey()
public Object getLastPrimaryKey()
PrimaryKeyHandler
getLastPrimaryKey
in interface PrimaryKeyHandler
PrimaryKeyHandler.getLastPrimaryKey()
public DBTableColumnInfo getColumnInfo()
PrimaryKeyHandler
getColumnInfo
in interface PrimaryKeyHandler
PrimaryKeyHandler.getColumnInfo()
public DBTableInfo getTableInfo()
PrimaryKeyHandler
getTableInfo
in interface PrimaryKeyHandler
PrimaryKeyHandler.getTableInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |