|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.ormlite.stmt.BaseSelectArg
com.j256.ormlite.stmt.SelectArg
public class SelectArg
An argument to a select SQL statement. After the query is constructed, the caller can set the value on this argument and run the query. Then the argument can be set again and the query re-executed. This is equivalent in SQL to a ? argument.
NOTE: If the argument has not been set by the time the query is executed, an exception will be thrown.
NOTE: For protections sake, the object cannot be reused with different column names.
Constructor Summary | |
---|---|
SelectArg()
|
Method Summary | |
---|---|
protected Object |
getValue()
Return the stored value. |
protected boolean |
isValueSet()
Return true if the value is set. |
void |
setValue(Object value)
Store the value. |
Methods inherited from class com.j256.ormlite.stmt.BaseSelectArg |
---|
getColumnName, getFieldType, getSqlArgValue, setMetaInfo, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.j256.ormlite.stmt.ArgumentHolder |
---|
getColumnName, getFieldType, getSqlArgValue, setMetaInfo |
Constructor Detail |
---|
public SelectArg()
Method Detail |
---|
protected Object getValue()
BaseSelectArg
getValue
in class BaseSelectArg
public void setValue(Object value)
BaseSelectArg
setValue
in interface ArgumentHolder
setValue
in class BaseSelectArg
protected boolean isValueSet()
BaseSelectArg
isValueSet
in class BaseSelectArg
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |