Klasse OMJoinGetterTransformer
java.lang.Object
org.apache.torque.templates.transformer.om.OMJoinGetterTransformer
Creates the joinGetter Elements on a table.
The OMReferencingForeignKeyTableTransformer needs to be run
before this transformation
The structure before transformation is:
table
foreign-key
...
table (the referenced table in the foreign key)
foreign-key
...
table
...
referencing-foreign-keys
foreign-key (a foreign key where the foreignTable is the current table)
...
table (the referenced table in the foreign key, i.e this table.)
foreign-key
...
table
...
The structure after transformation is
table
foreign-key
...
table (the referenced table in the foreign key)
foreign-key
...
table
...
referencing-foreign-keys
foreign-key (a foreign key where the foreignTable is the current table)
...
table (the referenced table in the foreign key, i.e this table.)
foreign-key
...
table
...
joinGetter name=".."
local
foreign-key (a foreign key referencing the table)
remote
foreign-key (a foreign key of the referenced table)
...
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidcheckElementName(SourceElement tableElement) Checks that the name of the table element is correct.voidtransform(SourceElement tableElement, ControllerState controllerState)
-
Konstruktordetails
-
OMJoinGetterTransformer
public OMJoinGetterTransformer()
-
-
Methodendetails
-
transform
public void transform(SourceElement tableElement, ControllerState controllerState) throws SourceTransformerException - Parameter:
tableElement- the tablecontrollerState- the controller state- Löst aus:
SourceTransformerException- if the table cannot be joined
-
checkElementName
Checks that the name of the table element is correct.- Parameter:
tableElement- the table element, not null.- Löst aus:
IllegalArgumentException- if the element name is wrong.
-