## Uses of Class
org.apache.torque.templates.typemapping.SchemaType

- Packages that use SchemaType
  Package | Description
  --- | ---
  org.apache.torque.templates.platform | This package contains classes that provide compatibility to a range of RDBM platforms.
  org.apache.torque.templates.transformer | Contains transformers and their helpers throughout the templates.
  org.apache.torque.templates.transformer.om | Contains transformers and their helpers for the generation of OM classes.
  org.apache.torque.templates.typemapping | Contains transformers and their helpers for the generation of SQL files.

- - ### Uses of SchemaType in org.apache.torque.templates.platform

    Methods in org.apache.torque.templates.platform with parameters of type SchemaType
    Modifier and Type | Method and Description
    --- | ---
    `SqlType` | Platform.`getSqlTypeForSchemaType(SchemaType schemaType)` Returns the db specific SQL type for a Torque type.
    `SqlType` | PlatformDefaultImpl.`getSqlTypeForSchemaType(SchemaType schemaType)`
    `protected void` | PlatformDefaultImpl.`setSchemaTypeToSqlTypeMapping(SchemaType schemaType, SqlType sqlType)` Adds a mapping to the torque schema type -> sql type map.

  - ### Uses of SchemaType in org.apache.torque.templates.transformer

    Methods in org.apache.torque.templates.transformer that return SchemaType
    Modifier and Type | Method and Description
    --- | ---
    `static SchemaType` | SchemaTypeHelper.`getSchemaType(Column column, ControllerState controllerState)` Determines the schema type of a column.
    `static SchemaType` | SchemaTypeHelper.`getSchemaType(SourceElement columnElement, ControllerState controllerState)` Determines the schema type of a column.

    Methods in org.apache.torque.templates.transformer with parameters of type SchemaType
    Modifier and Type | Method and Description
    --- | ---
    `static SqlType` | SchemaTypeHelper.`getSqlType(SchemaType schemaType, SqlType domainType, ControllerState controllerState, String size, String scale, String defaultValue)` Returns the SQL type for a schema type and the specified target database.

  - ### Uses of SchemaType in org.apache.torque.templates.transformer.om

    Methods in org.apache.torque.templates.transformer.om with parameters of type SchemaType
    Modifier and Type | Method and Description
    --- | ---
    `protected JavaType` | OMColumnJavaTransformer.`setFieldJavaType(SourceElement columnElement, SchemaType schemaType, String enumClassName)` Returns the java type of the field representing a database column.
    `protected void` | OMColumnTransformer.`setResultSetGetterAttribute(SourceElement columnElement, SchemaType schemaType)` Sets the resultSetGetter attribute of the column element if it is not already set.
    `protected void` | OMColumnTransformer.`setSampleObjectAttribute(SourceElement columnElement, SchemaType schemaType)` Sets the sampleObject attribute of the column element if it is not already set.

  - ### Uses of SchemaType in org.apache.torque.templates.typemapping

    Methods in org.apache.torque.templates.typemapping that return SchemaType
    Modifier and Type | Method and Description
    --- | ---
    `static SchemaType` | SchemaType.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static SchemaType[]` | SchemaType.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Methods in org.apache.torque.templates.typemapping with parameters of type SchemaType
    Modifier and Type | Method and Description
    --- | ---
    `static String` | TypeMap.`getJavaObject(SchemaType jdbcType)` Return a Java object which corresponds to the JDBC type provided.
    `static JavaType` | TypeMap.`getJavaObjectType(SchemaType schemaType)` Returns the java type which corresponds to the schema type provided.
    `static JavaType` | TypeMap.`getJavaPrimitiveType(SchemaType schemaType)` Returns the java type which corresponds to the schema type provided.
    `static ResultSetGetter` | TypeMap.`getResultSetGetter(SchemaType schemaType)` Returns the result set getter method which corresponds to the Schema type provided.
    `static boolean` | TypeMap.`isBit(SchemaType type)` Returns true if the type is boolean in the java object and a Bit "1" or "0" in the db.
    `static boolean` | TypeMap.`isBooleanChar(SchemaType type)` Returns true if the type is boolean in the java object and a String "Y" or "N" in the db.
    `static boolean` | TypeMap.`isBooleanInt(SchemaType type)` Returns true if the type is boolean in the java object and a numeric (1 or 0) in the db.
    `static boolean` | TypeMap.`isTextType(SchemaType type)` Returns true if values for the type need to be quoted.

Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.