org.castor.jdo.engine
Class SQLTypeConverters.Convertor

java.lang.Object
  extended byorg.castor.jdo.engine.SQLTypeConverters.Convertor
All Implemented Interfaces:
TypeConvertor
Enclosing class:
SQLTypeConverters

public abstract static class SQLTypeConverters.Convertor
extends java.lang.Object
implements TypeConvertor

Abstract class to convert from one type to another.


Constructor Summary
SQLTypeConverters.Convertor(java.lang.Class fromType, java.lang.Class toType)
          Construct a Converter between given fromType an toType.
 
Method Summary
abstract  java.lang.Object convert(java.lang.Object obj, java.lang.String pm)
          Convert the object from one type to another.
 java.lang.Class fromType()
          Get the type being converted from.
 java.lang.String toString()
          
 java.lang.Class toType()
          Get the type being converted to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLTypeConverters.Convertor

public SQLTypeConverters.Convertor(java.lang.Class fromType,
                                   java.lang.Class toType)
Construct a Converter between given fromType an toType.

Parameters:
fromType - The type being converted from.
toType - The type being converted to.
Method Detail

fromType

public final java.lang.Class fromType()
Get the type being converted from.

Returns:
The type being converted from.

toType

public final java.lang.Class toType()
Get the type being converted to.

Returns:
The type being converted to.

convert

public abstract java.lang.Object convert(java.lang.Object obj,
                                         java.lang.String pm)
Convert the object from one type to another.

Specified by:
convert in interface TypeConvertor
Parameters:
obj - The object to convert
pm - The parameter for the convertor (null if is not specified)
Returns:
The converted object
See Also:
#convert(java.lang.Object, java.lang.String)

toString

public final java.lang.String toString()

See Also:
Object.toString()


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com