org.castor.jdo.engine

Class SQLTypeConverters.Convertor

public abstract static class SQLTypeConverters.Convertor extends 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 Objectconvert(Object obj, String pm)
ClassfromType()
Get the type being converted from.
StringtoString()
ClasstoType()
Get the type being converted to.

Constructor Detail

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 Detail

convert

public abstract Object convert(Object obj, String pm)
{@inheritDoc }

See Also: #convert(java.lang.Object, java.lang.String)

fromType

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

Returns: The type being converted from.

toString

public final String toString()
{@inheritDoc }

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