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

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.mapper.slots.AbstractSlotHandler
      extended by com.softwareag.centrasite.appl.framework.persistence.mapper.slots.CustomDateSlotHandler
All Implemented Interfaces:
SlotHandler

public class CustomDateSlotHandler
extends AbstractSlotHandler

Implementation of SlotHandler for Date values with xs:dateTime representation.


Constructor Summary
CustomDateSlotHandler()
           
 
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.
 boolean isHandling(java.lang.Class<?> pClass, Slot property)
          Returns, whether the slot handler can handle the given Java class.
 java.lang.Object toObject(java.lang.Class<?> pClass, java.lang.String pValue)
          Converts a string into an object.
 java.lang.String toString(java.lang.Object pValue)
          Converts the given object into a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomDateSlotHandler

public CustomDateSlotHandler()
Method Detail

isHandling

public boolean isHandling(java.lang.Class<?> pClass,
                          Slot property)
Description copied from interface: SlotHandler
Returns, whether the slot handler can handle the given Java class.


toObject

public java.lang.Object toObject(java.lang.Class<?> pClass,
                                 java.lang.String pValue)
Description copied from interface: SlotHandler
Converts a string into an object. This method may only be invoked, if SlotHandler.isHandling(Class, Slot) was invoked with the result objects class and returned true.

Parameters:
pClass - The target class
pValue - The value to convert.

toString

public java.lang.String toString(java.lang.Object pValue)
Description copied from interface: SlotHandler
Converts the given object into a string. This method may only be called, if SlotHandler.isHandling(Class, Slot) was invoked with the objects class and returned true.


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
Overrides:
getQueryFunction in class AbstractSlotHandler
property - TODO
Returns:
String