org.apache.empire.db
Class DBDatabaseDriver.DBSeqTable

java.lang.Object
  extended by org.apache.empire.db.DBObject
      extended by org.apache.empire.db.DBExpr
          extended by org.apache.empire.db.DBRowSet
              extended by org.apache.empire.db.DBTable
                  extended by org.apache.empire.db.DBDatabaseDriver.DBSeqTable
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
DBDatabaseDriver

public static class DBDatabaseDriver.DBSeqTable
extends DBTable

This class is used to emulate sequences by using a sequence table. It is used with the executeSQL function and only required for insert statements

See Also:
Serialized Form

Field Summary
 DBColumn C_SEQNAME
           
 DBColumn C_SEQVALUE
           
 DBColumn C_TIMESTAMP
           
 
Fields inherited from class org.apache.empire.db.DBTable
BIGINT, DEFAULT, MEDIUMINT, SMALLINT
 
Fields inherited from class org.apache.empire.db.DBRowSet
columnReferences, columns, comment, db, log, primaryKey, timestampColumn
 
Fields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
 
Constructor Summary
DBDatabaseDriver.DBSeqTable(String tableName, DBDatabase db)
          Constructor
 
Method Summary
 Object getNextValue(String SeqName, long minValue, Connection conn)
           
 
Methods inherited from class org.apache.empire.db.DBTable
addColumn, addColumn, addColumn, addColumn, addColumn, addIndex, addIndex, addSQL, addTimestampColumn, clone, createRecord, deleteRecord, getAlias, getForeignKeyRelations, getIndexes, getName, getPrimaryKey, isCascadeDelete, isUpdateable, setCascadeDelete, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey
 
Methods inherited from class org.apache.empire.db.DBRowSet
addColumnReference, addReferencedColumns, completeInitRecord, count, deleteAllReferences, deleteRecord, deleteReferenceRecords, equals, findById, getColumn, getColumn, getColumnIndex, getColumnIndex, getColumnReferences, getColumns, getComment, getDatabase, getFullName, getId, getKeyColumns, getRecordKey, getRenameTablePhrase, getTimestampColumn, initRecord, initRecord, isColumnReadOnly, isKeyColumn, prepareInitRecord, readRecord, readRecord, recordExists, recordExists, setComment, setKeyConstraints, setTimestampColumn, updateRecord
 
Methods inherited from class org.apache.empire.db.DBExpr
getObjectValue, getValueClass
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C_SEQNAME

public DBColumn C_SEQNAME

C_SEQVALUE

public DBColumn C_SEQVALUE

C_TIMESTAMP

public DBColumn C_TIMESTAMP
Constructor Detail

DBDatabaseDriver.DBSeqTable

public DBDatabaseDriver.DBSeqTable(String tableName,
                                   DBDatabase db)
Constructor

Parameters:
tableName - the table name
db - the database object
Method Detail

getNextValue

public Object getNextValue(String SeqName,
                           long minValue,
                           Connection conn)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.