public class ClassObjectDefinition extends SchemaObjectDefinition
This subclass of SchemaObjectDefinition sets the default ClassObject to "CLASSOBJECT".
ClassObject, 
Serialized FormLibraryObjectDefinition.EnumToIntegerCode, LibraryObjectDefinition.LookupByName| Modifier and Type | Field and Description | 
|---|---|
static String | 
DROP_TABLE_SYSTEMOPTION_NAME
The name of the system option whose boolean AttributeValue controls
 whether, in freeing a ClassObject, the base table is dropped. 
 | 
m_CategoryDefsm_Attributes, m_ClassObjectName, m_ClassObjectValue, m_ContentSpecifications, m_DefinitionLists, m_Definitions, m_EnclosedDefinition, m_Id, m_Options, m_ReadOnly, m_ReferenceAttributes, m_Session, m_SystemOptions| Constructor and Description | 
|---|
ClassObjectDefinition(LibrarySessionInterface session)
Construct a definition explicitly capturing the
 session. 
 | 
ClassObjectDefinition(LibrarySessionInterface session,
                     String className)
Construct a definition, explicitly capturing the
 session and setting the initial classobject. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAttributeDefinition(AttributeDefinition def)
Adds an Attribute definition for the new ClassObject. 
 | 
void | 
addAttributeDefinitions(AttributeDefinition[] defs)
Adds a set of new Attribute definitions. 
 | 
AttributeDefinition[] | 
getAttributeDefinitions()
Gets the Attributes defined for this instance. 
 | 
ClassObject | 
getSuperclass()
Deprecated. 
 
CM SDK 10gR2: use getAttribute(ClassObject.SUPERCLASS_ATTRIBUTE) 
 | 
boolean | 
getTablelessOption()
Return the indication as to whether the ClassObject will be
 created without its own table. 
 | 
AttributeValue | 
getUniqueNameValue()
Get the value set for the UniqueName. 
 | 
void | 
removeAttributeDefinitions()
Removes all Attribute definition specifications from this instance. 
 | 
void | 
setAttributeDefinitions(AttributeDefinition[] defs)
Defines a set of new Attribute Definitions. 
 | 
void | 
setName(String name)
Sets the name of the new ClassObject. 
 | 
void | 
setSuperclass(ClassObject superclass)
Deprecated. 
 
CM SDK 10gR2: use setAttribute(ClassObject.SUPERCLASS_ATTRIBUTE,
 AttributeValue.newAttributeValue(superclass)); 
 | 
void | 
setTablelessOption(boolean option)
Set or clear the indication to create the ClassObject without its own table. 
 | 
void | 
setUniqueNameValue(AttributeValue av)
Set the value set for the UniqueName. 
 | 
addCategoryDefinition, addCategoryDefinitions, applySettings, getCategoryDefinitions, removeCategoryDefinitions, setCategoryDefinitions, toSchemaObjectDefinition, toSchemaObjectDefinitionaddDefinition, addDefinitions, addProperty, addPropertyDefinition, addPropertyDefinition, addPropertyDefinitions, addPropertyDefinitions, addSimplePropertyDefinition, addSimplePropertyDefinition, addSimplePropertyDefinitions, addSimplePropertyDefinitions, applyEnumSetting, applyEnumSetting, applyMapSetting, applyMapSetting, applyObjectArraySetting, applyObjectArraySetting, applyObjectSetting, applyObjectSetting, applySetting, applySetting, captureSession, captureSession, captureSession, clone, constructInstance, constructInstance, constructInstance, copyInto, deriveObjectArraySetting, deriveObjectSetting, getAttribute, getAttribute, getAttributes, getAttributes, getAttributesSorted, getClassId, getClassObject, getClassObjectValue, getContentSpecification, getContentSpecificationKeys, getCopiedObjectValue, getDefinition, getDefinitionClassName, getDefinitionKeys, getDefinitionListKeys, getDefinitions, getId, getLibrarySession, getName, getOption, getOptionAsAttributeValue, getOptionKeys, getPolicyMode, getPropertyDefinitions, getReferenceAttribute, getReferenceAttributes, getServerDefinition, getSession, getSimplePropertyDefinitions, getSLibrarySession, getStringAttribute, getSystemOption, getSystemOptionAsAttributeValue, getSystemOptionAsBoolean, getSystemOptionKeys, getWriteableInstance, isReadOnly, prepareForDefinitionObject, processSimplePropertiesForCreate, processSimplePropertiesForUpdate, removeAttribute, removeContentSpecification, removeDefinition, removeDefinitions, removeOption, removePropertyDefinitions, removeReferenceAttribute, removeSimplePropertyDefinitions, removeSystemOption, reset, resolve, setAttribute, setAttribute, setAttribute, setAttributeByUpperCaseName, setAttributeByUpperCaseName, setAttributePolicyMode, setAttributes, setClassId, setClassname, setClassObject, setClassObjectValue, setContentSpecification, setCopiedObjectValue, setDefinition, setDefinitions, setId, setOption, setReadOnly, setReferenceAttribute, setReferenceAttribute, setSession, setSimplePropertyDefinitions, setSystemOption, unresolve, verifySessionpublic static final String DROP_TABLE_SYSTEMOPTION_NAME
The default behavior is to drop the table. However, if this system option is set false in the ClassObjectDefinition supplied in freeing a ClassObject, the repository will not drop the table. In that case, the caller should ensure the table is dropped by some other means.
public ClassObjectDefinition(LibrarySessionInterface session) throws IfsException
session - the current sessionIfsException - if the operation failspublic ClassObjectDefinition(LibrarySessionInterface session, String className) throws IfsException
session - the current sessionclassName - the initial class nameIfsException - if the operation failspublic final void setName(String name) throws IfsException
setName in class LibraryObjectDefinitionname - the nameIfsException - if the operation fails@Deprecated public final void setSuperclass(ClassObject superclass) throws IfsException
superclass - the superclassIfsException - if the operation fails@Deprecated public final ClassObject getSuperclass() throws IfsException
IfsException - if the operation failspublic final void addAttributeDefinition(AttributeDefinition def) throws IfsException
def - the AttributeDefinitionIfsException - if the operation failspublic void addAttributeDefinitions(AttributeDefinition[] defs) throws IfsException
defs - the Attribute definitions to be added for this instanceIfsExceptionpublic void setAttributeDefinitions(AttributeDefinition[] defs) throws IfsException
defs - the Attribute definitionsIfsExceptionpublic void removeAttributeDefinitions()
                                throws IfsException
IfsExceptionpublic final AttributeDefinition[] getAttributeDefinitions() throws IfsException
IfsException - if the operation failspublic void setUniqueNameValue(AttributeValue av) throws IfsException
av - the UniqueName value to be set for this ClassObjectIfsException - if the operation failspublic AttributeValue getUniqueNameValue() throws IfsException
IfsException - if the operation failspublic void setTablelessOption(boolean option)
                        throws IfsException
option - true if the ClassObject is to be without its own tableIfsException - if operation fails.public boolean getTablelessOption()
                           throws IfsException
IfsException - if operation fails.Copyright © 2025. All rights reserved.