org.exolab.castor.jdo.engine
Class SQLTypes.SQLTypeConvertor

java.lang.Object
  extended by org.exolab.castor.jdo.engine.SQLTypes.SQLTypeConvertor
All Implemented Interfaces:
TypeConvertor
Enclosing class:
SQLTypes

public abstract static class SQLTypes.SQLTypeConvertor
extends java.lang.Object
implements TypeConvertor


Field Summary
(package private)  java.lang.Class fromType
           
(package private)  java.lang.Class toType
           
 
Constructor Summary
SQLTypes.SQLTypeConvertor(java.lang.Class fromType, java.lang.Class toType)
           
 
Method Summary
abstract  java.lang.Object convert(java.lang.Object obj, java.lang.String param)
          Convert the object from one type to another.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fromType

java.lang.Class fromType

toType

java.lang.Class toType
Constructor Detail

SQLTypes.SQLTypeConvertor

SQLTypes.SQLTypeConvertor(java.lang.Class fromType,
                          java.lang.Class toType)
Method Detail

convert

public abstract java.lang.Object convert(java.lang.Object obj,
                                         java.lang.String param)
Description copied from interface: TypeConvertor
Convert the object from one type to another.

Specified by:
convert in interface TypeConvertor
Parameters:
obj - The object to convert
param - The parameter for the convertor (null if is not specified)
Returns:
The converted object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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