Package com.groiss.ldap
Class SubLink
java.lang.Object
com.groiss.ldap.SubLink
Class for the connection of two class mappings.
It is added to a ClassMapping by addSubLink.
Specified are the name of a java class and the name of a link attribute (foreign key)
There must exist a class mapping for the target class.
The java class must map to a table where the link attribute holds the
oid of the referring class as a foreign key.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the target class name of this sublink.Returns the name of the linking attributevoid
setClassName
(String className) Set the class name for the target of this sublink.void
setLinkAtt
(String linkAtt) Set the attribute name of the linking attribute of this sublink.
-
Constructor Details
-
SubLink
Construct a new Sublink instance.- Parameters:
className
- the name of the linked java classlinkAtt
- the name of the linking attribute in the linked class
-
-
Method Details
-
setClassName
Set the class name for the target of this sublink.- Parameters:
className
- the target class name
-
getClassName
Return the target class name of this sublink.- Returns:
- the target class name of this sublink
-
setLinkAtt
Set the attribute name of the linking attribute of this sublink.- Parameters:
linkAtt
- the name of the linking attribute
-
getLinkAtt
Returns the name of the linking attribute- Returns:
- the name of the linking attribute
-