public class S_ClassObject extends S_TieSchemaObject
S_LibraryObject.MapInfo
Modifier and Type | Field and Description |
---|---|
protected S_ClassObject |
m_Superclass
The Superclass of this CLASSOBJECT.
|
protected boolean |
m_SuperclassResolved
Whether the superclass has been resolved.
|
CASCADE_OP_COPY_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_COPY_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_DELETE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_DELETE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_DELETE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_DELETE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_DELETE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_DELETE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_DELETE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_DELETE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_DELETE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_DELETE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_FREE_CATEGORY_TO_PUBLICOBJECT, CASCADE_OP_FREE_CATEGORY_TO_SCHEMAOBJECT, CASCADE_OP_FREE_CATEGORY_TO_SYSTEMOBJECT, CASCADE_OP_FREE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_FREE_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_FREE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_FREE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_FREE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_FREE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_FREE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_FREE_SCHEMAOBJECT_TO_CATEGORY, CASCADE_OP_FREE_SYSTEMOBJECT_TO_CATEGORY, CASCADE_OP_FREE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_FREE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_FREE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_FREE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_UNDEFINED, CASCADE_OP_UNDELETE_FAMILY_TO_VERSIONSERIES, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_LEFT_RELATIONSHIP, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_RIGHT_RELATIONSHIP, CASCADE_OP_UNDELETE_PUBLICOBJECT_TO_VERSIONDESCRIPTION, CASCADE_OP_UNDELETE_RELATIONSHIP_TO_LEFT_PUBLICOBJECT, CASCADE_OP_UNDELETE_RELATIONSHIP_TO_RIGHT_PUBLICOBJECT, CASCADE_OP_UNDELETE_VERSIONDESCRIPTION_TO_PUBLICOBJECT, CASCADE_OP_UNDELETE_VERSIONDESCRIPTION_TO_VERSIONSERIES, CASCADE_OP_UNDELETE_VERSIONSERIES_TO_FAMILY, CASCADE_OP_UNDELETE_VERSIONSERIES_TO_VERSIONDESCRIPTION, CASCADE_OP_UPDATE_CATEGORY_TO_PUBLICOBJECT, CASCADE_OP_UPDATE_CATEGORY_TO_SCHEMAOBJECT, CASCADE_OP_UPDATE_CATEGORY_TO_SYSTEMOBJECT, CASCADE_OP_UPDATE_PUBLICOBJECT_TO_CATEGORY, CASCADE_OP_UPDATE_SCHEMAOBJECT_TO_CATEGORY, CASCADE_OP_UPDATE_SYSTEMOBJECT_TO_CATEGORY, DEFAULT_RENDERER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
S_ClassObject(S_LibrarySession ssession,
Long classId)
Constructs an S_ClassObject.
|
protected |
S_ClassObject(S_LibrarySession ssession,
S_ClassObjectData data)
Constructs an S_ClassObject.
|
protected |
S_ClassObject(S_LibrarySession ssession,
S_LibraryObjectData data)
Constructs an S_ClassObject.
|
Modifier and Type | Method and Description |
---|---|
S_Attribute |
addAttribute(S_LibraryObjectDefinition def)
Adds an Attribute to this ClassObject.
|
protected void |
deriveDefinition(S_LibraryObjectDefinition sdef)
Add to the S_LibraryObjectDefinition
for this class.
|
protected S_ClassAccessControlList |
determineInheritedClassAcl()
Determines ClassAcl, if any, by ascending up the class hierarchy,
looking for the first class that has a ClassAcl set.
|
protected S_Policy |
determineInheritedPolicy(String operationName)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
Serializable |
DYNRecreateViews(Serializable payload)
Force re-creation of the database views, for this class
and all of its subclasses.
|
protected void |
extendedPostFree(OperationState opState,
S_LibraryObjectDefinition def)
operations to be performed after freeing
an object.
|
protected void |
extendedPostInsert(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs post-insert actions.
|
protected void |
extendedPostUpdate(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs post-update operations.
|
protected void |
extendedPreFree(OperationState opState,
S_LibraryObjectDefinition def)
operations to be performed before freeing
an object.
|
protected void |
extendedPreInsert(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs pre-insert actions.
|
String |
getDatabaseObjectName()
Returns the database object name for this instance.
|
String |
getDatabaseTableName()
Gets the name of the database table of the class.
|
protected S_LibraryObjectDefinition |
getDefinition()
Override getDefinition() to construct the correct bean-side
definition.
|
S_ClassObject[] |
getDirectSubclasses()
Gets the direct subclasses for this class as an array of
S_ClassObjects.
|
S_ClassObject |
getDirectSubclasses(int index)
Gets the index-specified direct subclass for this class as
an S_ClassObject.
|
int |
getEffectiveClassAttributeIndex(String attributeName)
Gets the array index of the specified effective attribute of
the class.
|
S_Attribute[] |
getEffectiveClassAttributes()
Gets the effective attributes for the class.
|
S_Attribute |
getEffectiveClassAttributes(int index)
Gets the specified effective attribute of the class.
|
S_Attribute |
getEffectiveClassAttributes(String attributeName)
Gets the specified effective attribute of the class.
|
protected Vector |
getEffectiveClassPolicyActionContexts(String operation)
Gets the set of policies, as PolicyActionContexts, implicitly applied
to all instances of this ClassObject for the specified operation.
|
Vector |
getEffectiveClassPolicyListElements(String operation)
Gets the set of policies, as PolicyListElements, implicitly applied
to all instances of this ClassObject for the specified operation.
|
int |
getExtendedClassAttributeIndex(String attributeName)
Gets the array index of the specified extended attribute of
the class.
|
S_Attribute[] |
getExtendedClassAttributes()
Gets the extended attributes for the class.
|
S_Attribute |
getExtendedClassAttributes(int index)
Gets the specified extended attribute of the class.
|
S_Attribute[] |
getExtendedClassAttributes(S_ClassObject superclass)
Gets an array of the attributes defined by this class.
|
S_Attribute |
getExtendedClassAttributes(String attributeName)
Gets the specified extended attribute of the class.
|
AttributeValue |
getInheritedPropertyValue(String name)
Gets named property, if any, by searching in the target
ClassObject's PropertyBundle, or in one of its
superclasses PropertyBundle.
|
AttributeValue |
getInheritedPropertyValue(String name,
boolean bypassNulls)
Gets named property, if any, by searching in the target
ClassObject's PropertyBundle, or in one of its
superclasses PropertyBundle.
|
S_ClassObject[] |
getSubclasses()
Gets the subclasses for this class as an array of
S_ClassObjects.
|
S_ClassObject |
getSubclasses(int index)
Gets the index-specified subclass for this class as
an S_ClassObject.
|
S_ClassObject |
getSuperclass()
Gets the superclass for this class.
|
boolean |
isDirectSubclassOf(S_ClassObject classObject)
Determines whether this class is a direct subclass of the
specfied class (that is, whether the specified class is the
immediate superclass of this class).
|
boolean |
isSubclassOf(S_ClassObject classObject)
Determines whether this class is a subclass of the specfied class
(that is, whether the specified class is this class, the immediate
superclass of this class, the super-superclass of this class, etc.).
|
void |
removeAttribute(S_Attribute attribute,
S_LibraryObjectDefinition def)
Removes an Attribute from this ClassObject.
|
addCategory, cascadeFree, extendedPreUpdate, getCategories, getCategories, getCategories, handleCascade, hasNameAttribute, verifyCanCreate, verifyCanFree, verifyCanUpdate
added, applyValueDefault, associatedPostFree, associatedPostInsert, associatedPreInsert, canPurge, cascadeCopy, cascadeUpdate, checkRequiredForInsert, checkSettable, clearArrayTypeAttributeValues, clearMapTypeAttributeValues, clonePublicObjectAttribute, constructIdArray, constructIdArray, copy, copy, copyVectorToLibraryObjectArray, createDefaultPolicyPropertyBundle, createDefaultPropertyBundle, createDefaultPropertyBundle, createInstance, deleteRows, deriveOwnerUniqueName, deriveOwnerUniqueName, deriveUppercasedAttribute, determineClassDomain, determinePolicy, determinePolicy, determineValueDefault, determineValueDomain, dispose, DYNInvalidateState, DYNLockRows, equals, equals, executePolicyOperation, extendedPreCopy, findPolicyFromPropertyBundleAv, free, free, getAttribute, getAttributeByUpperCaseName, getAuditCertificateName, getAuditDomainContext, getAuditEventFolderContext, getClassData, getClassId, getClassName, getClassObject, getContentStorageManager, getData, getEffectivePolicyActionContexts, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getId, getLibraryConnection, getName, getObjectReferenceAttribute, getPropertyBundle, getPropertyValue, getResourceString, getResourceString, getService, getSession, getSessionInterface, getTraceLogger, handleEvent, hashCode, insertReferenceAttributes, insertRow, insertRows, invalidateState, invokeOperation, invokePolicyMethod, isAuditCertificateSecured, isBroadcastCreateEventEnabled, isInstanceOf, isPersistent, issueCascade, isTraced, lockRows, postEvent, postEvent, postFree, postInsert, postUpdate, preFree, preInsert, preUpdate, privilegedUpdate, removed, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, toString, trace, update, updateRows, validateStringArray, verifyCanGetContent, verifyCanSetContent, verifyCanSetPolicy, verifyPersistent, verifyWriteableTransactionInProgress
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
protected S_ClassObject m_Superclass
protected boolean m_SuperclassResolved
protected S_ClassObject(S_LibrarySession ssession, S_LibraryObjectData data) throws IfsException
ssession
- the current sessiondata
- the object's dataIfsException
- if the operation failsprotected S_ClassObject(S_LibrarySession ssession, S_ClassObjectData data) throws IfsException
This variant takes an S_ClassObjectData instead of S_LibraryObjectData. It is used by dynamic construction.
ssession
- the current sessiondata
- the object's dataIfsException
- if the operation failsprotected S_ClassObject(S_LibrarySession ssession, Long classId) throws IfsException
This variant is used for objects that have not yet been created in the database.
ssession
- the current sessionclassId
- the id of the class of the object being
constructed (this should always be the id of the
CLASSOBJECT class). This is not the
id of the object being constructed.IfsException
- if the operation failspublic String getDatabaseObjectName() throws IfsException
Returns null if the ClassObject does not have its own table.
IfsException
- if operation fails.public String getDatabaseTableName() throws IfsException
IfsException
- if the operation failspublic Vector getEffectiveClassPolicyListElements(String operation) throws IfsException
The PolicyListElements are returned in SORTSEQUENCE order. If more than one PolicyListElement has a particular SORTSEQUENCE value, a PolicyListElement introduced by a classobject precedes the PolicyListElements introduced by the superclasses of that classobject.
operation
- the operation of interest, or null for
all operationsIfsException
- if the operation failsprotected Vector getEffectiveClassPolicyActionContexts(String operation) throws IfsException
The PolicyActionContexts are returned unsorted.
operation
- the operation of interest, or null for
all operationsIfsException
- if the operation failsprotected S_Policy determineInheritedPolicy(String operationName) throws IfsException
operationName
- Operation nameIfsException
- if the operation failspublic AttributeValue getInheritedPropertyValue(String name) throws IfsException
Return null if no property exists for this name.
name
- the Property nameIfsException
- if the operation failspublic AttributeValue getInheritedPropertyValue(String name, boolean bypassNulls) throws IfsException
If bypassNulls is true, null valued properties are ignored, and treated the same as if the property was not defined. Return null if no property exists for this name.
name
- the Property namebypassNulls
- indication as to whether null valued properties
should be treated the same as if the property
is not definedIfsException
- if the operation failsprotected S_ClassAccessControlList determineInheritedClassAcl() throws IfsException
IfsException
- if the operation failsprotected void extendedPreInsert(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPreInsert
in class S_SchemaObject
opState
- current operation statesdef
- the definition for the insert operationIfsException
- if the operation failsprotected void extendedPostInsert(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPostInsert
in class S_LibraryObject
opState
- current operation statesdef
- the definition for the insert operationIfsException
- if the operation failsprotected void extendedPostUpdate(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPostUpdate
in class S_LibraryObject
opState
- current operation statesdef
- the definition for the insert operationIfsException
- if the operation failsprotected void extendedPreFree(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPreFree
in class S_LibraryObject
opState
- current operation statedef
- the definition for the free operationIfsException
- if operation fails.protected void extendedPostFree(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPostFree
in class S_LibraryObject
opState
- current operation statedef
- the definition for the free operationIfsException
- if operation fails.protected void deriveDefinition(S_LibraryObjectDefinition sdef) throws IfsException
deriveDefinition
in class S_SchemaObject
sdef
- the S_LibraryObjectDefinition that contains
the definition of the target object.IfsException
- if operation fails.public S_Attribute[] getEffectiveClassAttributes() throws IfsException
The effective attributes of the class are both the attributes introduced by the class itself as well as the attributes the class inherits from its superclasses.
IfsException
- if the operation failspublic S_Attribute getEffectiveClassAttributes(int index) throws IfsException
The effective attributes of the class are both the attributes introduced by the class itself as well as the attributes the class inherits from its superclasses.
index
- the zero-based attribute indexIfsException
- if the operation failspublic S_Attribute getEffectiveClassAttributes(String attributeName) throws IfsException
The effective attributes of the class are both the attributes introduced by the class itself as well as the attributes the class inherits from its superclasses.
attributeName
- the attribute nameIfsException
- if the operation failspublic int getEffectiveClassAttributeIndex(String attributeName) throws IfsException
The effective attributes of the class are the attributes introduced by the class itself, and any attributes the class inherits from its superclasses.
attributeName
- the attribute nameIfsException
- (IFS-10407) if the attribute name is
not the name of an effective attribute of the class
or IfsException if the operation otherwise failspublic S_Attribute[] getExtendedClassAttributes() throws IfsException
The extended attributes of the class are only the attributes introduced by the class itself, and do not include any attributes the class inherits from its superclasses.
IfsException
- if the operation failspublic S_Attribute[] getExtendedClassAttributes(S_ClassObject superclass) throws IfsException
superclass
- a superclass of this classIfsException
- (IFS-19001) if superclass is null
or IfsException (IFS-19005) if superclass is not a
superclass of this class
or IfsException if the operation otherwise failspublic S_Attribute getExtendedClassAttributes(int index) throws IfsException
The extended attributes of the class are only the attributes introduced by the class itself, and do not include any attributes the class inherits from its superclasses.
index
- the zero-based attribute indexIfsException
- if the operation failspublic S_Attribute getExtendedClassAttributes(String attributeName) throws IfsException
The extended attributes of the class are only the attributes introduced by the class itself, and do not include any attributes the class inherits from its superclasses.
attributeName
- the attribute nameIfsException
- if the operation failspublic int getExtendedClassAttributeIndex(String attributeName) throws IfsException
The extended attributes of the class are only the attributes introduced by the class itself, and do not include any attributes the class inherits from its superclasses.
attributeName
- the attribute nameIfsException
- (IFS-10407) if the attribute name is
not the name of an extended attribute of the class
or IfsException if the operation otherwise failspublic S_ClassObject getSuperclass() throws IfsException
IfsException
- if the operation failspublic S_ClassObject[] getDirectSubclasses() throws IfsException
The direct subclasses are the classes that directly extend this class.
IfsException
- if the operation failspublic S_ClassObject getDirectSubclasses(int index) throws IfsException
The direct subclasses are the classes that directly extend this class.
index
- the zero-based direct subclass indexIfsException
- if the operation failspublic S_ClassObject[] getSubclasses() throws IfsException
The subclasses are the classes that directly extend this class and their subclasses, sub-subclasses, etc.
IfsException
- if the operation failspublic S_ClassObject getSubclasses(int index) throws IfsException
The subclasses are the classes that directly extend this class and their subclasses, sub-subclasses, etc.
index
- the zero-based direct subclass indexIfsException
- if the operation failspublic boolean isDirectSubclassOf(S_ClassObject classObject) throws IfsException
classObject
- the class of interestclassObject
IfsException
- (IFS-19001) if classObject
is nullpublic boolean isSubclassOf(S_ClassObject classObject) throws IfsException
classObject
- the class of interestclassObject
IfsException
- (IFS-19001) if classObject
is nullpublic S_Attribute addAttribute(S_LibraryObjectDefinition def) throws IfsException
def
- the AttributeDefinition of the new AttributeIfsException
- (IFS-30820) if the operation failspublic void removeAttribute(S_Attribute attribute, S_LibraryObjectDefinition def) throws IfsException
attribute
- the Attribute to removedef
- a definition that influences how the attribute is
removed, or null for default behaviorIfsException
- (IFS-30821) if the operation failsprotected S_LibraryObjectDefinition getDefinition() throws IfsException
getDefinition
in class S_LibraryObject
IfsException
- if operation fails.public Serializable DYNRecreateViews(Serializable payload) throws IfsException
payload
- no payload is used for this DYN methodIfsException
- if the operation failsCopyright © 2023. All rights reserved.