wt.introspection
Class LinkInfo

java.lang.Object
  extended bywt.introspection.ClassInfo
      extended bywt.introspection.LinkInfo
All Implemented Interfaces:
Externalizable, Serializable

public class LinkInfo
extends ClassInfo
implements Externalizable

LinkInfo is the class for providing class meta-data There will be an instance of this class for each modeled link business class that is installed.

Supported API: true

Extendable: false

See Also:
WTIntrospector, ClassInfo, RoleDescriptor, Serialized Form

Field Summary
private  String[] aliasesRoleA
           
private  String[] aliasesRoleB
           
private  boolean attributed
           
static byte DERIVED
          

Supported API: false
private  boolean duplicatesAllowed
           
static long externalizationVersionUID
          Version identifier for managing compatibility and evolution of externalizable classes.
static byte FOREIGN_KEY
          

Supported API: false
static byte LINK_TABLE
          

Supported API: false
private  String referenceName
           
private  String referenceType
           
private static String RESOURCE
           
private  RoleDescriptor roleA
           
private  RoleDescriptor roleB
           
(package private) static long serialVersionUID
           
private  byte storageType
           
 
Fields inherited from class wt.introspection.ClassInfo
DEBUG, DISPLAY_NAME, SHORT_DESCRIPTION
 
Constructor Summary
LinkInfo()
          Constructor.
LinkInfo(String[] theInterfaces, String aParentName, String aClassname, String aConcreteClassname, DatabaseInfo database_info, boolean persistentFlag, AttributeDescriptor[] attrs, boolean dups, boolean is_attributed, byte storage_type, String reference_name, String reference_type, RoleDescriptor role_A, RoleDescriptor role_B, String standard_icon, String open_icon, boolean has_displayName, String[] aliases_role_A, String[] aliases_role_B, DatastoreElementType datastore_elem_type, boolean isRemoveEventParticipant, HashMap extended_values)
          Constructor.
 
Method Summary
(package private)  String[] getAliasesRoleA()
           
(package private)  String[] getAliasesRoleB()
           
 boolean getDuplicatesAllowed()
          Determines whether duplicates are allowed.
 RoleDescriptor getOtherRole(RoleDescriptor otherRole)
          Gets the other RoleDescriptor, relative to the one passed.
 String getReferenceName()
          Gets the referenceName, from the point of view of the other side class, if there is a reference.
(package private)  String getReferenceType()
          Gets the referenceType, from the point of view of the other side class, if there is a reference.
 RoleDescriptor getRole(String role_name)
          Gets the RoleDescriptor by role name.
 RoleDescriptor getRoleA()
          Gets the roleA RoleDescriptor.
 RoleDescriptor getRoleB()
          Gets the roleB RoleDescriptor.
 boolean isAttributed()
          Determines if the link is attributed.
 boolean isDerived()
          Determines if the implementation of the link is derived.
private static boolean isFound(String roleName, String[] collection)
           
 boolean isLinkTable()
          Determines if the implementation of the link is with a link table.
 boolean isRoleA(String roleName)
          Determines if the string is a roleA name.
 boolean isRoleB(String roleName)
          Determines if the string is a roleB name.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
(package private)  void setAbsoluteDir(String absolute_dir)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.introspection.ClassInfo
equals, getAttributeColumnDescriptors, getAttributeValueSet, getBusinessClass, getClassname, getConcreteClass, getConstrainedEnum, getDatabaseInfo, getDatastoreElementType, getDescendentInfos, getDirectDescendentInfos, getDisplayName, getDisplayName, getExternalizationVersionUID, getInterfaces, getOpenIcon, getOtherSideRole, getOtherSideRole, getOtherSideRoles, getParentClassInfo, getParentClassname, getParentInterfaceInfos, getPropertyDescriptor, getPropertyDescriptors, getPropertyDisplayName, getPropertyShortDescription, getReadPropertyDescriptor, getSerializableType, getSerialVersionUID, getStandardIcon, getValue, hasDisplayName, haveParentClass, isConcrete, isLocalizable, isPersistable, isRemoveEventParticipant, isSuperclassOf, loadClass, resourceLookup, toDisplayNameMessage, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

