net.sourceforge.backpedal.api.db
Interface BindVariable

All Superinterfaces:
Cloneable
All Known Implementing Classes:
AbstractBindVariable

public interface BindVariable
extends Cloneable


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.
 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(int index, PreparedStatement preparedStatement)
          Call the relevant set() method on preparedStatement but with a index override supplied
 void setInto(PreparedStatement preparedStatement)
          Call the relevant set() method on preparedStatement with index getIndex().
 void setValue(Object value)
           
 

Method Detail

setInto

public void setInto(PreparedStatement preparedStatement)
             throws SQLException
Call the relevant set() method on preparedStatement with index getIndex().

SQLException

setInto

public void setInto(int index,
                    PreparedStatement preparedStatement)
             throws SQLException
Call the relevant set() method on preparedStatement but with a index override supplied

SQLException

getIndex

public int getIndex()
Return the index of my position in the list of bind variables to which I belong.


getValue

public Object getValue()
Return the value I represent i.e. that which will be passed to the set() method on the prepared statement passed to setInto().


getSqlType

public int getSqlType()
Return the value from java.sql.Types that I represent.


setIndex

public void setIndex(int index)

setValue

public void setValue(Object value)

setColumnName

public void setColumnName(String columnName)

clone

public Object clone()
             throws CloneNotSupportedException
CloneNotSupportedException

isNull

public boolean isNull()

getColumnName

public String getColumnName()
Return the name of the column I represent. Might be null is not known.



Copyright © Sourceforge. All Rights Reserved.