|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.tools.dblook.DB_Sequence
public class DB_Sequence
Dblook implementation for SEQUENCEs.
Constructor Summary | |
---|---|
DB_Sequence()
|
Method Summary | |
---|---|
private static java.lang.String |
createSequenceString(java.lang.String fullName,
java.lang.String dataTypeName,
long startValue,
long minimumValue,
long maximumValue,
long increment,
java.lang.String cycleOption)
Generate DDL for a specific sequence. |
static void |
doSequences(java.sql.Connection conn)
Generate the DDL for all sequences and output it via Logs.java. |
private static java.lang.String |
stripNotNull(java.lang.String datatypeName)
Strip the trailing NOT NULL off of the string representation of a datatype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DB_Sequence()
Method Detail |
---|
public static void doSequences(java.sql.Connection conn) throws java.sql.SQLException
Generate the DDL for all sequences and output it via Logs.java.
conn
- Connection to the source database.
java.sql.SQLException
private static java.lang.String stripNotNull(java.lang.String datatypeName)
private static java.lang.String createSequenceString(java.lang.String fullName, java.lang.String dataTypeName, long startValue, long minimumValue, long maximumValue, long increment, java.lang.String cycleOption) throws java.sql.SQLException
Generate DDL for a specific sequence.
fullName
- Fully qualified name of the sequencedataTypeName
- Name of the datatype of the sequencestartValue
- First value to use in the range of the sequenceminimumValue
- Smallest value in the rangemaximumValue
- Largest value in the rangeincrement
- Step size of the sequencecycleOption
- CYCLE or NO CYCLE
java.sql.SQLException
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |