org.tranql.ql
Class QueryBindingImpl

java.lang.Object
  extended by org.tranql.ql.QueryBindingImpl
All Implemented Interfaces:
java.io.Serializable, FieldTransform, QueryBinding, SchemaBinding

public class QueryBindingImpl
extends java.lang.Object
implements QueryBinding

Version:
$Revision: 165 $ $Date: 2005-02-01 11:44:57 +0100 (Tue, 01 Feb 2005) $
See Also:
Serialized Form

Constructor Summary
QueryBindingImpl(FieldTransform next)
           
QueryBindingImpl(FieldTransform next, Entity entity, Attribute attribute)
           
QueryBindingImpl(FieldTransform next, Entity entity, FKAttribute fkAttribute)
           
QueryBindingImpl(int slot, java.lang.Class fieldClass)
           
QueryBindingImpl(int slot, Entity entity, Attribute attribute)
           
QueryBindingImpl(int slot, Entity entity, FKAttribute fkAttribute)
           
 
Method Summary
 java.lang.Object get(Row row)
          Return a value from the cache
 Attribute getAttribute()
           
 Entity getEntity()
           
 java.lang.Class getFieldClass()
          Return the Java Class that will be returned by fetch and that should be passed to set.
 FKAttribute getFKAttribute()
           
 boolean isAttributeBinding()
           
 boolean isFKAttributeBinding()
           
 boolean isUnknownBinding()
           
 void set(Row row, java.lang.Object value)
          Set a value into the cache
 void setAttribute(Attribute attribute)
           
 void setEntity(Entity entity)
           
 void setFKAttribute(FKAttribute fkAttribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryBindingImpl

public QueryBindingImpl(FieldTransform next,
                        Entity entity,
                        Attribute attribute)

QueryBindingImpl

public QueryBindingImpl(FieldTransform next,
                        Entity entity,
                        FKAttribute fkAttribute)

QueryBindingImpl

public QueryBindingImpl(FieldTransform next)

QueryBindingImpl

public QueryBindingImpl(int slot,
                        Entity entity,
                        Attribute attribute)

QueryBindingImpl

public QueryBindingImpl(int slot,
                        Entity entity,
                        FKAttribute fkAttribute)

QueryBindingImpl

public QueryBindingImpl(int slot,
                        java.lang.Class fieldClass)
Method Detail

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

getFieldClass

public java.lang.Class getFieldClass()
Description copied from interface: FieldTransform
Return the Java Class that will be returned by fetch and that should be passed to set.

Specified by:
getFieldClass in interface FieldTransform
Returns:
the Java Class for this field

get

public java.lang.Object get(Row row)
                     throws FieldTransformException
Description copied from interface: FieldTransform
Return a value from the cache

Specified by:
get in interface FieldTransform
Parameters:
row - the row to fetch from
Returns:
the transformed value
Throws:
FieldTransformException

set

public void set(Row row,
                java.lang.Object value)
         throws FieldTransformException
Description copied from interface: FieldTransform
Set a value into the cache

Specified by:
set in interface FieldTransform
Parameters:
row - the row to store the value into
value - the value to be transformed
Throws:
FieldTransformException


Copyright © -2010 The Codehaus. All Rights Reserved.