org.tranql.sql.jdbc.binding
Class TypeConverterBinding

java.lang.Object
  extended byorg.tranql.sql.jdbc.binding.TypeConverterBinding
All Implemented Interfaces:
InputBinding, OutputBinding, ResultBinding, SchemaBinding, java.io.Serializable, SQLBinding

public class TypeConverterBinding
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

Constructor Summary
TypeConverterBinding(FieldTransform transform, InputBinding inputBinding, TypeConverter typeConverter)
           
TypeConverterBinding(FieldTransform transform, OutputBinding outputBinding, TypeConverter typeConverter)
           
TypeConverterBinding(FieldTransform transform, ResultBinding resultBinding, TypeConverter typeConverter)
           
 
Method Summary
 Attribute getAttribute()
           
 TypeConverter getConverter()
           
 Entity getEntity()
           
 FKAttribute getFKAttribute()
           
 int getSQLType()
           
 java.lang.Object getValue(java.sql.CallableStatement cs)
           
 java.lang.Object getValue(java.sql.ResultSet rs)
           
 void getValue(java.sql.ResultSet rs, Row row)
           
 boolean isAttributeBinding()
           
 boolean isFKAttributeBinding()
           
 boolean isUnknownBinding()
           
 void register(java.sql.CallableStatement cs)
           
 void setAttribute(Attribute attribute)
           
 void setEntity(Entity entity)
           
 void setFKAttribute(FKAttribute fkAttribute)
           
 void setValue(java.sql.PreparedStatement ps, java.lang.Object value)
           
 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
 

Constructor Detail

TypeConverterBinding

public TypeConverterBinding(FieldTransform transform,
                            InputBinding inputBinding,
                            TypeConverter typeConverter)

TypeConverterBinding

public TypeConverterBinding(FieldTransform transform,
                            OutputBinding outputBinding,
                            TypeConverter typeConverter)

TypeConverterBinding

public TypeConverterBinding(FieldTransform transform,
                            ResultBinding resultBinding,
                            TypeConverter typeConverter)
Method Detail

getValue

public java.lang.Object getValue(java.sql.ResultSet rs)
                          throws java.sql.SQLException
Specified by:
getValue in interface ResultBinding
Throws:
java.sql.SQLException

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

setValue

public void setValue(java.sql.PreparedStatement ps,
                     java.lang.Object value)
              throws java.sql.SQLException
Specified by:
setValue in interface InputBinding
Throws:
java.sql.SQLException

register

public void register(java.sql.CallableStatement cs)
              throws java.sql.SQLException
Specified by:
register in interface OutputBinding
Throws:
java.sql.SQLException

getValue

public java.lang.Object getValue(java.sql.CallableStatement cs)
                          throws java.sql.SQLException
Specified by:
getValue in interface OutputBinding
Throws:
java.sql.SQLException

getSQLType

public int getSQLType()
Specified by:
getSQLType in interface SQLBinding

getConverter

public TypeConverter getConverter()

setEntity

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

getEntity

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

isAttributeBinding

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

setAttribute

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

getAttribute

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

isFKAttributeBinding

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

setFKAttribute

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

getFKAttribute

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

isUnknownBinding

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


Copyright © -2006 The Codehaus. All Rights Reserved.