public class S_Attribute extends S_TieSchemaObject
S_LibraryObject.MapInfoCASCADE_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_Attribute(S_LibrarySession ssession,
Long classId)
Constructs an S_Attribute.
|
protected |
S_Attribute(S_LibrarySession ssession,
S_AttributeData data)
Constructs an S_Attribute.
|
protected |
S_Attribute(S_LibrarySession ssession,
S_LibraryObjectData data)
Constructs an S_Attribute.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createMultiValueTable(LibraryConnection lconn,
int dataType,
int dataLen,
int dataScale,
String tableName)
Creates a multi-value table (for map and array types) if the
table specified does not yet exist.
|
protected void |
createMultiValueTableIfNeeded(int dataType,
int dataLen,
int dataScale,
String tableName)
Creates a multi-value table (for map and array types) if the
table specified does not yet exist.
|
protected void |
deriveDefinition(S_LibraryObjectDefinition def)
deriveDefinition - Add to the S_LibraryObjectDefinition
for this class.
|
static int |
doDanglingArrayReferencesCleanUp(S_LibrarySession session,
Vector params)
Perform dangling array type object references cleanup
|
static int |
doDanglingObjectReferencesCleanUp(S_LibrarySession session,
Vector params)
Perform dangling object references cleanup
|
protected void |
extendedPostFree(OperationState opState,
S_LibraryObjectDefinition def)
Performs post-free operations.
|
protected void |
extendedPostInsert(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs post-insert operations.
|
protected void |
extendedPostUpdate(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs post-update operations.
|
protected void |
extendedPreFree(OperationState opState,
S_LibraryObjectDefinition def)
Performs pre-free operations.
|
protected void |
extendedPreInsert(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs pre-insert validation.
|
protected void |
extendedPreUpdate(OperationState opState,
S_LibraryObjectDefinition sdef)
Performs pre-update validation.
|
String |
getDatabaseObjectName()
getDatabaseObjectName - gets the database column name used
by this Attribute.
|
int |
getDataLength()
Gets the data length of the attribute.
|
int |
getDataScale()
Get the data scale of this Attribute.
|
int |
getDatatype()
getDatatype - gets the datatype of this Attribute
|
S_ClassObject |
getDefiningClass()
Returns the ClassObject that defines this attribute.
|
protected S_LibraryObjectDefinition |
getDefinition()
Override getDefinition() to construct the correct bean-side
definition.
|
int |
getEffectiveDatalength()
Gets the effective data length for the Attribute.
|
String |
getMultiValueTableName()
Gets the table name to use for storing multi-valued
attribute values (maps or arrays).
|
String |
getMultiValueTableName(String suffix)
Gets the table name to use for storing multi-valued
attribute values (maps or arrays).
|
String |
getMultiValueTableSuffix()
Returns the custom table suffix used to derive the table
for the map or array values used for this Attribute.
|
addCategory, cascadeFree, getCategories, getCategories, getCategories, handleCascade, hasNameAttribute, verifyCanCreate, verifyCanFree, verifyCanUpdateadded, 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, getAuditDomainContextFolder, 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, postEvent, postFree, postInsert, postUpdate, preFree, preInsert, preUpdate, privilegedUpdate, removed, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, toString, trace, update, updateRows, validateStringArray, verifyCanGetContent, verifyCanSetContent, verifyCanSetPolicy, verifyPersistent, verifyWriteableTransactionInProgressclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeByUpperCaseName, getClassId, getId, getSessionInterfacegetTraceLogger, isTraced, traceprotected S_Attribute(S_LibrarySession ssession, S_LibraryObjectData data) throws IfsException
ssession - the current sessiondata - the object's dataIfsException - if the operation fails.protected S_Attribute(S_LibrarySession ssession, S_AttributeData data) throws IfsException
This variant takes an S_AttributeData instead of S_LibraryObjectData. It is used by dynamic construction.
ssession - the current sessiondata - the object's dataIfsException - if the operation fails.protected S_Attribute(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 class id of the attribute (not
the id of the containing class object)IfsException - if the operation fails.public int getDatatype()
throws IfsException
IfsException - if operation failspublic String getDatabaseObjectName() throws IfsException
IfsException - if operation failspublic S_ClassObject getDefiningClass() throws IfsException
IfsException - if the operation failspublic int getDataLength()
throws IfsException
IfsException - if the operation fails.public int getDataScale()
throws IfsException
IfsException - if the operation failspublic String getMultiValueTableSuffix() throws IfsException
If a custom value is not defined, this method returns null.
IfsException - if operation fails.public String getMultiValueTableName() throws IfsException
IfsException - if the operation failspublic String getMultiValueTableName(String suffix) throws IfsException
suffix - the table suffixIfsException - if the operation failspublic int getEffectiveDatalength()
throws IfsException
This is typically the same as the value of DATALENGTH attribute, except for String-array attributes, where the effective data length is the default max (1000) if a custom table is not used.
IfsException - if the operation failspublic static int doDanglingObjectReferencesCleanUp(S_LibrarySession session, Vector params) throws IfsException
session - the current sessionparams - Vector of parameters needed for this cleanupIfsException - if the operation failspublic static int doDanglingArrayReferencesCleanUp(S_LibrarySession session, Vector params) throws IfsException
session - the current sessionparams - Vector of parameters needed for this cleanupIfsException - if the operation failsprotected void deriveDefinition(S_LibraryObjectDefinition def) throws IfsException
deriveDefinition in class S_SchemaObjectdef - the S_LibraryObjectDefinition that contains
the definition of the target object.IfsException - if operation fails.protected S_LibraryObjectDefinition getDefinition() throws IfsException
getDefinition in class S_LibraryObjectIfsException - if operation fails.protected void extendedPreInsert(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPreInsert in class S_SchemaObjectopState - the operation statesdef - the definition of the Attribute being createdIfsException - (IFS-10420) if a class domain is specified
for a non-object type Attributeprotected void extendedPostInsert(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPostInsert in class S_LibraryObjectopState - the operation statesdef - the definition of the Attribute being createdIfsException - if the operation failsprotected void extendedPreUpdate(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPreUpdate in class S_SchemaObjectopState - the operation statesdef - the definition of the Attribute being updatedIfsException - (IFS-10420) if a class domain is specified
for a non-object type Attributeprotected void extendedPostUpdate(OperationState opState, S_LibraryObjectDefinition sdef) throws IfsException
extendedPostUpdate in class S_LibraryObjectopState - the operation statesdef - the definition of the Attribute being updatedIfsException - if the operation failsprotected void extendedPreFree(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPreFree in class S_LibraryObjectopState - the operation statedef - object definitionIfsException - if the operation failsprotected void extendedPostFree(OperationState opState, S_LibraryObjectDefinition def) throws IfsException
extendedPostFree in class S_LibraryObjectopState - the operation statedef - object definitionIfsException - if the operation failsprotected void createMultiValueTableIfNeeded(int dataType,
int dataLen,
int dataScale,
String tableName)
throws IfsException
dataType - the data typedataLen - the data lengthdataScale - the data scaletableName - the table nameIfsException - if the operation failsprotected void createMultiValueTable(LibraryConnection lconn, int dataType, int dataLen, int dataScale, String tableName) throws IfsException
lconn - the LibraryConnection contextdataType - the data typedataLen - the data lengthdataScale - the data scaletableName - the table nameIfsException - if the operation failsCopyright © 2025. All rights reserved.