|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.table.AbstractTable
org.jpox.store.rdbms.table.TableImpl
org.jpox.store.rdbms.table.SequenceTable
public class SequenceTable
Class defining a table sequence for unique identifiers
| Field Summary |
|---|
| Fields inherited from class org.jpox.store.rdbms.table.AbstractTable |
|---|
columns, columnsByName, dba, ddlDumpWriter, identifier, LOCALISER, state, storeMgr |
| Fields inherited from interface org.jpox.store.rdbms.table.Table |
|---|
TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED, TABLE_TYPE_MISSING, TABLE_TYPE_TABLE, TABLE_TYPE_UNKNOWN, TABLE_TYPE_VIEW |
| Constructor Summary | |
|---|---|
SequenceTable(RDBMSManager storeMgr,
java.util.Properties props)
Constructor |
|
| Method Summary | |
|---|---|
void |
deleteAllSequences(java.sql.Connection conn)
Method to delete all sequences |
void |
deleteSequence(java.lang.String sequenceName,
java.sql.Connection conn)
Method to delete a sequence |
java.util.HashSet |
getFetchAllSequences(java.sql.Connection conn)
Accessor for the sequences |
JavaTypeMapping |
getFieldMapping(AbstractPropertyMetaData fmd)
Accessor the for the mapping for a field store in this table |
JavaTypeMapping |
getIDMapping()
Accessor for a mapping for the ID (PersistenceCapable) for this table. |
java.lang.Long |
getNextVal(java.lang.String sequenceName,
java.sql.Connection conn,
int incrementBy)
Accessor for the nextval of a sequence |
void |
initialize(ClassLoaderResolver clr)
Method to initialise the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceTable(RDBMSManager storeMgr,
java.util.Properties props)
storeMgr - The RDBMSManager for this datastoreprops - The properties to define the table name and column names| Method Detail |
|---|
public void initialize(ClassLoaderResolver clr)
clr - The ClassLoaderResolverpublic JavaTypeMapping getIDMapping()
public java.util.HashSet getFetchAllSequences(java.sql.Connection conn)
throws java.sql.SQLException
conn - Connection for this datastore.
java.sql.SQLException - Thrown when an error occurs in the process.
public java.lang.Long getNextVal(java.lang.String sequenceName,
java.sql.Connection conn,
int incrementBy)
throws java.sql.SQLException
conn - Connection for this datastore.sequenceName - The sequence nameincrementBy - The amount to increment
java.sql.SQLException - Thrown when an error occurs in the process.
public void deleteSequence(java.lang.String sequenceName,
java.sql.Connection conn)
throws java.sql.SQLException
sequenceName - conn - Connection to the datastore
java.sql.SQLException - Thrown when an error occurs deleting the schema.
public void deleteAllSequences(java.sql.Connection conn)
throws java.sql.SQLException
conn - Connection to the datastore
java.sql.SQLException - Thrown when an error occurs deleting.public JavaTypeMapping getFieldMapping(AbstractPropertyMetaData fmd)
fmd - MetaData for the field whose mapping we want
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||