Verwendungen von Enum
org.apache.torque.templates.typemapping.SchemaType
Packages, die SchemaType verwenden
Package
Beschreibung
This package contains classes that provide compatibility to a range of RDBM platforms.
Contains transformers and their helpers throughout the templates.
Contains transformers and their helpers for the generation of OM classes.
Contains transformers and their helpers
for the generation of SQL files.
-
Verwendungen von SchemaType in org.apache.torque.templates.platform
Methoden in org.apache.torque.templates.platform mit Parametern vom Typ SchemaTypeModifizierer und TypMethodeBeschreibungPlatform.getSqlTypeForSchemaType
(SchemaType schemaType) Returns the db specific SQL type for a Torque type.PlatformDefaultImpl.getSqlTypeForSchemaType
(SchemaType schemaType) protected void
PlatformDefaultImpl.setSchemaTypeToSqlTypeMapping
(SchemaType schemaType, SqlType sqlType) Adds a mapping to the torque schema type -> sql type map. -
Verwendungen von SchemaType in org.apache.torque.templates.transformer
Methoden in org.apache.torque.templates.transformer, die SchemaType zurückgebenModifizierer und TypMethodeBeschreibungstatic SchemaType
SchemaTypeHelper.getSchemaType
(SourceElement columnElement, ControllerState controllerState) Determines the schema type of a column.static SchemaType
SchemaTypeHelper.getSchemaType
(Column column, ControllerState controllerState) Determines the schema type of a column.Methoden in org.apache.torque.templates.transformer mit Parametern vom Typ SchemaTypeModifizierer und TypMethodeBeschreibungstatic 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. -
Verwendungen von SchemaType in org.apache.torque.templates.transformer.om
Methoden in org.apache.torque.templates.transformer.om mit Parametern vom Typ SchemaTypeModifizierer und TypMethodeBeschreibungprotected 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. -
Verwendungen von SchemaType in org.apache.torque.templates.typemapping
Methoden in org.apache.torque.templates.typemapping, die SchemaType zurückgebenModifizierer und TypMethodeBeschreibungstatic SchemaType
Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück.static SchemaType[]
SchemaType.values()
Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.Methoden in org.apache.torque.templates.typemapping mit Parametern vom Typ SchemaTypeModifizierer und TypMethodeBeschreibungstatic 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.