|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.field.FieldIncrementor
Used to obtain the "next value" of fields for which the auto-increment value is true
Constructor Summary | |
protected |
FieldIncrementor()
FieldIncrementer constructor |
Method Summary | |
void |
clearValue(Field field)
Clears the next value for the incrementor, which will force the incrementor to read the database to get the most current value. |
protected java.lang.Object |
findLastValue(Table pTable,
Field pField)
Queries the database for the maximum value in the specified column of the specified table |
protected java.lang.Object |
findLastValue(Table pTable,
FieldDescriptorRow pFD)
Queries the database for the maximum value in the specified column of the specified table |
protected java.lang.Object |
findLastValue(Table pTable,
java.lang.String pFieldName)
Deprecated. replaced by findLastValue (Table pTable, Field pField) |
protected java.lang.Object |
getInitialValue(java.lang.Class pType)
Creates an object of the specified type containing its initial value. |
java.lang.Object |
getNextValue(Field pField)
Gets the next value of a field for which the auto-increment value is true. |
java.lang.Object |
getNextValue(FieldDescriptorRow pFD)
Gets the next value of a field for which the auto-increment value is true. |
java.lang.Object |
getNextValue(FieldDescriptorRow pFD,
Table pTable)
Gets the next value of a field for which the auto-increment value is true. |
protected java.lang.Object |
getNextValue(Table pTable,
Field pField,
java.lang.Class pClass)
Gets the next value of a field for which the auto-increment value is true. |
protected java.lang.Object |
getNextValue(Table pTable,
FieldDescriptorRow pFD,
java.lang.Class pClass)
Gets the next value of a field for which the auto-increment value is true. |
protected java.lang.Object |
getNextValue(Table pTable,
FieldDescriptorRow pFD,
Field pField,
java.lang.Class pClass)
Gets the next value of a field for which the auto-increment value is true. |
protected java.util.Map |
getNextValueMap(Table pTable)
Gets the auto-increment Map for a Table |
protected static java.lang.Object |
incrementValue(java.lang.Object pValue)
Returns the result of incrementing the value that is passed in. |
void |
setLastValue(Field pField,
java.lang.Object pLastValue)
Sets the last value of a field for which the auto-increment value is true. |
void |
setNextValue(Field field,
java.lang.Object nextValue)
Sets the next value of a field for which the auto-increment value is true. |
static IFieldIncrementor |
singleton()
Returns the singleton instance of this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FieldIncrementor()
Method Detail |
public void clearValue(Field field) throws CMException
clearValue
in interface IFieldIncrementor
CMException
protected java.lang.Object findLastValue(Table pTable, java.lang.String pFieldName) throws CMException
CMException
protected java.lang.Object findLastValue(Table pTable, Field pField) throws CMException
CMException
protected java.lang.Object findLastValue(Table pTable, FieldDescriptorRow pFD) throws CMException
CMException
protected java.lang.Object getInitialValue(java.lang.Class pType) throws CMException
CMException
public java.lang.Object getNextValue(Field pField) throws CMException
getNextValue
in interface IFieldIncrementor
CMException
public java.lang.Object getNextValue(FieldDescriptorRow pFD, Table pTable) throws CMException
getNextValue
in interface IFieldIncrementor
CMException
public java.lang.Object getNextValue(FieldDescriptorRow pFD) throws CMException
getNextValue
in interface IFieldIncrementor
CMException
protected java.lang.Object getNextValue(Table pTable, Field pField, java.lang.Class pClass) throws CMException
CMException
protected java.lang.Object getNextValue(Table pTable, FieldDescriptorRow pFD, java.lang.Class pClass) throws CMException
CMException
protected java.lang.Object getNextValue(Table pTable, FieldDescriptorRow pFD, Field pField, java.lang.Class pClass) throws CMException
CMException
protected java.util.Map getNextValueMap(Table pTable)
protected static java.lang.Object incrementValue(java.lang.Object pValue) throws DataEngineException
DataEngineException
public void setLastValue(Field pField, java.lang.Object pLastValue) throws CMException
setLastValue
in interface IFieldIncrementor
CMException
public void setNextValue(Field field, java.lang.Object nextValue) throws CMException
setNextValue
in interface IFieldIncrementor
CMException
public static IFieldIncrementor singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |