public class DBCmdParamList extends Object implements DBCmdParams
Modifier and Type | Field and Description |
---|---|
protected ArrayList<DBCmdParam> |
cmdParams |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
DBCmdParamList() |
DBCmdParamList(DBCmdParams initial) |
DBCmdParamList(int size) |
Modifier and Type | Method and Description |
---|---|
void |
add(DBCmdParam param) |
void |
add(DBCommand cmd,
DataType type,
Object value) |
void |
clear(int capacity) |
void |
completeParamUsage(DBCommand cmd)
internally used to remove unused Command Params from list
Note: Only one thread my generate an SQL statement
|
Object[] |
getParamValues() |
boolean |
isEmpty() |
Iterator<DBCmdParam> |
iterator() |
void |
mergeSubqueryParams(DBCmdParams subQueryParams)
Used to merge CmdParams from a subquery with the current command params list
|
protected void |
notifyParamUsage(DBCmdParam param)
internally used to reorder the command params to match their order of occurance
|
void |
remove(DBCmdParam param) |
void |
resetParamUsage(DBCommand cmd)
internally used to reset the command param usage count.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final org.slf4j.Logger log
protected ArrayList<DBCmdParam> cmdParams
public DBCmdParamList()
public DBCmdParamList(DBCmdParams initial)
public DBCmdParamList(int size)
public boolean isEmpty()
isEmpty
in interface DBCmdParams
public int size()
size
in interface DBCmdParams
public Iterator<DBCmdParam> iterator()
iterator
in interface Iterable<DBCmdParam>
public void clear(int capacity)
public void add(DBCmdParam param)
public void remove(DBCmdParam param)
public Object[] getParamValues()
public void resetParamUsage(DBCommand cmd)
cmd
- the command objectpublic void completeParamUsage(DBCommand cmd)
cmd
- the command objectpublic void mergeSubqueryParams(DBCmdParams subQueryParams)
subQueryParams
- the subquery paramsprotected void notifyParamUsage(DBCmdParam param)
param
- the param being usedCopyright © 2008–2023 Apache Software Foundation. All rights reserved.