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 Description SqlTypePlatform. getSqlTypeForSchemaType(SchemaType schemaType)Returns the db specific SQL type for a Torque type.SqlTypePlatformDefaultImpl. getSqlTypeForSchemaType(SchemaType schemaType)protected voidPlatformDefaultImpl. 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 Description static SchemaTypeSchemaTypeHelper. getSchemaType(SourceElement columnElement, ControllerState controllerState)Determines the schema type of a column.static SchemaTypeSchemaTypeHelper. getSchemaType(Column column, 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 Description static SqlTypeSchemaTypeHelper. 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 Description protected JavaTypeOMColumnJavaTransformer. setFieldJavaType(SourceElement columnElement, SchemaType schemaType, String enumClassName)Returns the java type of the field representing a database column.protected voidOMColumnTransformer. setResultSetGetterAttribute(SourceElement columnElement, SchemaType schemaType)Sets the resultSetGetter attribute of the column element if it is not already set.protected voidOMColumnTransformer. 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 Description static SchemaTypeSchemaType. 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 Description static StringTypeMap. getJavaObject(SchemaType jdbcType)Return a Java object which corresponds to the JDBC type provided.static JavaTypeTypeMap. getJavaObjectType(SchemaType schemaType)Returns the java type which corresponds to the schema type provided.static JavaTypeTypeMap. getJavaPrimitiveType(SchemaType schemaType)Returns the java type which corresponds to the schema type provided.static ResultSetGetterTypeMap. getResultSetGetter(SchemaType schemaType)Returns the result set getter method which corresponds to the Schema type provided.static booleanTypeMap. isBit(SchemaType type)Returns true if the type is boolean in the java object and a Bit "1" or "0" in the db.static booleanTypeMap. isBooleanChar(SchemaType type)Returns true if the type is boolean in the java object and a String "Y" or "N" in the db.static booleanTypeMap. isBooleanInt(SchemaType type)Returns true if the type is boolean in the java object and a numeric (1 or 0) in the db.static booleanTypeMap. isTextType(SchemaType type)Returns true if values for the type need to be quoted.
-