public class NamedRelationship extends TieRelationship
To create a NamedRelationship between two objects use a RelationshipDefinition and set the class to NAMEDRELATIONSHIP. You can also call relDef.setAttribute(TYPE_ATTRIBUTE, typeAttrVal) to set an initial type.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CLASS_NAME
The name of this class. 
 | 
static String | 
TYPE_ATTRIBUTE
The type of the NamedRelationship. 
 | 
LEFTOBJECT_ATTRIBUTE, NAME_ATTRIBUTE, RIGHTOBJECT_ATTRIBUTE, SORTSEQUENCE_ATTRIBUTEACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTEDOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session| Modifier | Constructor and Description | 
|---|---|
protected  | 
NamedRelationship(LibrarySession session,
                 Long id,
                 Long classId,
                 S_LibraryObjectData data)
Construct a NamedRelationship object - standard variant. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected static NamedRelationship | 
constructNamedRelationship(LibrarySession sess,
                          S_LibraryObjectData data)  | 
protected static Vector | 
constructNamedRelationshipVector(LibrarySession sess,
                                Vector vector)  | 
static NamedRelationship | 
find(LibrarySession session,
    PublicObject leftObj,
    PublicObject rightObj,
    String type)
Finds an instance that matches the specified left and right objects,
 and the specified type. 
 | 
String | 
getType()
Get the value of TYPE attribute. 
 | 
void | 
setType(String type)
Set the TYPE attribute 
 | 
constructRelationship, constructRelationshipVector, getLeftObject, getRightObject, getSortSequence, hasNameAttribute, vectorToRelationshipArrayaddCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyListsadded, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, preFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeByUpperCaseName, getClassId, getId, getSessionInterfacegetTraceLogger, isTraced, tracepublic static final String CLASS_NAME
public static final String TYPE_ATTRIBUTE
protected NamedRelationship(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session - sesson contextid - object IDclassId - class IDdata - the object's dataIfsException - if the operation failspublic void setType(String type) throws IfsException
type - value of attribute TYPEIfsException - if the operation failspublic String getType() throws IfsException
IfsException - if the operation failspublic static NamedRelationship find(LibrarySession session, PublicObject leftObj, PublicObject rightObj, String type) throws IfsException
If more than one instance matches the specifications, the oldest instance (the one with the lower ID) will be returned.
session - the session contextleftObj - the left objectrightObj - the right objecttype - the typeIfsException - if operation fails.protected static Vector constructNamedRelationshipVector(LibrarySession sess, Vector vector) throws IfsException
IfsExceptionprotected static NamedRelationship constructNamedRelationship(LibrarySession sess, S_LibraryObjectData data) throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.