org.castor.cpa.persistence.sql.keygen
Class HighLowValueHandler<T>

java.lang.Object
  extended by org.castor.cpa.persistence.sql.keygen.HighLowValueHandler<T>

public final class HighLowValueHandler<T>
extends java.lang.Object


Constructor Summary
HighLowValueHandler(java.lang.String table, int grab, KeyGeneratorTypeHandler<T> typeHandler)
           
 
Method Summary
 void bindLast(java.sql.PreparedStatement stmt, int index)
           
 void bindMax(java.sql.PreparedStatement stmt, int index)
           
 void bindTable(java.sql.PreparedStatement stmt, int index)
           
 boolean hasNext()
           
 void init(java.sql.ResultSet rs)
           
 T next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighLowValueHandler

public HighLowValueHandler(java.lang.String table,
                           int grab,
                           KeyGeneratorTypeHandler<T> typeHandler)
Method Detail

init

public void init(java.sql.ResultSet rs)
          throws PersistenceException,
                 java.sql.SQLException
Throws:
PersistenceException
java.sql.SQLException

hasNext

public boolean hasNext()

next

public T next()

bindTable

public void bindTable(java.sql.PreparedStatement stmt,
                      int index)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

bindLast

public void bindLast(java.sql.PreparedStatement stmt,
                     int index)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

bindMax

public void bindMax(java.sql.PreparedStatement stmt,
                    int index)
             throws java.sql.SQLException
Throws:
java.sql.SQLException


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com