TypesHandler (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.dba, class: TypesHandler

# Class TypesHandler

java.lang.Object
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

  Fields
  Modifier and Type
  Field
  Description
  `protected Map<Integer,String[]>`
  `typesMap`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TypesHandler(URL typesConfig)`
  Creates new TypesHandler loading configuration info from the XML file specified as `typesConfigPath` parameter.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `externalTypesForJdbcType(int type)`
  `static TypesHandler`
  `getHandler(URL typesConfig)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### typesMap

    protected Map<Integer,String[]> typesMap

- ## Constructor Details

  - ### TypesHandler

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

- ## Method Details

  - ### getHandler

    public static TypesHandler getHandler(URL typesConfig)
    Since:
      1.1

  - ### externalTypesForJdbcType

    public String[] externalTypesForJdbcType(int type)