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 Object


Constructor Summary
HighLowValueHandler(String table, int grab, KeyGeneratorTypeHandler<T> typeHandler)
           
 
Method Summary
 void bindLast(PreparedStatement stmt, int index)
           
 void bindMax(PreparedStatement stmt, int index)
           
 void bindTable(PreparedStatement stmt, int index)
           
 boolean hasNext()
           
 void init(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(String table,
                           int grab,
                           KeyGeneratorTypeHandler<T> typeHandler)
Method Detail

init

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

hasNext

public boolean hasNext()

next

public T next()

bindTable

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

bindLast

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

bindMax

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


Copyright © 2010. All Rights Reserved.