com.syncsoft.plainsql
Class PSsequence

java.lang.Object
  extended by com.syncsoft.plainsql.PSsequence

public class PSsequence
extends java.lang.Object

Portable sequence generator


Constructor Summary
PSsequence(PSconnection conn, java.lang.String sequenceName)
           
 
Method Summary
 void createSequenceEntry()
           
 void createSequenceTable()
           
 int getBatchSize()
           
 PSconnection getConn()
           
 long getHighValue()
           
 long getLast()
           
 long getLowValue()
           
 java.lang.Long getNext()
           
 void getSequenceBatch()
           
 java.lang.String getSequenceName()
           
 java.lang.String getSequenceTableName()
           
 void setBatchSize(int batchSize)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSsequence

public PSsequence(PSconnection conn,
                  java.lang.String sequenceName)
           throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

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.