com.syncsoft.plainsql
Class PSsequence
java.lang.Object
com.syncsoft.plainsql.PSsequence
public class PSsequence
- extends java.lang.Object
Portable sequence generator
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSsequence
public PSsequence(PSconnection conn,
java.lang.String sequenceName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createSequenceEntry
public void createSequenceEntry()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createSequenceTable
public void createSequenceTable()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBatchSize
public int getBatchSize()
- Returns:
- Returns the batchSize.
getConn
public PSconnection getConn()
- Returns:
- Returns the conn.
getHighValue
public long getHighValue()
- Returns:
- Returns the high_value.
getLast
public long getLast()
- Returns:
- Returns the last_allocated.
getLowValue
public long getLowValue()
- Returns:
- Returns the low_value.
getNext
public java.lang.Long getNext()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSequenceBatch
public void getSequenceBatch()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSequenceName
public java.lang.String getSequenceName()
- Returns:
- Returns the sequenceName.
getSequenceTableName
public java.lang.String getSequenceTableName()
- Returns:
- Returns the sequenceTableName.
setBatchSize
public void setBatchSize(int batchSize)
- Parameters:
batchSize - The batchSize to set.