org.clazzes.jdbc2xml.deserialization
Class DeserializationHandlerFactory

java.lang.Object
  extended by org.clazzes.jdbc2xml.deserialization.DeserializationHandlerFactory
Direct Known Subclasses:
DeserializationHandlerFactoryImpl

public abstract class DeserializationHandlerFactory
extends java.lang.Object

Implementations of this factory instantiate DeserializationHandler instances for a given column of a XML rowset tag.

Author:
wglas

Constructor Summary
DeserializationHandlerFactory()
           
 
Method Summary
abstract  DeserializationHandler newDeserializationHandler(ColumnInfo ci, java.util.TimeZone timeZone)
          Return DeserializationHandler instance for the given column of the result set.
static DeserializationHandlerFactory newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeserializationHandlerFactory

public DeserializationHandlerFactory()
Method Detail

newInstance

public static DeserializationHandlerFactory newInstance()
Returns:
The first implementation registered under the resource path META-INF/services/org.clazzes.jdbc2xml.deserialization.DeserializationHandlerFactory.
See Also:
ServiceRegistry.lookupProviders(Class)

newDeserializationHandler

public abstract DeserializationHandler newDeserializationHandler(ColumnInfo ci,
                                                                 java.util.TimeZone timeZone)
Return DeserializationHandler instance for the given column of the result set.

Parameters:
ci - The column information of the column to be deserialized.
timeZone - The time zone used to parse date values, if the database provides no time zone information.
Returns:
A suitable deserialization handler.


Copyright © 2010. All Rights Reserved.