public class OMColumnTransformer extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected OMColumnJavaTransformer | javaTransformer | 
| Constructor and Description | 
|---|
| OMColumnTransformer() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkColumnNameExists(SourceElement columnElement)Checks that the name attribute exists on the column element. | 
| protected void | checkElementName(SourceElement columnElement)Checks that the name of the column element is correct. | 
| protected void | setAccessModifierAttributes(SourceElement columnElement)Sets the attributes getterAccessModifier and setterAccessModifer
 on the column element. | 
| protected void | setAttributeDefaultValues(SourceElement columnElement)Sets default values for attributes of the column element
 if the attribute is not set. | 
| protected void | setDefaultValueAttribute(SourceElement columnElement,
                        JavaType javaType,
                        ControllerState controllerState)Sets the defaultValue attribute of the column element
 if it is not already set. | 
| protected void | setDomainAttributes(SourceElement columnElement,
                   ControllerState controllerState) | 
| protected void | setFieldNameAttribute(SourceElement columnElement)Sets the fieldName attribute of the column element if it is not
 already set. | 
| protected void | setGetterNameAttribute(SourceElement columnElement,
                      JavaType javaType,
                      ControllerState controllerState)Sets the getterName attribute of the column element
 if it is not already set. | 
| protected void | setNumberTypeAttribute(SourceElement columnElement,
                      JavaType javaType)Sets the numberType attribute of the column element
 if it is not already set. | 
| protected void | setPeerColumnNameAttribute(SourceElement columnElement)Sets the peerColumnName attribute of the column element if it is not
 already set. | 
| protected void | setPrimitiveTypeAttribute(SourceElement columnElement,
                         JavaType javaType)Sets the primitiveType attribute of the column element
 if it is not already set. | 
| protected void | setQualifiedColumnNameAttribute(SourceElement columnElement)Sets the qualifiedColumnName attribute of the column element
 if it is not already set. | 
| protected void | setResultSetGetterAttribute(SourceElement columnElement,
                           SchemaType schemaType)Sets the resultSetGetter attribute of the column element
 if it is not already set. | 
| protected void | setSampleObjectAttribute(SourceElement columnElement,
                        SchemaType schemaType)Sets the sampleObject attribute of the column element
 if it is not already set. | 
| protected void | setSetterNameAttribute(SourceElement columnElement)Sets the setterName attribute of the column element
 if it is not already set. | 
| protected void | setUseDatabaseDefaultValueAttribute(SourceElement columnElement)Sets the useDatabaseDefaultValue attribute of the column element to its
 default "false" if it is not already set. | 
| void | transform(SourceElement columnElement,
         ControllerState controllerState,
         int columnPosition) | 
protected OMColumnJavaTransformer javaTransformer
public void transform(SourceElement columnElement, ControllerState controllerState, int columnPosition) throws SourceTransformerException
columnElement - column to transformcontrollerState - the controller state objectcolumnPosition - column positionSourceTransformerException - if the column cannot be foundprotected void setAttributeDefaultValues(SourceElement columnElement)
columnElement - the column element, not null.protected void setDomainAttributes(SourceElement columnElement, ControllerState controllerState) throws SourceTransformerException
SourceTransformerExceptionprotected void setAccessModifierAttributes(SourceElement columnElement)
columnElement - the column element, not null.protected void checkElementName(SourceElement columnElement)
columnElement - the column element, not null.IllegalArgumentException - if the element name is wrong.protected void checkColumnNameExists(SourceElement columnElement) throws SourceTransformerException
columnElement - the column element, not null.SourceTransformerException - if the name attribute does not exist.protected void setFieldNameAttribute(SourceElement columnElement)
columnElement - the column element, not null.protected void setPeerColumnNameAttribute(SourceElement columnElement)
columnElement - the column element, not null.protected void setQualifiedColumnNameAttribute(SourceElement columnElement)
columnElement - the column element, not null.protected void setGetterNameAttribute(SourceElement columnElement, JavaType javaType, ControllerState controllerState)
columnElement - the column element, not null.javaType - the java type of the column, not null.controllerState - the controller state, not null.protected void setSetterNameAttribute(SourceElement columnElement)
columnElement - the column element, not null.protected void setPrimitiveTypeAttribute(SourceElement columnElement, JavaType javaType)
columnElement - the column element, not null.javaType - the type of the java field corresponding to the
        column, not null.protected void setNumberTypeAttribute(SourceElement columnElement, JavaType javaType)
columnElement - the column element, not null.javaType - the type of the java field corresponding to the
        column, not null.protected void setDefaultValueAttribute(SourceElement columnElement, JavaType javaType, ControllerState controllerState) throws SourceTransformerException
columnElement - the column element, not null.javaType - the type of the java field corresponding to the
        column, not null.controllerState - the ControllerState, not null.SourceTransformerException - if an unknown primitive type
         is encounteredprotected void setUseDatabaseDefaultValueAttribute(SourceElement columnElement)
columnElement - the column element, not null.protected void setResultSetGetterAttribute(SourceElement columnElement, SchemaType schemaType)
columnElement - the column element, not null.schemaType - the schema type of the column, not null.protected void setSampleObjectAttribute(SourceElement columnElement, SchemaType schemaType)
columnElement - the column element, not null.schemaType - the schema type of the column, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.