org.codehaus.modello.generator.database.type

Class TypeMap

class TypeMap extends TypeMap

This class is a helper class for converting from string values to their corresponding {@link java.sql.Types} (Exists only at the moment to overcome some deficiencies in {@link org.codehaus.modello.generator.database.model.TypeMap}

Version: 1.1 2003/02/05 08:08:37

Author: Tim Anderson

Field Summary
static String[]APPROX_NUMERICS
static String[]EXACT_NUMERICS
static String[]VARCHARS
Method Summary
static StringgetName(int type)
Returns the type name for a type identifier
static IntegergetType(String name)
Returns the type identifier for a type name
static booleanisApproxNumeric(String name)
static booleanisExactNumeric(String name)
static booleanisVarChar(String name)

Field Detail

APPROX_NUMERICS

public static final String[] APPROX_NUMERICS

EXACT_NUMERICS

public static final String[] EXACT_NUMERICS

VARCHARS

public static final String[] VARCHARS

Method Detail

getName

public static String getName(int type)
Returns the type name for a type identifier

Parameters: type the type identifier

Returns: the type name corresponding id or null if there is no corresponding name i

getType

public static Integer getType(String name)
Returns the type identifier for a type name

Parameters: name the type name

Returns: the type identifier corresponding name or null if there is no corresponding identifier i

isApproxNumeric

public static boolean isApproxNumeric(String name)

isExactNumeric

public static boolean isExactNumeric(String name)

isVarChar

public static boolean isVarChar(String name)
Copyright © 2001-2008 Codehaus. All Rights Reserved.