|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.metadata.JoinType
de.mguennewig.pobjects.metadata.StackType
public class StackType
Rows of the target table represent a stack of values associated with the parent table.
| Field Summary |
|---|
| Fields inherited from class de.mguennewig.pobjects.metadata.JoinType |
|---|
CLASS_NAME, TYPE_NAME |
| Constructor Summary | |
|---|---|
StackType(java.lang.String targetModule,
java.lang.String targetName,
ClassDecl targetClass)
Initialize stack data. |
|
| Method Summary | |
|---|---|
java.lang.String |
name(int variant)
Returns different names depending on variant for the code
generator. |
void |
setTargetClass(ClassDecl targetClass)
Sets the class declaration of the referenced table. |
| Methods inherited from class de.mguennewig.pobjects.metadata.JoinType |
|---|
getTargetClass, getTargetModule, getTargetName, setTypeClass |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackType(java.lang.String targetModule,
java.lang.String targetName,
ClassDecl targetClass)
targetModule - Module of the target class.targetName - The name of the class the join refers to.targetClass - The class declaration of the referenced table. This
must be given or null with a later call to
setTargetClass(ClassDecl) before any usage of this type.setTargetClass(ClassDecl)| Method Detail |
|---|
public void setTargetClass(ClassDecl targetClass)
class declaration of the referenced table.
A call to this method is only necessary if the class declaration has not been passed to the constructor to solve circle problems.
The referenced table must fulfill a couple of requirements depending on join type. The following requirements are common for all:
primary key declaration
(no id field)In addition to the generic restrictions a stack type adds the following constraints:
setTargetClass in interface ReferenceToClasssetTargetClass in class JoinTypepublic java.lang.String name(int variant)
variant for the code
generator.
name in class JoinType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||