| com.flexive.shared.interfaces.SequencerEngine
All known Subclasses: com.flexive.ejb.beans.SequencerEngineBean,
SequencerEngine | public interface SequencerEngine (Code) | | Interface for the sequencer beans.
The beans generates Id's for any data-table.
It should be used instead of database spezific autoincrements or sequences.
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Inner Class : enum System | |
Field Summary | |
final public static long | MAX_ID |
MAX_ID | final public static long MAX_ID(Code) | | Maximum possible id
|
createSequencer | void createSequencer(String name, boolean allowRollover, long startNumber) throws FxApplicationException(Code) | | Create a new sequencer
Parameters: name - desired name Parameters: allowRollover - allow id's that reach the limit (MAX_ID) to be reset to zero? Parameters: startNumber - the number to start at throws: FxApplicationException - on errors |
getId | long getId(System type) throws FxApplicationException(Code) | | Get a new unique id for the requested type.
Internal method!! Safe to use but of no use to 'end-users'!
Parameters: type - the type (database table) to get an id for new id throws: FxApplicationException - on errors |
|
|