Fields Summary |
---|
private static final long | MAX_KEYSThe maximum number of keys that may be safely generated without
going to the database. You should lower this number for client
applications and other short-lived programs. The number can be
higher for applications with long uptimes. All applications
using the same sequencer, however, should have the same value
for MAX_KEYS . |
private static final HashMap | sequencersAll sequencers currently in memory. |
private String | nameThe name of this sequencer. |
private long | seedThe seed this sequencer will use for generating its ID's. |
private long | sequenceThe current sequence within this sequencer's seed. |
private static final String | CREATE_SEQThe SQL for creating a new sequence in the database. |
private static final int | INS_NAMEConstant for the name parameter. |
private static final int | INS_SEEDConstant for the seed parameter. |
private static final int | INS_UPDATEConstant for the lastUpdate parameter |
private static final String | DEFAULT_DSNThe name of a DSN to use if none is configured in the system
properties. |
private static final String | DSN_PROPThe name of the system property to check for a DSN. |
private static final String | FIND_SEQThe SQL for getting a seed for a sequence from the database. |
private static final int | SEL_NAMEConstant for the name parameter. |
private static final int | SEL_SEEDConstant for the seed column. |
private static final int | SEL_UPDATEConstant for the lastUpdate column. |
private static String | UPDATE_SEQThe SQL for incrementing the seed in the database. |
private static final int | UPD_SEEDConstant for the seed parameter. |
private static final int | UPD_SET_UPDATEConstant for the lastUpdate set parameter |
private static final int | UPD_NAMEConstant for the name parameter. |
private static final int | UPD_WHERE_UPDATEConstant for the lastUpdate parameter. |