Public Member Functions | |
def | __init__ |
def | createIDTable |
def | getNewID |
def | incrementNextID |
Private Attributes | |
__idTableColumnName | |
__idTableColumnType | |
__schema | |
Manages the autoincremental ID values.\n Input: coral.schema object
Definition at line 3 of file IdGenerator.py.
def python.IdGenerator.IdGenerator.__init__ | ( | self, | |
schema | |||
) |
Definition at line 7 of file IdGenerator.py.
Create ID table 'tableName_ID' for the given table.\n Input: name of the table which needs new associated id table Output: name of the id table created
Definition at line 55 of file IdGenerator.py.
References python.IdGenerator.IdGenerator.__idTableColumnName, python.IdGenerator.IdGenerator.__idTableColumnType, python.IdGenerator.IdGenerator.__schema, and python.DBImpl.DBImpl.__schema.
Referenced by dbUtil.dbUtil.createTable().
def python.IdGenerator.IdGenerator.getNewID | ( | self, | |
IDtableName | |||
) |
Return the ID value in the specified ID table.\n Input: ID table name
Definition at line 11 of file IdGenerator.py.
References python.IdGenerator.IdGenerator.__idTableColumnName, and data.
def python.IdGenerator.IdGenerator.incrementNextID | ( | self, | |
IDtableName | |||
) |
Set the nextID in the IDTableName to current id value + 1 .\n Input: ID table name.
Definition at line 27 of file IdGenerator.py.
References python.IdGenerator.IdGenerator.__idTableColumnName, python.IdGenerator.IdGenerator.__idTableColumnType, and data.
|
private |
Definition at line 9 of file IdGenerator.py.
Referenced by python.IdGenerator.IdGenerator.createIDTable(), idDealer.idDealer.generateNextIDForTable(), idDealer.idDealer.getIDColumnDefinition(), idDealer.idDealer.getIDforTable(), python.IdGenerator.IdGenerator.getNewID(), and python.IdGenerator.IdGenerator.incrementNextID().
|
private |
Definition at line 10 of file IdGenerator.py.
Referenced by python.IdGenerator.IdGenerator.createIDTable(), idDealer.idDealer.getIDColumnDefinition(), and python.IdGenerator.IdGenerator.incrementNextID().
|
private |
Definition at line 8 of file IdGenerator.py.
Referenced by python.IdGenerator.IdGenerator.createIDTable().