|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.federation.InfoEngineTranslationTable
Generate a unique identifier for a remote object given a key and a set of name/value substitutions.
Use the newInfoEngineTranslationTable
static factory method(s),
not the InfoEngineTranslationTable
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
Field Summary | |
static String |
CLASS_GROUP_TABLE
Label for the attribute. |
static String |
CLASS_TEMPLATE_TABLE
Label for the attribute. |
private Hashtable |
classGroupTable
|
private static String |
CLASSNAME
|
private Hashtable |
classTemplateTable
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
ID_TEMPLATE_TABLE
Label for the attribute. |
private Hashtable |
idTemplateTable
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
private static String |
ROLE_QUALIFIER
|
(package private) static long |
serialVersionUID
|
static String |
TABLE_NAME
Label for the attribute. |
private static int |
TABLE_NAME_UPPER_LIMIT
|
static String |
TABLE_TYPE
Label for the attribute. |
private static int |
TABLE_TYPE_UPPER_LIMIT
|
private String |
tableName
|
private String |
tableType
|
static String |
TRANSLATION_TABLE
Label for the attribute. |
private Hashtable |
translationTable
|
private static String |
URL_QUALIFIER
|
Fields inherited from class wt.fc.Item |
VERSION_40_UID, VERSION_51_UID |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
InfoEngineTranslationTable()
|
Method Summary | |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
String |
generateObjectId(Class javaClass,
Hashtable attributeTable,
Hashtable arguments)
Generate a unique identifier for a remote object given the Java class to which it is being mapped and a set of name/value substitutions. |
String |
generateObjectId(Class linkClass,
String role,
Hashtable attributeTable,
Hashtable arguments)
Generate a unique identifier for a remote object given a link class that references it, the role that it plays in the association defined by the link class, and a set of name/value substitutions. |
String |
generateObjectId(String key,
Hashtable attributeTable,
Hashtable arguments)
Generate a unique identifier for a remote object given a generic key and a set of name/value substitutions. |
String |
generateSourceURL(Class javaClass,
Hashtable attributeTable,
Hashtable arguments)
Generate a source URL for a remote object given the Java class to which it is mapped and a set of name/value substitutions. |
String |
getAttributeForField(Class javaClass,
String fieldName)
Return the remote attribute name associated with a specified field name of a specified Java class. |
Class |
getClassForGroup(String groupName)
Get the Java class corresponding to a specified Info*Engine group name. |
Hashtable |
getClassGroupTable()
Gets the value of the attribute: CLASS_GROUP_TABLE. |
Hashtable |
getClassTable(Class javaClass)
Return the Hashtable defining translations between the field names of a specified Java class and remote attribute names. |
Hashtable |
getClassTemplate(Class javaClass)
Return the Hashtable defining a template that can be used to create a remote object representing the specified Java class. |
Hashtable |
getClassTemplateTable()
Gets the value of the attribute: CLASS_TEMPLATE_TABLE. |
String |
getConceptualClassname()
Deprecated. |
Enumeration |
getDefinedJavaClasses()
Return the enumeration of Java class names for which there are translations to remote object classes. |
String |
getGroupForClass(Class javaClass)
Return the Info*Engine group name corresponding to the specified Java class. |
String |
getIdTemplate(Class javaClass)
Supported API: false |
String |
getIdTemplate(Class linkClass,
String role)
Supported API: false |
String |
getIdTemplate(String key)
Return the template associated with the specified key. |
Hashtable |
getIdTemplateTable()
Gets the value of the attribute: ID_TEMPLATE_TABLE. |
String |
getSourceURLTemplate(Class javaClass)
Supported API: false |
String |
getTableName()
Gets the value of the attribute: TABLE_NAME. |
String |
getTableType()
Gets the value of the attribute: TABLE_TYPE. |
Hashtable |
getTranslationTable()
Gets the value of the attribute: TRANSLATION_TABLE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(String name,
String type)
Supports initialization, following construction of an instance. |
static InfoEngineTranslationTable |
newInfoEngineTranslationTable()
Constructor returning an instance initialized with default property values. |
static InfoEngineTranslationTable |
newInfoEngineTranslationTable(String name,
String type)
Constructor returning an instance initialized with a specified name and type. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(InfoEngineTranslationTable thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAttributeForField(Class javaClass,
String fieldName,
String attributeName)
Set the remote attribute name associated with a specified field name of a specified Java class. |
void |
setClassAndGroup(Class javaClass,
String groupName)
Set the Java class associated with a specified Info*Engine group name, and vice versa. |
void |
setClassForGroup(String groupName,
Class javaClass)
Set the Java class associated with a specified Info*Engine group name. |
void |
setClassGroupTable(Hashtable a_ClassGroupTable)
Sets the value of the attribute: CLASS_GROUP_TABLE. |
void |
setClassTable(Class javaClass,
Hashtable translations)
Set the Hashtable defining translations between the field names of a specified Java class and remote attribute names. |
void |
setClassTemplate(Class javaClass,
Hashtable template)
Set the Hashtable defining a template that can be used to create a remote object representing the specified Java class. |
void |
setClassTemplateTable(Hashtable a_ClassTemplateTable)
Sets the value of the attribute: CLASS_TEMPLATE_TABLE. |
void |
setGroupForClass(Class javaClass,
String groupName)
Set the Info*Engine group name corresponding to the specified Java class. |
void |
setIdTemplate(Class javaClass,
String template)
Establish the template that will be used to generate unique identifiers for remote objects mapped to the specified Java class. |
void |
setIdTemplate(Class linkClass,
String roleAName,
String roleATemplate,
String roleBName,
String roleBTemplate)
Establish the templates that will be used to generate unique identifiers for remote objects associated by a specified link class. |
void |
setIdTemplate(String key,
String template)
Establish the template that will be used to generate unique identifiers associated with the specified key. |
void |
setIdTemplateTable(Hashtable a_IdTemplateTable)
Sets the value of the attribute: ID_TEMPLATE_TABLE. |
void |
setSourceURLTemplate(Class javaClass,
String template)
Establish the template that will be used to generate source URL's for remote objects mapped to the specified Java class. |
void |
setTableName(String a_TableName)
Sets the value of the attribute: TABLE_NAME. |
void |
setTableType(String a_TableType)
Sets the value of the attribute: TABLE_TYPE. |
void |
setTranslationTable(Hashtable a_TranslationTable)
Sets the value of the attribute: TRANSLATION_TABLE. |
private void |
tableNameValidate(String a_TableName)
|
private void |
tableTypeValidate(String a_TableType)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.fc.Item |
getDomainRef, isInheritedDomain, readVersion, setDomainRef, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String TRANSLATION_TABLE
private Hashtable translationTable
public static final String CLASS_GROUP_TABLE
private Hashtable classGroupTable
public static final String CLASS_TEMPLATE_TABLE
private Hashtable classTemplateTable
public static final String ID_TEMPLATE_TABLE
private Hashtable idTemplateTable
public static final String TABLE_NAME
private static int TABLE_NAME_UPPER_LIMIT
private String tableName
public static final String TABLE_TYPE
private static int TABLE_TYPE_UPPER_LIMIT
private String tableType
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String ROLE_QUALIFIER
private static final String URL_QUALIFIER
Constructor Detail |
public InfoEngineTranslationTable()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Item
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Item
input
-
IOException
ClassNotFoundException
protected boolean readVersion(InfoEngineTranslationTable thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Item
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Item
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public Hashtable getTranslationTable()
public void setTranslationTable(Hashtable a_TranslationTable) throws WTPropertyVetoException
a_TranslationTable
-
WTPropertyVetoException
public Hashtable getClassGroupTable()
public void setClassGroupTable(Hashtable a_ClassGroupTable) throws WTPropertyVetoException
a_ClassGroupTable
-
WTPropertyVetoException
public Hashtable getClassTemplateTable()
public void setClassTemplateTable(Hashtable a_ClassTemplateTable) throws WTPropertyVetoException
a_ClassTemplateTable
-
WTPropertyVetoException
public Hashtable getIdTemplateTable()
public void setIdTemplateTable(Hashtable a_IdTemplateTable) throws WTPropertyVetoException
a_IdTemplateTable
-
WTPropertyVetoException
public String getTableName()
public void setTableName(String a_TableName) throws WTPropertyVetoException
a_TableName
-
WTPropertyVetoException
private void tableNameValidate(String a_TableName) throws WTPropertyVetoException
a_TableName
-
WTPropertyVetoException
public String getTableType()
public void setTableType(String a_TableType) throws WTPropertyVetoException
a_TableType
-
WTPropertyVetoException
private void tableTypeValidate(String a_TableType) throws WTPropertyVetoException
a_TableType
-
WTPropertyVetoException
public static InfoEngineTranslationTable newInfoEngineTranslationTable() throws FederationServicesException
FederationServicesException
public static InfoEngineTranslationTable newInfoEngineTranslationTable(String name, String type) throws FederationServicesException
name
- type
-
FederationServicesException
protected void initialize(String name, String type) throws FederationServicesException
name
- type
-
FederationServicesException
public String getGroupForClass(Class javaClass)
javaClass
-
public void setGroupForClass(Class javaClass, String groupName)
javaClass
- groupName
- public Enumeration getDefinedJavaClasses()
public Hashtable getClassTable(Class javaClass)
javaClass
-
public void setClassTable(Class javaClass, Hashtable translations)
javaClass
- translations
- public Class getClassForGroup(String groupName)
groupName
-
public void setClassForGroup(String groupName, Class javaClass)
groupName
- javaClass
- public void setClassAndGroup(Class javaClass, String groupName)
javaClass
- groupName
- public String getAttributeForField(Class javaClass, String fieldName)
javaClass
- fieldName
-
public void setAttributeForField(Class javaClass, String fieldName, String attributeName)
javaClass
- fieldName
- attributeName
- public String getIdTemplate(String key)
key
-
public String getIdTemplate(Class javaClass)
javaClass
-
public String getIdTemplate(Class linkClass, String role)
linkClass
- role
-
public void setIdTemplate(String key, String template)
key
- template
- public void setIdTemplate(Class javaClass, String template)
javaClass
- template
- public void setIdTemplate(Class linkClass, String roleAName, String roleATemplate, String roleBName, String roleBTemplate)
linkClass
- roleAName
- roleATemplate
- roleBName
- roleBTemplate
- public String getSourceURLTemplate(Class javaClass)
javaClass
-
public void setSourceURLTemplate(Class javaClass, String template)
javaClass
- template
- public String generateObjectId(Class javaClass, Hashtable attributeTable, Hashtable arguments)
javaClass
- attributeTable
- arguments
-
public String generateObjectId(Class linkClass, String role, Hashtable attributeTable, Hashtable arguments)
linkClass
- role
- attributeTable
- arguments
-
public String generateObjectId(String key, Hashtable attributeTable, Hashtable arguments)
key
- attributeTable
- arguments
-
public String generateSourceURL(Class javaClass, Hashtable attributeTable, Hashtable arguments)
javaClass
- attributeTable
- arguments
-
public Hashtable getClassTemplate(Class javaClass)
javaClass
-
public void setClassTemplate(Class javaClass, Hashtable template)
javaClass
- template
- public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Item
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Item
protected void initialize() throws FederationServicesException
initialize
in class Item
FederationServicesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |