com.groiss.ldap
Class SubLink

java.lang.Object
  extended by com.groiss.ldap.SubLink

public class SubLink
extends java.lang.Object

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
SubLink(java.lang.String className, java.lang.String linkAtt)
          Construct a new Sublink instance.
 
Method Summary
 java.lang.String getClassName()
          Return the target class name of this sublink.
 java.lang.String getLinkAtt()
          Returns the name of the linking attribute
 void setClassName(java.lang.String className)
          Set the class name for the target of this sublink.
 void setLinkAtt(java.lang.String linkAtt)
          Set the attribute name of the linking attribute of this sublink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubLink

public SubLink(java.lang.String className,
               java.lang.String linkAtt)
Construct a new Sublink instance.

Parameters:
className - the name of the linked java class
linkAtt - the name of the linking attribute in the linked class
Method Detail

setClassName

public void setClassName(java.lang.String className)
Set the class name for the target of this sublink.

Parameters:
className - the target class name

getClassName

public java.lang.String getClassName()
Return the target class name of this sublink.

Returns:
the target class name of this sublink

setLinkAtt

public void setLinkAtt(java.lang.String linkAtt)
Set the attribute name of the linking attribute of this sublink.

Parameters:
linkAtt - the name of the linking attribute

getLinkAtt

public java.lang.String getLinkAtt()
Returns the name of the linking attribute

Returns:
the name of the linking attribute


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.