|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet
com.knowgate.dataobjs.DBKeySet
public class DBKeySet
Load a primary keys set from the database into a java.util.TreeSet
| Constructor Summary | |
|---|---|
DBKeySet(java.lang.String sTableName,
java.lang.String sColumnName,
java.lang.String sWhereClause,
int iLimit)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.util.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 |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
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 loaded| Method Detail |
|---|
public int load(JDCConnection oConn)
throws java.sql.SQLException
oConn - JDBC Database Connection
java.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 SQL
java.sql.SQLException
public int count(JDCConnection oConn)
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||