com.softwareag.centrasite.appl.framework.persistence.mapper.slots
Class AbstractSlotHandler

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.mapper.slots.AbstractSlotHandler
All Implemented Interfaces:
SlotHandler
Direct Known Subclasses:
BooleanSlotHandler, CustomDateSlotHandler, DateSlotHandler, EnumSlotHandler, IntegerSlotHandler, LongSlotHandler, StringSlotHandler, TimestampSlotHandler

public abstract class AbstractSlotHandler
extends java.lang.Object
implements SlotHandler

Abstract base class for slot handlers. It is recommended to derive from this base class, because that will allow to extend the SlotHandler interface without a need to modify the derived classes.


Constructor Summary
AbstractSlotHandler()
           
 
Method Summary
 java.lang.String getQueryFunction(java.lang.Object value, Property property)
          Wraps the result of the SlotHandler.toString(Object) in a proper Query Type.This method may only be invoked, if SlotHandler.isHandling(Class, Slot) was invoked with the result objects class and returned true.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softwareag.centrasite.appl.framework.persistence.mapper.slots.SlotHandler
isHandling, toObject, toString
 

Constructor Detail

AbstractSlotHandler

public AbstractSlotHandler()
Method Detail

getQueryFunction

public java.lang.String getQueryFunction(java.lang.Object value,
                                         Property property)
Description copied from interface: SlotHandler
Wraps the result of the SlotHandler.toString(Object) in a proper Query Type.This method may only be invoked, if SlotHandler.isHandling(Class, Slot) was invoked with the result objects class and returned true.

Specified by:
getQueryFunction in interface SlotHandler
property - TODO
Returns:
String