org.tranql.sql.jdbc.binding
Class AbstractBinding

java.lang.Object
  extended byorg.tranql.sql.jdbc.binding.AbstractBinding
All Implemented Interfaces:
InputBinding, OutputBinding, ResultBinding, SchemaBinding, java.io.Serializable, SQLBinding
Direct Known Subclasses:
BigDecimalBinding, BlobBinding, BooleanBinding, ByteArrayBinding, ByteBinding, CharBinding, DateBinding, DoubleBinding, FloatBinding, IntegerBinding, LongBinding, ShortBinding, SQLDateBinding, StringBinding, TimeBinding, TimestampBinding

public abstract class AbstractBinding
extends java.lang.Object
implements ResultBinding, InputBinding, OutputBinding

Version:
$Revision: 155 $ $Date: 2004-12-03 00:12:10 +0100 (Fri, 03 Dec 2004) $
See Also:
Serialized Form

Field Summary
protected  int index
           
protected  QueryBinding transform
           
 
Constructor Summary
AbstractBinding(int index, QueryBinding transform)
           
 
Method Summary
 Attribute getAttribute()
           
 Entity getEntity()
           
 FKAttribute getFKAttribute()
           
 void getValue(java.sql.ResultSet rs, Row row)
           
 boolean isAttributeBinding()
           
 boolean isFKAttributeBinding()
           
 boolean isUnknownBinding()
           
 void setAttribute(Attribute attribute)
           
 void setEntity(Entity entity)
           
 void setFKAttribute(FKAttribute fkAttribute)
           
 void setValue(java.sql.PreparedStatement ps, Row row)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tranql.sql.jdbc.ResultBinding
getValue
 
Methods inherited from interface org.tranql.sql.jdbc.SQLBinding
getSQLType
 
Methods inherited from interface org.tranql.sql.jdbc.InputBinding
setValue
 
Methods inherited from interface org.tranql.sql.jdbc.OutputBinding
getValue, register
 

Field Detail

index

protected final int index

transform

protected final QueryBinding transform
Constructor Detail

AbstractBinding

public AbstractBinding(int index,
                       QueryBinding transform)
Method Detail

getValue

public void getValue(java.sql.ResultSet rs,
                     Row row)
              throws java.sql.SQLException,
                     FieldTransformException
Specified by:
getValue in interface ResultBinding
Throws:
java.sql.SQLException
FieldTransformException

setValue

public void setValue(java.sql.PreparedStatement ps,
                     Row row)
              throws java.sql.SQLException,
                     FieldTransformException
Specified by:
setValue in interface InputBinding
Throws:
java.sql.SQLException
FieldTransformException

getAttribute

public Attribute getAttribute()
Specified by:
getAttribute in interface SchemaBinding

getEntity

public Entity getEntity()
Specified by:
getEntity in interface SchemaBinding

getFKAttribute

public FKAttribute getFKAttribute()
Specified by:
getFKAttribute in interface SchemaBinding

isAttributeBinding

public boolean isAttributeBinding()
Specified by:
isAttributeBinding in interface SchemaBinding

isFKAttributeBinding

public boolean isFKAttributeBinding()
Specified by:
isFKAttributeBinding in interface SchemaBinding

isUnknownBinding

public boolean isUnknownBinding()
Specified by:
isUnknownBinding in interface SchemaBinding

setAttribute

public void setAttribute(Attribute attribute)
Specified by:
setAttribute in interface SchemaBinding

setEntity

public void setEntity(Entity entity)
Specified by:
setEntity in interface SchemaBinding

setFKAttribute

public void setFKAttribute(FKAttribute fkAttribute)
Specified by:
setFKAttribute in interface SchemaBinding


Copyright © -2006 The Codehaus. All Rights Reserved.