|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.generator.source.transform.AttributeTransformer
org.apache.torque.templates.transformer.om.OMTableAndViewTransformer
public class OMTableAndViewTransformer
Transforms the tables and views in the OM model.
Constructor Summary | |
---|---|
OMTableAndViewTransformer()
|
Method Summary | |
---|---|
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(SourceElement tableElement,
ControllerState controllerState)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OMTableAndViewTransformer() throws SourceTransformerException
SourceTransformerException
Method Detail |
---|
public SourceElement transform(SourceElement tableElement, 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |