de.mguennewig.pobjects.metadata
Interface ReferenceToClass

All Known Implementing Classes:
JoinType, MapType, NestedSetType, RefType, SetType, StackType

public interface ReferenceToClass

Interface for classes that represent a reference onto a table.


Method Summary
 ClassDecl getTargetClass()
          Returns the class declaration of the referenced table.
 java.lang.String getTargetModule()
          Returns the name of the module to which the referenced table belongs.
 java.lang.String getTargetName()
          Returns the name of the class the pointer (or foreign key) refers to.
 void setTargetClass(ClassDecl te)
          Sets the class declaration of the referenced table.
 

Method Detail

getTargetModule

java.lang.String getTargetModule()
Returns the name of the module to which the referenced table belongs.

See Also:
getTargetName(), getTargetClass()

getTargetName

java.lang.String getTargetName()
Returns the name of the class the pointer (or foreign key) refers to.


getTargetClass

ClassDecl getTargetClass()
Returns the class declaration of the referenced table.

See Also:
setTargetClass(ClassDecl), getTargetName()

setTargetClass

void setTargetClass(ClassDecl te)
Sets the 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.

Throws:
java.lang.IllegalStateException - if target class is already set.