|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.backpedal.impl.db.AbstractBindVariable
Constructor Summary | |
AbstractBindVariable(int index,
Object valueAsObject,
String columnName)
|
Method Summary | |
Object |
clone()
|
String |
getColumnName()
Return the name of the column I represent. |
int |
getIndex()
Return the index of my position in the list of bind variables to which I belong. |
abstract int |
getSqlType()
Return the value from java.sql.Types that I represent. |
Object |
getValue()
Return the value I represent i.e. |
boolean |
isNull()
|
void |
setColumnName(String columnName)
|
void |
setIndex(int index)
|
void |
setInto(PreparedStatement preparedStatement)
Call the relevant set() method on preparedStatement with index getIndex(). |
void |
setValue(Object value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.backpedal.api.db.BindVariable |
setInto |
Constructor Detail |
public AbstractBindVariable(int index, Object valueAsObject, String columnName)
Method Detail |
public int getIndex()
BindVariable
getIndex
in interface BindVariable
public Object getValue()
BindVariable
getValue
in interface BindVariable
public abstract int getSqlType()
BindVariable
getSqlType
in interface BindVariable
public void setIndex(int index)
setIndex
in interface BindVariable
public void setValue(Object value)
setValue
in interface BindVariable
public void setColumnName(String columnName)
setColumnName
in interface BindVariable
public Object clone() throws CloneNotSupportedException
clone
in interface BindVariable
clone
in class Object
CloneNotSupportedException
public boolean isNull()
isNull
in interface BindVariable
public String getColumnName()
BindVariable
getColumnName
in interface BindVariable
public String toString()
toString
in class Object
public void setInto(PreparedStatement preparedStatement) throws SQLException
BindVariable
setInto
in interface BindVariable
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |