org.apache.cayenne.dba
Class TypesHandler

java.lang.Object
  extended by org.apache.cayenne.dba.TypesHandler

public class TypesHandler
extends Object

TypesHandler provides JDBC-RDBMS types mapping. Loads types info from an XML file.


Field Summary
protected  Map<Integer,String[]> typesMap
           
 
Constructor Summary
TypesHandler(URL typesConfig)
          Creates new TypesHandler loading configuration info from the XML file specified as typesConfigPath parameter.
 
Method Summary
 String[] externalTypesForJdbcType(int type)
           
static TypesHandler getHandler(URL typesConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typesMap

protected Map<Integer,String[]> typesMap
Constructor Detail

TypesHandler

public TypesHandler(URL typesConfig)
Creates new TypesHandler loading configuration info from the XML file specified as typesConfigPath parameter.

Since:
1.1
Method Detail

getHandler

public static TypesHandler getHandler(URL typesConfig)
Since:
1.1

externalTypesForJdbcType

public String[] externalTypesForJdbcType(int type)


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.