Class ColumnImpl.AutoNumberGenerator
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.ColumnImpl.AutoNumberGenerator
-
- Enclosing class:
- ColumnImpl
public abstract class ColumnImpl.AutoNumberGenerator extends Object
Base class for the supported autonumber types.- Usage:
- Advanced: This class is for advanced/internal use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ObjectgetLast()Returns the last autonumber generated by this generator.abstract ObjectgetNext(com.healthmarketscience.jackcess.impl.TableImpl.WriteRowState writeRowState)Returns the next autonumber for this generator.abstract DataTypegetType()Returns the type of values generated by this generator.abstract ObjecthandleInsert(com.healthmarketscience.jackcess.impl.TableImpl.WriteRowState writeRowState, Object inRowValue)Returns a valid autonumber for this generator.abstract voidrestoreLast(Object last)Restores a previous autonumber generated by this generator.
-
-
-
Method Detail
-
getLast
public abstract Object getLast()
Returns the last autonumber generated by this generator. Only valid after a call toTable.addRow(java.lang.Object...), otherwise undefined.
-
getNext
public abstract Object getNext(com.healthmarketscience.jackcess.impl.TableImpl.WriteRowState writeRowState)
Returns the next autonumber for this generator.Warning, calling this externally will result in this value being "lost" for the table.
-
handleInsert
public abstract Object handleInsert(com.healthmarketscience.jackcess.impl.TableImpl.WriteRowState writeRowState, Object inRowValue) throws IOException
Returns a valid autonumber for this generator.Warning, calling this externally may result in this value being "lost" for the table.
- Throws:
IOException
-
restoreLast
public abstract void restoreLast(Object last)
Restores a previous autonumber generated by this generator.
-
getType
public abstract DataType getType()
Returns the type of values generated by this generator.
-
-