org.castor.jdo.engine

Class SQLTypeConverters.Convertor

Enclosing Class:
SQLTypeConverters
Implemented Interfaces:
TypeConvertor

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

Abstract class to convert from one type to another.

Constructor Summary

Convertor(Class fromType, Class toType)
Construct a Converter between given fromType an toType.

Method Summary

abstract Object
convert(Object obj, String pm)
Class
fromType()
Get the type being converted from.
String
toString()
Class
toType()
Get the type being converted to.

Constructor Details

Convertor

public Convertor(Class fromType,
                 Class toType)
Construct a Converter between given fromType an toType.
Parameters:
fromType - The type being converted from.
toType - The type being converted to.

Method Details

convert

public abstract Object convert(Object obj,
                               String pm)
Specified by:
convert in interface TypeConvertor

fromType

public final Class fromType()
Get the type being converted from.
Returns:
The type being converted from.

toString

public final String toString()
See Also:
java.lang.Object.toString()

toType

public final Class toType()
Get the type being converted to.
Returns:
The type being converted to.

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