Class HighLowValueHandler<T>
- java.lang.Object
-
- org.castor.cpa.persistence.sql.keygen.HighLowValueHandler<T>
-
public final class HighLowValueHandler<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HighLowValueHandler(java.lang.String table, int grab, KeyGeneratorTypeHandler<T> typeHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindLast(java.sql.PreparedStatement stmt, int index)voidbindMax(java.sql.PreparedStatement stmt, int index)voidbindTable(java.sql.PreparedStatement stmt, int index)booleanhasNext()voidinit(java.sql.ResultSet rs)Tnext()
-
-
-
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:
PersistenceExceptionjava.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
-
-