public class OMTableAndViewTransformer extends AttributeTransformer
Constructor and Description |
---|
OMTableAndViewTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
createInheritanceColumnChildIfNecessary(SourceElement tableElement) |
protected void |
setCreateDefaultDateMethodsAttributes(SourceElement tableElement) |
protected void |
setFieldNameAttribute(SourceElement tableElement)
Sets the fieldName attribute of the table element if it is not
already set.
|
protected void |
setIdMethodAttribute(SourceElement tableElement) |
static void |
setJavaNameAttribute(SourceElement tableElement,
ControllerState controllerState)
Sets the javaName attribute of the table element, if not
already set.
|
protected void |
setManagerClassNameAttributes(SourceElement tableElement,
ControllerState controllerState) |
protected void |
setPeerImplFieldNameAttribute(SourceElement tableElement)
Sets the peerImplFieldName attribute of the table element if it is not
already set.
|
static void |
setPeerImplGetterAttribute(SourceElement tableElement)
Sets the peerImplGetter attribute of the table element if it is not
already set.
|
protected void |
setPeerImplSetterAttribute(SourceElement tableElement)
Sets the peerImplSetter attribute of the table element if it is not
already set.
|
protected void |
setSaveAttributes(SourceElement tableElement,
ControllerState controllerState) |
protected void |
setSequenceAttributeIfNecessary(SourceElement tableElement) |
protected void |
setUnqualifiedNameAttribute(SourceElement tableElement) |
SourceElement |
transform(Object tableModel,
ControllerState controllerState) |
public OMTableAndViewTransformer() throws SourceTransformerException
SourceTransformerException
public SourceElement transform(Object tableModel, ControllerState controllerState) throws SourceTransformerException
transform
in interface SourceTransformer
transform
in class AttributeTransformer
SourceTransformerException
public static void setJavaNameAttribute(SourceElement tableElement, ControllerState controllerState) throws SourceTransformerException
tableElement
- the table element, not null.controllerState
- the controller state, not null.SourceTransformerException
- if both attributes javaName and name
are not set on the tableElement.protected void setUnqualifiedNameAttribute(SourceElement tableElement)
protected void setIdMethodAttribute(SourceElement tableElement) throws SourceTransformerException
SourceTransformerException
protected void setSequenceAttributeIfNecessary(SourceElement tableElement)
protected void setManagerClassNameAttributes(SourceElement tableElement, ControllerState controllerState) throws SourceTransformerException
SourceTransformerException
public void createInheritanceColumnChildIfNecessary(SourceElement tableElement) throws SourceTransformerException
SourceTransformerException
protected void setFieldNameAttribute(SourceElement tableElement)
tableElement
- the table element, not null.protected void setPeerImplFieldNameAttribute(SourceElement tableElement)
tableElement
- the table element, not null.public static void setPeerImplGetterAttribute(SourceElement tableElement)
tableElement
- the table element, not null.protected void setPeerImplSetterAttribute(SourceElement tableElement)
tableElement
- the table element, not null.protected void setSaveAttributes(SourceElement tableElement, ControllerState controllerState)
protected void setCreateDefaultDateMethodsAttributes(SourceElement tableElement)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.