|
||||||||||
| 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()
|
|
SelectArg(Object value)
|
|
SelectArg(SqlType sqlType,
Object value)
|
|
SelectArg(String columnName,
Object value)
|
|
| Method Summary | |
|---|---|
protected Object |
getValue()
Return the stored value. |
protected boolean |
isValueSet()
Return true if the value is set. |
void |
setValue(Object value)
Set the value associated with this argument. |
| Methods inherited from class com.j256.ormlite.stmt.BaseSelectArg |
|---|
getColumnName, getFieldType, getSqlArgValue, getSqlType, setMetaInfo, setMetaInfo, 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, getSqlType, setMetaInfo, setMetaInfo, setMetaInfo |
| Constructor Detail |
|---|
public SelectArg()
public SelectArg(String columnName,
Object value)
public SelectArg(SqlType sqlType,
Object value)
public SelectArg(Object value)
| Method Detail |
|---|
protected Object getValue()
BaseSelectArg
getValue in class BaseSelectArgpublic void setValue(Object value)
ArgumentHolder
setValue in interface ArgumentHoldersetValue in class BaseSelectArgprotected boolean isValueSet()
BaseSelectArg
isValueSet in class BaseSelectArg
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||