SequenceSupport support indicating that
the SQL dialect does not support sequences.
| Modifier and Type | Field and Description |
|---|---|
| public static final SequenceSupport |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getCreateSequenceString(String
The name of the sequence sequenceName)Overrides default org. |
| public String | getCreateSequenceString(String
The name of the sequence sequenceName, int The initial value to apply to 'create sequence' statement initialValue, int The increment value to apply to 'create sequence' statement incrementSize)Overrides default org. |
| public String[] | getCreateSequenceStrings(String
The name of the sequence sequenceName, int The initial value to apply to 'create sequence' statement initialValue, int The increment value to apply to 'create sequence' statement incrementSize)Overrides default org. supportsPooledSequences().
|
| public String | getDropSequenceString(String
The name of the sequence sequenceName)Overrides default org. |
| public String[] | getDropSequenceStrings(String
The name of the sequence sequenceName)Overrides default org. |
| public String | getSelectSequenceNextValString(String
the name of the sequence sequenceName)Implements org. |
| public String | getSequenceNextValString(String
the name of the sequence sequenceName)Overrides default org. |
| public String | getSequenceNextValString(String
the name of the sequence sequenceName, int the increment, in case it needs to be passed explicitly increment)Overrides default org. |
| public boolean | supportsPooledSequences()
Overrides default org. |
| public boolean | supportsSequences()
Overrides default org. |
| INSTANCE | back to summary |
|---|---|
| public static final SequenceSupport INSTANCE | |
| NoSequenceSupport | back to summary |
|---|---|
| public NoSequenceSupport() | |
| getCreateSequenceString | back to summary |
|---|---|
| public String getCreateSequenceString(String sequenceName) throws MappingException Overrides default org. Doc from org. Typically dialects which support sequences can create a sequence with
a single command. This method is a convenience making it easier to
implement
The default definition is to return
Dialects which support sequences and can create a sequence in a single
command need *only* override this method. Dialects which support
sequences but require multiple commands to create a sequence should
override
| |
| getCreateSequenceString | back to summary |
|---|---|
| public String getCreateSequenceString(String sequenceName, int initialValue, int incrementSize) throws MappingException Overrides default org. Doc from org. Typically dialects which support sequences can create a sequence with
a single command. This method is a convenience making it easier to
implement
Overloaded form of getCreateSequenceString(String)
with the string: start with initialValue increment by incrementSize
for the arguments initialValue and incrementSize. Dialects
need to override this method if different key phrases are used to apply the
allocation information.
| |
| getCreateSequenceStrings | back to summary |
|---|---|
| public String[] getCreateSequenceStrings(String sequenceName, int initialValue, int incrementSize) throws MappingException Overrides default org. Doc from org. An optional multi-line form for databases which
| |
| getDropSequenceString | back to summary |
|---|---|
| public String getDropSequenceString(String sequenceName) throws MappingException Overrides default org. Doc from org. Typically dialects which support sequences can drop a sequence
with a single command. This is convenience form of
Dialects which support sequences and can drop a sequence in a
single command need *only* override this method. Dialects
which support sequences but require multiple commands to drop
a sequence should instead override
| |
| getDropSequenceStrings | back to summary |
|---|---|
| public String[] getDropSequenceStrings(String sequenceName) throws MappingException Overrides default org. Doc from org. The multiline script used to drop a sequence.
| |
| getSelectSequenceNextValString | back to summary |
|---|---|
| public String getSelectSequenceNextValString(String sequenceName) throws MappingException Implements org. Doc from org. Generate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement.
This differs from
| |
| getSequenceNextValString | back to summary |
|---|---|
| public String getSequenceNextValString(String sequenceName) throws MappingException Overrides default org. Doc from org. Generate the appropriate select statement to to retrieve the next value of a sequence. This should be a stand alone select statement.
| |
| getSequenceNextValString | back to summary |
|---|---|
| public String getSequenceNextValString(String sequenceName, int increment) throws MappingException Overrides default org. Doc from org. Generate the appropriate select statement to to retrieve the next value of a sequence. This should be a stand alone select statement.
| |
| supportsPooledSequences | back to summary |
|---|---|
| public boolean supportsPooledSequences() Overrides default org. Doc from org. Does this dialect support "pooled" sequences. Not aware of a better name for this. Essentially can we specify the initial and increment values?
| |
| supportsSequences | back to summary |
|---|---|
| public boolean supportsSequences() Overrides default org. Doc from org. Does this dialect support sequences?
| |