externalizationVersionUID

public static final long externalizationVersionUID
Version identifier for managing compatibility and evolution of externalizable classes.

Supported API: false

See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

LINK_TABLE

public static final byte LINK_TABLE


Supported API: false

See Also:
Constant Field Values

DERIVED

public static final byte DERIVED


Supported API: false

See Also:
Constant Field Values

FOREIGN_KEY

public static final byte FOREIGN_KEY


Supported API: false

See Also:
Constant Field Values

roleA

private RoleDescriptor roleA

roleB

private RoleDescriptor roleB

duplicatesAllowed

private boolean duplicatesAllowed

attributed

private boolean attributed

storageType

private byte storageType

referenceName

private String referenceName

referenceType

private String referenceType

aliasesRoleA

private String[] aliasesRoleA

aliasesRoleB

private String[] aliasesRoleB
Constructor Detail

LinkInfo

public LinkInfo()
Constructor.

Supported API: false


LinkInfo

public LinkInfo(String[] theInterfaces,
                String aParentName,
                String aClassname,
                String aConcreteClassname,
                DatabaseInfo database_info,
                boolean persistentFlag,
                AttributeDescriptor[] attrs,
                boolean dups,
                boolean is_attributed,
                byte storage_type,
                String reference_name,
                String reference_type,
                RoleDescriptor role_A,
                RoleDescriptor role_B,
                String standard_icon,
                String open_icon,
                boolean has_displayName,
                String[] aliases_role_A,
                String[] aliases_role_B,
                DatastoreElementType datastore_elem_type,
                boolean isRemoveEventParticipant,
                HashMap extended_values)
         throws ClassNotFoundException
Constructor.

Supported API: false

Method Detail

getAliasesRoleA

String[] getAliasesRoleA()

getAliasesRoleB

String[] getAliasesRoleB()

getDuplicatesAllowed

public boolean getDuplicatesAllowed()
Determines whether duplicates are allowed.

Supported API: false

Returns:
boolean duplicatesAllowed

getOtherRole

public RoleDescriptor getOtherRole(RoleDescriptor otherRole)
Gets the other RoleDescriptor, relative to the one passed.

Supported API: true

Returns:
role from the other side of the link

getReferenceName

public String getReferenceName()
Gets the referenceName, from the point of view of the other side class, if there is a reference.

Supported API: false

Returns:
The name of the reference that holds one of the role instances.

getReferenceType

String getReferenceType()
Gets the referenceType, from the point of view of the other side class, if there is a reference.

Supported API: false

Returns:
The type of the reference that holds one of the role instances.

getRole

public RoleDescriptor getRole(String role_name)
Gets the RoleDescriptor by role name.

Supported API: true

Returns:
name of the RoleDescriptor to be obtained

getRoleA

public RoleDescriptor getRoleA()
Gets the roleA RoleDescriptor.

Supported API: true

Returns:
roleA descriptor

getRoleB

public RoleDescriptor getRoleB()
Gets the roleB RoleDescriptor.

Supported API: true

Returns:
roleB descriptor

isAttributed

public boolean isAttributed()
Determines if the link is attributed.

Supported API: true

Returns:
true, if the association was modeled with an explicit link class

isDerived

public boolean isDerived()
Determines if the implementation of the link is derived.

Supported API: false

Returns:
true, if the association was modeled as derived

isFound

private static boolean isFound(String roleName,
                               String[] collection)

isLinkTable

public boolean isLinkTable()
Determines if the implementation of the link is with a link table.

Supported API: true

Returns:
true, if the association is stored in a link table, separate from either side

isRoleA

public boolean isRoleA(String roleName)
Determines if the string is a roleA name.

Supported API: true

Returns:
true, if roleName plays roleA in the association

isRoleB

public boolean isRoleB(String roleName)
Determines if the string is a roleB name.

Supported API: true

Returns:
true, if roleName plays roleB in the association

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class ClassInfo
Parameters:
input - is an input stream
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class ClassInfo
Parameters:
output - is an output stream
Throws:
IOException

setAbsoluteDir

void setAbsoluteDir(String absolute_dir)
Overrides:
setAbsoluteDir in class ClassInfo