public final class S_ClassObjectData extends S_LibraryObjectData implements Cloneable
Modifier and Type | Field and Description |
---|---|
static Long |
CLASSOBJECT_CLASSID
Magic number: the class id of CLASSOBJECT.
|
protected long |
m_AttributesCheckedRsn
The resolution sequence number at which the validity of the
m_EffectiveClassAttributeIndexesByName, m_EffectiveClassAttributeIds,
and m_ExtendedAttributeCount members was last confirmed.
|
protected long |
m_AttributesRsn
The resolution sequence number of m_EffectiveClassAttributeIndexesByName,
m_EffectiveClassAttributeIds, and m_ExtendedAttributeCount.
|
protected Constructor |
m_BeanConstructor
The constructor for the LibraryObject subclass
that represents instances of this CLASSOBJECT.
|
protected Long[] |
m_EffectiveClassAttributeIds
The Long ids of the effective attributes of the CLASSOBJECT
represented by this S_ClassObjectData.
|
protected HashMap |
m_EffectiveClassAttributeIndexesByName
The Integer indexes of the effective attributes of the CLASSOBJECT
represented by this S_ClassObjectData.
|
protected int |
m_ExtendedAttributeCount
The number of attributes introduced by the CLASSOBJECT represented
by this S_ClassObjectData over its superclass CLASSOBJECT.
|
protected boolean |
m_HasExtendedArrayAttributes
Indicates whether this S_ClassObjectData introduces any
array attributes.
|
protected boolean |
m_HasExtendedMapAttributes
Indicates whether this S_ClassObjectData introduces any
map attributes.
|
protected Constructor |
m_SelectorConstructor
The constructor for the S_LibraryObjectSelector
subclass for this CLASSOBJECT.
|
protected Constructor |
m_ServerConstructor
The constructor for the S_LibraryObject subclass
that represents instances of this CLASSOBJECT.
|
protected Constructor |
m_ServerConstructorForCreate
The constructor for the S_LibraryObject subclass
that represents instances of this CLASSOBJECT.
|
static Long |
SCHEMAOBJECT_CLASSID
Magic number: the class id of SCHEMAOBJECT.
|
m_Attributes, m_ClassId, m_FullySelected, m_Id, m_Rsn
Constructor and Description |
---|
S_ClassObjectData(Long id,
Long classId,
AttributeValue[] attributes,
boolean fullySelected,
S_LibrarySession session)
Constructs an S_ClassObjectData.
|
Modifier and Type | Method and Description |
---|---|
long |
getAttributesRsn()
Gets the resolution sequence number of
m_EffectiveClassAttributeIndexesByName,
m_EffectiveClassAttributeIds, and
m_ExtendedAttributeCount.
|
Constructor |
getBeanConstructor(LibrarySession session)
Gets the Constructor for the LibraryObject subclass
that represents instances of this CLASSOBJECT.
|
String |
getDatabaseBaseViewName(LibrarySessionInterface session)
Gets the name of the database base view of the class.
|
String |
getDatabaseObjectName(LibrarySessionInterface session)
Gets the class database object name.
|
String |
getDatabaseTableName(LibrarySessionInterface session)
Gets the name of the database table of the class.
|
String |
getDatabaseViewName(LibrarySessionInterface session)
Gets the name of the database view of the class.
|
protected int |
getEffectiveClassAttributeCount(LibrarySessionInterface session)
Gets the number of effective attributes in this class.
|
S_AttributeData |
getEffectiveClassAttributeData(int index,
LibrarySessionInterface session)
Gets the specified effective attribute of the CLASSOBJECT as an
S_AttributeData object.
|
S_AttributeData[] |
getEffectiveClassAttributeData(LibrarySessionInterface session)
Gets the effective attributes for the CLASSOBJECT as an array of
S_AttributeData objects.
|
S_AttributeData |
getEffectiveClassAttributeData(String attributeName,
LibrarySessionInterface session)
Gets the specified effective attribute of the CLASSOBJECT as an
S_AttributeData object.
|
int |
getEffectiveClassAttributeIndex(String attributeName,
LibrarySessionInterface session)
Gets the array index of the specified effective attribute of
the CLASSOBJECT.
|
S_AttributeData |
getExtendedClassAttributeData(int index,
LibrarySessionInterface session)
Gets the specified extended attribute of the CLASSOBJECT as an
S_AttributeData object.
|
S_AttributeData[] |
getExtendedClassAttributeData(LibrarySessionInterface session)
Gets the extended attributes for the CLASSOBJECT as an array of
S_AttributeData objects.
|
S_AttributeData |
getExtendedClassAttributeData(String attributeName,
LibrarySessionInterface session)
Gets the specified effective attribute of the CLASSOBJECT as an
S_AttributeData object.
|
int |
getExtendedClassAttributeIndex(String attributeName,
LibrarySessionInterface session)
Gets the array index of the specified extended attribute of
the CLASSOBJECT.
|
String |
getName(LibrarySessionInterface session)
Gets the class name.
|
S_ClassObjectData |
getNearestSuperclassdataWithTable(LibrarySessionInterface session)
Get the nearest superclass that has a table.
|
Constructor |
getSelectorConstructor(S_LibrarySession session)
Gets the Constructor for the S_LibraryObjectSelector
subclass for this CLASSOBJECT.
|
String |
getServerClassPath(LibrarySessionInterface session)
Gets the server-side classname.
|
Constructor |
getServerConstructor(S_LibrarySession session)
Gets the Constructor for the S_LibraryObject subclass
that represents instances of this CLASSOBJECT.
|
Constructor |
getServerConstructorForCreate(S_LibrarySession session)
Gets the Constructor for the S_LibraryObject subclass
that represents instances of this CLASSOBJECT.
|
S_ClassObjectData |
getSuperclassData(LibrarySessionInterface session)
Gets the S_ClassObjectData of the class's superclass.
|
boolean |
hasExtendedArrayAttributes(LibrarySessionInterface session)
Returns indication as to whether the class CLASSOBJECT introduces
any array-type extended attributes.
|
boolean |
hasExtendedMapAttributes(LibrarySessionInterface session)
Returns indication as to whether the class CLASSOBJECT introduces
any map-type extended attributes.
|
boolean |
isAbstract(LibrarySessionInterface session)
Gets whether the class is abstract.
|
protected static boolean |
isFakeableAttribute(S_LibrarySession session,
long id)
Gets whether the S_AttributeData constructor would, if passed a null
or zero-length arguments argument, fake resolve the S_AttributeData
for the specified attribute id.
|
boolean |
isFinal(LibrarySessionInterface session)
Gets whether the class is final.
|
boolean |
isPartitioned(LibrarySessionInterface session)
Gets whether the class is partitioned.
|
protected void |
unresolveAttributes()
Invalidates the attribute data for this S_ClassObjectData.
|
added, canPurge, findOrCreateSharedState, findOrCreateSharedState, findOrCreateSharedState, findOrCreateSharedState, findOrCreateSharedState, getAttribute, getAttribute, getAttributes, getClassId, getId, getRsn, isFullySelected, removed, resetSharedState, resetSharedState, setSharedState
public static final Long CLASSOBJECT_CLASSID
public static final Long SCHEMAOBJECT_CLASSID
protected transient Constructor m_ServerConstructor
protected transient Constructor m_ServerConstructorForCreate
protected transient Constructor m_BeanConstructor
protected transient Constructor m_SelectorConstructor
protected HashMap m_EffectiveClassAttributeIndexesByName
protected Long[] m_EffectiveClassAttributeIds
protected int m_ExtendedAttributeCount
protected boolean m_HasExtendedArrayAttributes
protected boolean m_HasExtendedMapAttributes
protected long m_AttributesRsn
protected long m_AttributesCheckedRsn
public S_ClassObjectData(Long id, Long classId, AttributeValue[] attributes, boolean fullySelected, S_LibrarySession session) throws IfsException
id
- the id of the CLASSOBJECTclassId
- the class id of the CLASSOBJECTattributes
- the values of the effective attributes
of the CLASSOBJECTfullySelected
- whether attributes
contains
the value of every effective attribute
the CLASSOBJECTsession
- the sessionIfsException
- (IFS-30000) if the operation failspublic Constructor getServerConstructor(S_LibrarySession session) throws IfsException
This variant is for existing LIBRARYOBJECTs.
session
- the sessionIfsException
- (IFS-21002) if the operaton failspublic Constructor getServerConstructorForCreate(S_LibrarySession session) throws IfsException
This variant is for newly-created LIBRARYOBJECTs.
session
- the sessionIfsException
- (IFS-21002) if the operaton failspublic Constructor getBeanConstructor(LibrarySession session) throws IfsException
session
- the sessionIfsException
- (IFS-21014) if the operaton failspublic Constructor getSelectorConstructor(S_LibrarySession session) throws IfsException
session
- the sessionIfsException
- (IFS-21001) if the operaton failspublic S_AttributeData[] getEffectiveClassAttributeData(LibrarySessionInterface session) throws IfsException
The effective attributes of the CLASSOBJECT are both the attributes introduced by the CLASSOBJECT itself as well as the attributes the CLASSOBJECT inherits from its superclasses.
session
- the sessionIfsException
- if the operation failspublic S_AttributeData getEffectiveClassAttributeData(int index, LibrarySessionInterface session) throws IfsException
The effective attributes of the CLASSOBJECT are both the attributes introduced by the CLASSOBJECT itself as well as the attributes the CLASSOBJECT inherits from its superclasses.
index
- the zero-based attribute indexsession
- the sessionIfsException
- if the operation failspublic S_AttributeData getEffectiveClassAttributeData(String attributeName, LibrarySessionInterface session) throws IfsException
The effective attributes of the CLASSOBJECT are both the attributes introduced by the CLASSOBJECT itself as well as the attributes the CLASSOBJECT inherits from its superclasses.
attributeName
- the attribute namesession
- the sessionIfsException
- if the operation failspublic S_AttributeData[] getExtendedClassAttributeData(LibrarySessionInterface session) throws IfsException
The extended attributes of the CLASSOBJECT are only the attributes introduced by the CLASSOBJECT itself, and do not include any attributes the CLASSOBJECT inherits from its superclasses.
session
- the sessionIfsException
- if the operation failspublic S_AttributeData getExtendedClassAttributeData(int index, LibrarySessionInterface session) throws IfsException
The extended attributes of the CLASSOBJECT are only the attributes introduced by the CLASSOBJECT itself, and do not include any attributes the CLASSOBJECT inherits from its superclasses.
index
- the zero-based attribute indexsession
- the sessionIfsException
- if the operation failspublic S_AttributeData getExtendedClassAttributeData(String attributeName, LibrarySessionInterface session) throws IfsException
The extended attributes of the CLASSOBJECT are only the attributes introduced by the CLASSOBJECT itself, and do not include any attributes the CLASSOBJECT inherits from its superclasses.
attributeName
- the attribute namesession
- the sessionIfsException
- if the operation failspublic int getEffectiveClassAttributeIndex(String attributeName, LibrarySessionInterface session) throws IfsException
The effective attributes of the CLASSOBJECT are both the attributes introduced by the CLASSOBJECT itself as well as the attributes the CLASSOBJECT inherits from its superclasses.
attributeName
- the attribute namesession
- the sessopmIfsException
- (IFS-10407) if the attribute name is
not the name of an effective attribute of the CLASSOBJECT
or IfsException if the operation otherwise failspublic int getExtendedClassAttributeIndex(String attributeName, LibrarySessionInterface session) throws IfsException
The extended attributes of the CLASSOBJECT are only the attributes introduced by the CLASSOBJECT itself, and do not include any attributes the CLASSOBJECT inherits from its superclasses.
attributeName
- the attribute namesession
- the sessionIfsException
- (IFS-10407) if the attribute name is
not the name of an extended attribute of the CLASSOBJECT
or IfsException if the operation otherwise failsprotected int getEffectiveClassAttributeCount(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- if the operation failspublic boolean hasExtendedArrayAttributes(LibrarySessionInterface session) throws IfsException
The extended attributes of the CLASSOBJECT are only the attributes introduced by the CLASSOBJECT itself, and do not include any attributes the CLASSOBJECT inherits from its superclasses.
session
- the sessionIfsException
- if the operation failspublic boolean hasExtendedMapAttributes(LibrarySessionInterface session) throws IfsException
The extended attributes of the CLASSOBJECT are only the attributes introduced by the CLASSOBJECT itself, and do not include any attributes the CLASSOBJECT inherits from its superclasses.
session
- the sessionIfsException
- if the operation failsprotected final void unresolveAttributes() throws IfsException
IfsException
- if the operation failspublic long getAttributesRsn() throws IfsException
IfsException
- if the operation failsprotected static boolean isFakeableAttribute(S_LibrarySession session, long id) throws IfsException
session
- the sessionid
- the attribute id to testIfsException
- if the operation failspublic final String getName(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic final S_ClassObjectData getSuperclassData(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic S_ClassObjectData getNearestSuperclassdataWithTable(LibrarySessionInterface session) throws IfsException
Returns null if this class has no superclass, or if the superclass is tableless.
session
- the session contextIfsException
- if the operation failspublic final String getServerClassPath(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic final String getDatabaseObjectName(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic final String getDatabaseTableName(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic final String getDatabaseViewName(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic final String getDatabaseBaseViewName(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failspublic final boolean isAbstract(LibrarySessionInterface session) throws IfsException
It is not possible to create instance of abstract classes.
session
- the S_LibrarySessionIfsException
- if the operation failspublic final boolean isFinal(LibrarySessionInterface session) throws IfsException
It is not possible to subclass final classes.
session
- the S_LibrarySessionIfsException
- if the operation failspublic final boolean isPartitioned(LibrarySessionInterface session) throws IfsException
session
- the S_LibrarySessionIfsException
- if the operation failsCopyright © 2023. All rights reserved.