|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.LibraryObject | +--oracle.ifs.beans.TieLibraryObject | +--oracle.ifs.beans.SchemaObject | +--oracle.ifs.beans.TieSchemaObject | +--oracle.ifs.beans.Attribute
An Attribute describes an atomic unit of data in a ClassObject instance. Each Attribute is defined by exactly one ClassObject. A ClassObject may define one or more Attributes. Subclasses will inheirit all attributes from its super class. This object describes an Attribute of a ClassObject. This object is not used for manipulating the attributes of instances of Class Objects, but rather the Class Object itself.
Field Summary | |
static int |
ATTRIBUTEDATATYPE_BOOLEAN
The data type of boolean attributes. |
static int |
ATTRIBUTEDATATYPE_BOOLEAN_ARRAY
The data type of array-type boolean attributes. |
static int |
ATTRIBUTEDATATYPE_DATE
The data type of date attributes. |
static int |
ATTRIBUTEDATATYPE_DATE_ARRAY
The data type of array-type date attributes. |
static int |
ATTRIBUTEDATATYPE_DIRECTORYOBJECT
The data type of DirectoryObject attributes. |
static int |
ATTRIBUTEDATATYPE_DIRECTORYOBJECT_ARRAY
The data type of array-type DirectoryObject attributes. |
static int |
ATTRIBUTEDATATYPE_DOUBLE
The data type of double attributes. |
static int |
ATTRIBUTEDATATYPE_DOUBLE_ARRAY
The data type of array-type double attributes. |
static int |
ATTRIBUTEDATATYPE_INTEGER
The data type of integer attributes. |
static int |
ATTRIBUTEDATATYPE_INTEGER_ARRAY
The data type of array-type integer attributes. |
static int |
ATTRIBUTEDATATYPE_LONG
The data type of long attributes. |
static int |
ATTRIBUTEDATATYPE_LONG_ARRAY
The data type of array-type long attributes. |
static int |
ATTRIBUTEDATATYPE_PUBLICOBJECT
The data type of PublicObject attributes. |
static int |
ATTRIBUTEDATATYPE_PUBLICOBJECT_ARRAY
The data type of array-type PublicObject attributes. |
static int |
ATTRIBUTEDATATYPE_SCHEMAOBJECT
The data type of SchemaObject attributes. |
static int |
ATTRIBUTEDATATYPE_SCHEMAOBJECT_ARRAY
The data type of array-type SchemaObject attributes. |
static int |
ATTRIBUTEDATATYPE_STRING
The data type of string attributes. |
static int |
ATTRIBUTEDATATYPE_STRING_ARRAY
The data type of array-type string attributes. |
static int |
ATTRIBUTEDATATYPE_SYSTEMOBJECT
The data type of SystemObject attributes. |
static int |
ATTRIBUTEDATATYPE_SYSTEMOBJECT_ARRAY
The data type of array-type SystemObject attributes. |
static int |
ATTRIBUTEDATATYPE_UNKNOWN
An unknown data type. |
static java.lang.String |
CLASS_ATTRIBUTE
The Class to which this Attribute belongs. |
static java.lang.String |
CLASS_NAME
The name of the Attribute. |
static java.lang.String |
CLASSDOMAIN_ATTRIBUTE
The ClassDomain applied to this object-type Attribute to restrict the objects to which it refers by their ClassObject. |
static java.lang.String |
DATABASEOBJECTNAME_ATTRIBUTE
The name of the column for this Attribute in the database table for the ClassObject. |
static java.lang.String |
DATALENGTH_ATTRIBUTE
The maximum size of this Attribute. |
static java.lang.String |
DATASCALE_ATTRIBUTE
The Datascale attribute is reserved for future use. |
static java.lang.String |
DATATYPE_ATTRIBUTE
The datatype of this Attribute- either scalar or array of integer, long, double, string, boolean, DirectoryObject, PublicObject, SchemaObject, SystemObject. |
static java.lang.String |
DESCRIPTION_ATTRIBUTE
A textual description of the Attribute. |
static java.lang.String |
INDEXED_ATTRIBUTE
An indicator of whether the database table that stores data for instances of the ClassObject has an index on this Attribute. |
static java.lang.String |
REFERENTIALINTEGRITYRULE_ATTRIBUTE
The referential integrity behavior (clear, restrict) of this Attribute. |
static java.lang.String |
REQUIRED_ATTRIBUTE
An indicator of whether each instance of the ClassObject must have a value for this Attribute. |
static int |
RIRULE_CLEAR
Represents the "CLEAR" referential integrity rule. |
static int |
RIRULE_RESTRICT
Represents the "RESTRICT" referential integrity rule. |
static java.lang.String |
SETTABLE_ATTRIBUTE
An indicator of whether this Attribute can be set using the repository SDK when creating new instances of the ClassObject. |
static java.lang.String |
UNIQUE_ATTRIBUTE
An indicator of whether each instance of the ClassObject must have a unique value for this Attribute (if not null). |
static java.lang.String |
UPDATEABLE_ATTRIBUTE
An indicator of whether this Attribute can be updated using the repository SDK for existing instances of the ClassObject. |
static java.lang.String |
VALUEDEFAULT_ATTRIBUTE
The default value of this Attribute in new instances of the ClassObject. |
static java.lang.String |
VALUEDOMAIN_ATTRIBUTE
The ValueDomain applied to this Attribute to restrict its values to a list of pre-specified allowed values for instances of the ClassObject. |
static java.lang.String |
VALUEDOMAINVALIDATED_ATTRIBUTE
An indicator of whether the ValueDomain is enforced or merely a guideline. |
Fields inherited from class oracle.ifs.beans.SchemaObject |
ACTIVE_ATTRIBUTE, NAME_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE |
Method Summary | |
static int |
attributeDataTypeDefaultDataLength(int attributeDataType)
Gets the default data length of the specified Attribute data type. |
static int |
attributeDataTypeDefaultDataScale(int attributeDataType)
Gets the default data scale of the specified Attribute data type. |
static boolean |
attributeDataTypeIsArrayType(int attributeDataType)
Gets whether the specified Attribute data type is an array type. |
static boolean |
attributeDataTypeIsObjectType(int attributeDataType)
Gets whether the specified Attribute data type is an object type. |
static int |
attributeDataTypeJdbcType(int attributeDataType)
Gets the JDBC type for the specified Attribute data type. |
static java.lang.String |
attributeDataTypeName(int dataType,
Localizer localizer)
Deprecated. use toDataTypeLabel() |
static java.lang.String |
attributeDataTypeRdbmsType(int attributeDataType)
Gets the RDBMS type for the specified Attribute data type. |
static java.lang.String |
attributeDataTypeRdbmsType(int attributeDataType,
int dataLength)
Gets the RDBMS type for the specified Attribute data type. |
static java.lang.String |
attributeDataTypeRdbmsType(int attributeDataType,
int dataLength,
int dataScale)
Gets the RDBMS type for the specified Attribute data type. |
static java.lang.String |
attributeDataTypeResourceBundleKey(int attributeDataType)
Gets the resource bundle key for the specified Attribute data type. |
void |
free()
Permanently removes this Attribute. |
ClassDomain |
getClassDomain()
Gets the ClassDomain of this Attribute. |
java.lang.String |
getDatabaseObjectName()
get the database object name corresponding to this attribute. |
int |
getDataLength()
Get the length of the attribute. |
int |
getDataScale()
Get the Data Scale of this Attribute. |
int |
getDataType()
Get the data type of the attribute. |
java.lang.String |
getDataTypeLabel()
Gets the localized String label for the data type set for this instance. |
java.lang.String |
getDefiningClass()
Returns the CLASS of which this is an attribute. |
java.lang.String |
getDescription()
Returns the description of an Attribute. |
java.lang.String |
getLabel()
returns the Label for this Attribute, based on the Attribute's name and class. |
int |
getReferentialIntegrityRule()
Gets the Referential Integrity Rule associated with this Attribute. |
java.lang.String |
getReferentialIntegrityRuleLabel()
Gets the localized String label for the ReferentialIntegrityRule set for this instance. |
ValueDefault |
getValueDefault()
Gets the ValueDefault of this Attribute. |
ValueDomain |
getValueDomain()
Gets the ValueDomain of this Attribute. |
boolean |
isIndexed()
Determine if the current attribute is indexed. |
boolean |
isRequired()
Determine if the current attribute is required. |
boolean |
isSettable()
Determine if the current attribute is Settable. |
boolean |
isUnique()
Determine if the current attribute is unique. |
boolean |
isUpdateable()
Determine if the current attribute is Updateable. |
boolean |
isValueDomainValidated()
Determines if the attribute's value domain has been validated. |
void |
setClassDomain(ClassDomain cd)
Sets the ClassDomain of this Attribute. |
void |
setDescription(java.lang.String description)
Sets the description of this Attribute. |
void |
setReferentialIntegrityRule(int rule)
Sets the referential Integrity rule associated with this Attribute. |
void |
setValueDefault(ValueDefault vde)
Sets the ValueDefault of this Attribute. |
void |
setValueDomain(ValueDomain vd)
Sets the ValueDomain of this Attribute. |
void |
setValueDomainValidated(boolean value)
Marks the attribute as ValueDomainValidated. |
static java.lang.String |
toDataTypeLabel(int dataType)
Converts the specified data type constant to a localized label. |
static java.lang.String |
toDataTypeLabel(int dataType,
LibrarySession session)
Converts the specified data type constant to a localized label, using the Localizer from the specified LibrarySession. |
static java.lang.String |
toDataTypeLabel(int dataType,
Localizer localizer)
Converts the specified data type constant to a localized label, using the specified Localizer. |
static java.lang.String |
toReferentialIntegrityRuleLabel(int riRule)
Converts the specified ReferentialIntegrityRule constant to a localized label. |
static java.lang.String |
toReferentialIntegrityRuleLabel(int riRule,
LibrarySession session)
Converts the specified ReferentialIntegrityRule constant to a localized label, using the Localizer from the specified LibrarySession. |
static java.lang.String |
toReferentialIntegrityRuleLabel(int riRule,
Localizer localizer)
Converts the specified ReferentialIntegrityRule constant to a localized label, using the specified Localizer. |
Methods inherited from class oracle.ifs.beans.SchemaObject |
getPolicyBundle, getPropertyBundle, hasNameAttribute, isActive, putPolicy, putProperty, putProperty, removeAllPolicies, removeAllProperties, removePolicy, removePolicy, removeProperty, setActive, setPolicyBundle, setPropertyBundle |
Methods inherited from class oracle.ifs.beans.LibraryObject |
equals, free, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getClassId, getClassObject, getDefinition, getId, getName, getSession, handleEvent, invokeServerMethod, isInstanceOf, isTraced, lookupInstanceLabel, postEvent, postEvent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setName, toString, trace, update |
Methods inherited from interface oracle.ifs.common.LibraryObjectInterface |
getId |
Methods inherited from interface oracle.ifs.common.Traceable |
getTraceLogger, isTraced, trace |
Field Detail |
public static final java.lang.String CLASS_NAME
public static final java.lang.String CLASS_ATTRIBUTE
public static final java.lang.String DESCRIPTION_ATTRIBUTE
public static final java.lang.String DATATYPE_ATTRIBUTE
public static final java.lang.String DATALENGTH_ATTRIBUTE
public static final java.lang.String DATASCALE_ATTRIBUTE
public static final java.lang.String UNIQUE_ATTRIBUTE
public static final java.lang.String REQUIRED_ATTRIBUTE
public static final java.lang.String INDEXED_ATTRIBUTE
public static final java.lang.String SETTABLE_ATTRIBUTE
public static final java.lang.String UPDATEABLE_ATTRIBUTE
public static final java.lang.String DATABASEOBJECTNAME_ATTRIBUTE
public static final java.lang.String CLASSDOMAIN_ATTRIBUTE
public static final java.lang.String VALUEDOMAIN_ATTRIBUTE
public static final java.lang.String VALUEDEFAULT_ATTRIBUTE
public static final java.lang.String VALUEDOMAINVALIDATED_ATTRIBUTE
public static final java.lang.String REFERENTIALINTEGRITYRULE_ATTRIBUTE
public static final int ATTRIBUTEDATATYPE_UNKNOWN
public static final int ATTRIBUTEDATATYPE_DATE
public static final int ATTRIBUTEDATATYPE_STRING
public static final int ATTRIBUTEDATATYPE_DOUBLE
public static final int ATTRIBUTEDATATYPE_INTEGER
public static final int ATTRIBUTEDATATYPE_BOOLEAN
public static final int ATTRIBUTEDATATYPE_DIRECTORYOBJECT
public static final int ATTRIBUTEDATATYPE_LONG
public static final int ATTRIBUTEDATATYPE_SCHEMAOBJECT
public static final int ATTRIBUTEDATATYPE_SYSTEMOBJECT
public static final int ATTRIBUTEDATATYPE_PUBLICOBJECT
public static final int ATTRIBUTEDATATYPE_DATE_ARRAY
public static final int ATTRIBUTEDATATYPE_STRING_ARRAY
public static final int ATTRIBUTEDATATYPE_DOUBLE_ARRAY
public static final int ATTRIBUTEDATATYPE_INTEGER_ARRAY
public static final int ATTRIBUTEDATATYPE_BOOLEAN_ARRAY
public static final int ATTRIBUTEDATATYPE_DIRECTORYOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_LONG_ARRAY
public static final int ATTRIBUTEDATATYPE_SCHEMAOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_SYSTEMOBJECT_ARRAY
public static final int ATTRIBUTEDATATYPE_PUBLICOBJECT_ARRAY
public static final int RIRULE_CLEAR
If LibraryObject.free
is invoked on an object referenced
by a CLEAR-type Attribute, the CLEAR-type Attribute's value is set to
null and the free
is performed.
public static final int RIRULE_RESTRICT
If LibraryObject.free
is invoked on an object referenced
by a RESTRICT-type Attribute, the free
is not performed
and a IfsException is thrown.
Method Detail |
public java.lang.String getLabel() throws IfsException
getLabel
in class LibraryObject
IfsException
- if operation fails.public void setClassDomain(ClassDomain cd) throws IfsException
cd
- the ClassDomainIfsException
- if the operation failspublic final ClassDomain getClassDomain() throws IfsException
IfsException
- if the operation failspublic void setValueDomain(ValueDomain vd) throws IfsException
cd
- the ValueDomainIfsException
- if the operation failspublic final ValueDomain getValueDomain() throws IfsException
IfsException
- if the operation failspublic void setValueDefault(ValueDefault vde) throws IfsException
cd
- the ValueDefaultIfsException
- if the operation failspublic final ValueDefault getValueDefault() throws IfsException
IfsException
- if the operation failspublic void free() throws IfsException
iFS does not allow Attributes to be removed from a ClassObject, so this method always throws IfsException.
free
in class LibraryObject
IfsException
- upon every invocationpublic java.lang.String getDefiningClass() throws IfsException
IfsException
- if the operation failspublic java.lang.String getDescription() throws IfsException
IfsException
- if the operation failspublic void setDescription(java.lang.String description) throws IfsException
description
- the descriptionIfsException
- if the operation failspublic int getDataType() throws IfsException
IfsException
- if the operation fails.public int getDataLength() throws IfsException
IfsException
- if the operation fails.public int getDataScale() throws IfsException
IfsException
- if the operation failspublic boolean isUnique() throws IfsException
IfsException
- if the operation fails.public boolean isRequired() throws IfsException
IfsException
- if the operation fails.public boolean isIndexed() throws IfsException
IfsException
- if the operation fails.public boolean isSettable() throws IfsException
IfsException
- if the operation fails.public boolean isUpdateable() throws IfsException
IfsException
- if the operation fails.public java.lang.String getDatabaseObjectName() throws IfsException
IfsException
- if the operation fails.public boolean isValueDomainValidated() throws IfsException
IfsException
- if the operation fails.public void setValueDomainValidated(boolean value) throws IfsException
Boolean
- true of False.IfsException
- if the operation fails.public int getReferentialIntegrityRule() throws IfsException
public java.lang.String getReferentialIntegrityRuleLabel() throws IfsException
IfsException
- if operation fails.public static java.lang.String toReferentialIntegrityRuleLabel(int riRule) throws IfsException
riRule
- the ReferentialIntegrityRule constant.IfsException
- if operation fails.public static java.lang.String toReferentialIntegrityRuleLabel(int riRule, LibrarySession session) throws IfsException
riRule
- the ReferentialIntegrityRule constantsession
- the LibrarySession, whose current
Localizer will be used for the conversionIfsException
- if operation fails.public static java.lang.String toReferentialIntegrityRuleLabel(int riRule, Localizer localizer) throws IfsException
riRule
- the ReferentialIntegrityRule constant.localizer
- the Localizer that performs the conversionIfsException
- if operation fails.public void setReferentialIntegrityRule(int rule) throws IfsException
an
- integer representing a valid RI rule from Attribute.IfsException
- if the operation fails.public static final java.lang.String attributeDataTypeResourceBundleKey(int attributeDataType) throws IfsException
Call LibrarySession.getResourceString
with the returned
value to get a localized name for the specified Attribute data type.
attributeDataType
- the Attribute data typeIfsException
- if operation failspublic static final java.lang.String attributeDataTypeName(int dataType, Localizer localizer) throws IfsException
dataType
- the Attribute data typelocalizer
- the localizer to useIfsException
- (IFS-19001) if localizer
is nullIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic java.lang.String getDataTypeLabel() throws IfsException
IfsException
- if operation fails.public static java.lang.String toDataTypeLabel(int dataType) throws IfsException
dataType
- the data type constant.IfsException
- if operation fails.public static java.lang.String toDataTypeLabel(int dataType, LibrarySession session) throws IfsException
dataType
- the data type constantsession
- the LibrarySession, whose current
Localizer will be used for the conversionIfsException
- if operation fails.public static java.lang.String toDataTypeLabel(int dataType, Localizer localizer) throws IfsException
dataType
- the data type constant.localizer
- the Localizer that performs the conversionIfsException
- if operation fails.public static final boolean attributeDataTypeIsArrayType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static final boolean attributeDataTypeIsObjectType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static int attributeDataTypeJdbcType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static java.lang.String attributeDataTypeRdbmsType(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static java.lang.String attributeDataTypeRdbmsType(int attributeDataType, int dataLength) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the total number of digits in a numeric data
type or the number of bytes (not
characters) in a string. If data length is not
applicable for this Attribute data type, the
value is ignored.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static java.lang.String attributeDataTypeRdbmsType(int attributeDataType, int dataLength, int dataScale) throws IfsException
attributeDataType
- the Attribute data typedataLength
- the total number of digits in a numeric data
type or the number of bytes (not
characters) in a string. If data length is not
applicable for this Attribute data type, the
value is ignored.dataScale
- the number of digits to the right of the decimal
point in a numeric data type. If data scale is
not applicable for this Attribute data type, the
value is ignored.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static int attributeDataTypeDefaultDataLength(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data type.IfsException
- (IFS-10400) if
attributeDataType
is invalidpublic static int attributeDataTypeDefaultDataScale(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data type.IfsException
- (IFS-10400) if
attributeDataType
is invalid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |