public class DBKeySet
extends java.util.TreeSet
Constructor and Description |
---|
DBKeySet(java.lang.String sTableName,
java.lang.String sColumnName,
java.lang.String sWhereClause,
int iLimit) |
Modifier and Type | Method and Description |
---|---|
int |
count(JDCConnection oConn) |
int |
load(JDCConnection oConn)
Load primary keys from the database to this TreeSet
|
int |
load(JDCConnection oConn,
java.lang.Object[] aParams)
Load primary keys from the database to this TreeSet
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet
public DBKeySet(java.lang.String sTableName, java.lang.String sColumnName, java.lang.String sWhereClause, int iLimit)
sTableName
- Table NamesColumnName
- Column NamesWhereClause
- SQL WHERE clauseiLimit
- Absolute maximum number of primary key to be loadedpublic int load(JDCConnection oConn) throws java.sql.SQLException
oConn
- JDBC Database Connectionjava.sql.SQLException
public int load(JDCConnection oConn, java.lang.Object[] aParams) throws java.sql.SQLException
oConn
- JDBC Database ConnectionaParams
- Parameters to be binded to prepared SQLjava.sql.SQLException
public int count(JDCConnection oConn) throws java.sql.SQLException
java.sql.SQLException