|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.server.NamedObjectImpl
oracle.jbo.mom.PersistableDefObject
oracle.jbo.server.DefObject
oracle.jbo.server.AttributeDefImpl
public class AttributeDefImpl
Field Summary | |
---|---|
static byte |
ATTR_LOAD_BULK
Indicates that while retrieving data for this attribute from the query result, data for other attributes were bulk-retrieved as well. |
static byte |
ATTR_LOAD_EACH
Indicates that the data for this attribute was retrieved from the query result. |
static byte |
ATTR_LOAD_SKIP
Indicates that this attribute should be skipped; that is, its data was bulk-retrieved by another attribute from the query result. |
static java.lang.Class |
CLASS_INSTANCE
|
static byte |
EFFECTIVE_DATE_TYPE_END
An attribute that is defined as an effective end date |
static byte |
EFFECTIVE_DATE_TYPE_NONE
An attribute that is not defined as an effective start or end date |
static byte |
EFFECTIVE_DATE_TYPE_START
An attribute that is defined as an effective start date |
static byte |
HISTORY_CREATE_DATE
An attribute that is defined as a create_date history attribute |
static byte |
HISTORY_CREATE_USER
An attribute that is defined as a create_user history attribute |
static byte |
HISTORY_MODIFY_DATE
An attribute that is defined as a modify_date history attribute |
static byte |
HISTORY_MODIFY_USER
An attribute that is defined as a modifiy_user history attribute |
static byte |
HISTORY_MODIFY_VERSION
An attribute that is defined as a modifiy_version history attribute |
static byte |
HISTORY_NOT_DEFINED
An attribute that is not defined as a history attribute |
protected byte |
mAttrLoad
|
protected ArrayList |
mBackwardDep
|
protected java.lang.String |
mColumnName
The database column name for the attribute. |
protected boolean |
mDataSecurity
|
protected RowDef |
mDef
Back Pointer to Def Object where the Attribute belongs. |
protected java.lang.Object |
mDefaultValue
The default value of the attribute. |
protected boolean |
mDiscrColumn
Value determines whether the attribute is discriminator column. |
protected java.lang.String |
mDomainName
Domain name for this attribute if it's type is a generated domain |
protected byte |
mEffectiveDateType
|
protected java.lang.Object |
mElemFactory
|
protected java.lang.Class |
mElemType
Identifies the Java Type Object for this element. |
protected ArrayList |
mForwardDep
|
protected byte |
mHistoryKind
|
protected int |
mIndex
Index in the Table. |
protected java.lang.Class |
mJavaType
The Java Type Object for this attribute. |
protected byte |
mKind
Value for the Attribute's "kind"; for example, Transient, Dynamic, etc. |
protected boolean |
mNotNull
Value determines whether the attribute is null. |
protected boolean |
mObjectTableOID
|
protected boolean |
mObjectTableRef
|
protected java.lang.String |
mObjectType
Object Type of the attribute. |
protected int |
mPrecision
Precision Value for the attribute, defaulted to zero. |
protected boolean |
mPrimaryKey
Value determines whether the attribute is primary key. |
protected boolean |
mQueriable
Value determines whether the attribute is queryable. |
protected boolean |
mResolveAccessors
|
protected boolean |
mRetrievedOnInsert
Value determines whether the attribute is retrieved on Insert. |
protected boolean |
mRetrievedOnUpdate
Value determines whether the attribute is retrieved on update. |
protected int |
mScale
Scale value for attribute, set by default to 0. |
protected SQLBuilder |
mSQLBuilder
|
protected int |
mType
Integer representation of the SQL type of the attribute. |
protected java.lang.Object |
mTypeFactory
|
protected boolean |
mTypeFactoryInitialized
|
protected boolean |
mUnique
Value determines whether the attribute is part of a unique key constraint. |
protected byte |
mUpdateable
Value determines whether the attribute is updatable. |
protected java.lang.String |
tableName
What database table does this attribute come from (if any)? |
Fields inherited from class oracle.jbo.server.DefObject |
---|
DEF_MDS_CLIENT_KEY, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY |
Fields inherited from class oracle.jbo.server.NamedObjectImpl |
---|
mObjName, mParent, mProperties, mUserData, RES_ID_SUFFIX |
Fields inherited from interface oracle.jbo.AttributeDef |
---|
ATTR_ASSOCIATED_ROW, ATTR_ASSOCIATED_ROWITERATOR, ATTR_DYNAMIC, ATTR_ENTITY_DERIVED, ATTR_HIDDEN, ATTR_PERSISTENT, ATTR_ROWSET, ATTR_SQL_DERIVED, ATTR_TRANSIENT, ATTR_VARIABLE, READONLY, UPDATEABLE, UPDATEABLE_WHILE_NEW |
Constructor Summary | |
---|---|
protected |
AttributeDefImpl()
|
Method Summary | |
---|---|
void |
addBackwardDependency(java.lang.String attrName)
|
void |
addForwardDependency(java.lang.String attrName)
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
addValidator(JboValidatorInterface listener)
Add a JboValidatorInterface to the listener list. |
java.lang.Object |
convertToJava(java.lang.Object data)
Converts a value from the database type to its corresponding Java type and returns the result. |
java.lang.Object |
convertToStorage(java.lang.Object data,
DBTransactionImpl trans)
Internal: Application should not use this method. |
static java.lang.String |
convertUpdateableFlagToString(byte updateable)
|
static byte |
convertUpdateableStringToFlag(java.lang.String str)
Convert Attribute Updateable value to byte. |
boolean |
displayInShortForm(LocaleContext locale)
Returns true if the attribute is to displayed in the short(summary) form. |
java.lang.Object |
evaluateTransientExpression(Row row)
|
java.lang.String |
formatForOutput(OutputFormatter formatter)
|
ViewObject |
getAccessorVO(ViewObject originVO)
For an accessor attribute, this method creates a View Object that works for the View Link definition. |
int |
getAltKeyCount()
|
byte |
getAttributeKind()
Returns the "kind" enumerations of this attribute. |
byte |
getAttrLoad()
|
java.lang.String |
getColumnName()
Returns the column name to which this attribute is mapped. |
java.lang.String |
getColumnNameForQuery()
Returns the column name to be used in query statement. |
ArrayList |
getCompOpers()
|
java.lang.String[][] |
getCompOpers(LocaleContext locale)
Returns a Map of operators for this attribute. |
int |
getControlType(LocaleContext locale)
Returns the preferred control type for this attribute |
RowDef |
getDef()
Returns the DefObject object which describes this attribute. |
java.lang.Object |
getDefaultValue()
Returns the default value of the attribute. |
int |
getDisplayHeight(LocaleContext locale)
Returns the display width for this attribute |
java.lang.String |
getDisplayHint(LocaleContext locale)
Retrieves the display hint that dictates whether this attribute should be visible or not. |
int |
getDisplayWidth(LocaleContext locale)
Returns the display width for this attribute |
java.lang.String |
getDomainName()
Returns the DomainName object which describes this attribute. |
java.lang.Object |
getElemFactory()
Internal: Applications should not use this method. |
int |
getElemSQLType()
Returns the jdbc type of the elements of this attribute. |
java.lang.Class |
getElemType()
Returns the element type of the attribute. |
EntityDefImpl |
getEntityDef()
Return the EntityDefImpl object which contains this attribute |
java.lang.String |
getFormat(LocaleContext locale)
returns the format string stored in the ui hints |
java.lang.String |
getFormattedAttribute(AttributeList attrList,
LocaleContext locale)
Returns the formatted value for the attribute. |
Formatter |
getFormatter(LocaleContext locale)
returns the formatter object stored in the ui hints |
java.lang.String |
getFormatterClassName(LocaleContext locale)
Returns the formatter object stored in the ui hints |
java.lang.String |
getHint(LocaleContext locale,
java.lang.String sHintName)
Return defaulted hint value |
java.lang.String |
getHintValue(LocaleContext locale,
java.lang.String sHintName)
Return non-defaulted hint value |
byte |
getHistoryKind()
Gets the attribute history kind. |
int |
getIndex()
Returns the column position of this attribute in the data source. |
java.lang.Class |
getJavaType()
Returns the Java type of the attribute. |
java.lang.String |
getLabel(LocaleContext locale)
Retrieves the label to be used in any attribute prompts |
ListBindingDef |
getListBindingDef()
|
java.lang.String |
getLocaleName(LocaleContext locale,
java.lang.String sName)
function for retrieving the locale name of a hint |
java.lang.String |
getLOVFinder()
|
java.lang.String |
getLOVName()
Gets the name of the LOV on which the attribute is a primary attribute. |
java.lang.String |
getObjectType()
|
int |
getPrecision()
Gets the attribute's precision. |
java.lang.String |
getRecalcExpression()
|
ResourceBundleDef |
getResourceBundleDef()
|
int |
getScale()
Gets the attribute's scale value: the number of digits to the right or left of the decimal point, depending on whether the scale value is positive or negative. |
protected SQLBuilder |
getSQLBuilder()
Returns the SQLBuilderImpl - lazily building. |
int |
getSQLType()
Returns the SQL type of this attribute. |
static int |
getSQLTypeStringToId(java.lang.String sqlType)
Converts a SQL type name to its identifier. |
java.lang.String |
getTableName()
|
java.lang.String |
getTooltip(LocaleContext locale)
Retrives the tooltip text to be used for this attribute |
java.lang.String |
getTransientExpression()
|
java.lang.Object |
getTypeFactory()
Internal: Applications should not use this method. |
AttributeHints |
getUIHelper()
Return the AttributeHints interface implemented by this class. |
byte |
getUpdateableFlag()
Returns whether the attribute is updateable. |
JboValidatorInterface |
getValidator(int indx)
|
int |
getValidatorCount()
|
List |
getValidators()
Get the list of JboValidatorInterface objects registered with this attribute |
boolean |
hasFormatInformation(LocaleContext locale)
Return true if any format hints have been defined for this attribute. |
boolean |
hasTransientExpression()
|
protected void |
initFromXML(org.kxml2.io.KXmlParser parser,
RowDef parent,
int index)
|
protected boolean |
isCascadeUpdateParticipant()
|
boolean |
isDiscrColumn()
Tests if an attribute is a discriminator. |
boolean |
isEffectiveEndDate()
Checks if the attribute represents the effective end date. |
boolean |
isEffectiveStartDate()
Checks if the attribute represents the effective start date. |
boolean |
isInWhereOrderGroup()
|
boolean |
isMandatory()
Returns whether the attribute is not null. |
boolean |
isObjectTableOID()
Internal: Applications should not use this method. |
boolean |
isObjectTableRef()
|
boolean |
isPrimaryKey()
Returns whether this attribute is a Primary Key for this Entity type. |
boolean |
isQueriable()
Returns whether this attribute can participate in the WHERE clause of a SQL statement. |
boolean |
isRetrievedOnInsert()
Returns whether the attribute value is retrieved from the database after a row is inserted in the post cycle. |
boolean |
isRetrievedOnUpdate()
Returns whether the attribute is retrieved from the database after a row is updated. |
boolean |
isSelected()
Tests if an attribute is transient. |
boolean |
isSessionScope()
|
protected void |
loadDependencies(org.kxml2.io.KXmlParser xmlElement)
|
java.lang.Object |
loadFromResultSet(ResultSet rs,
int index,
DBTransactionImpl trans)
Internal: Applications should not use this method. |
java.lang.Object |
loadFromStatement(PreparedStatement cs,
int index,
Transaction trans)
Internal: Applications should not use this method. |
protected void |
loadPermission(org.kxml2.io.KXmlParser parser)
|
java.lang.Object |
parseFormattedAttribute(java.lang.String sValue,
LocaleContext locale)
Strips off the formatting from a string and constructs an instance of the attribute's domain using the 'clean' string as a parameter of the contructor. |
protected void |
readChangeIndicator(org.kxml2.io.KXmlParser parser)
Determine if the XML specifies this Attrubite is a "Change Indicator" |
protected void |
readColumnType(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's column type |
protected void |
readDefaultValue(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as the default value for this column. |
protected void |
readIsPersistent(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's kind |
protected void |
readIsUpdateable(org.kxml2.io.KXmlParser parser)
Determine if the XML specifies the Attribute is updateable |
protected void |
readJavaType(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's Java type |
protected void |
readPrecision(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's precision |
protected void |
readScale(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's scale |
protected void |
readSqlType(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's SQL type |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
removeValidator(JboValidatorInterface listener)
Removes a JboValidatorInterface from the listener list. |
protected java.lang.Object |
resolvePropertyRaw(java.lang.String property,
Locale locale)
|
protected void |
setAttributeKind(byte value)
|
void |
setAttrLoad(byte attrLoad)
|
protected void |
setColumnName(java.lang.String colName)
|
void |
setDiscrColumn(boolean b)
|
protected void |
setDomainName(java.lang.String name)
Set the DomainName object which describes this attribute. |
void |
setElemType(java.lang.Class cls)
|
void |
setLOVFinder(java.lang.String lovFinder)
|
void |
setLOVName(java.lang.String lovName)
|
protected void |
setMandatory(boolean b)
|
void |
setPrecisionScale(int prec,
int scale)
Sets the attribute's precision and scale. |
protected void |
setPrimaryKey(boolean b)
|
protected void |
setQueriable(boolean value)
|
void |
setRecalcExpression(java.lang.String expr)
|
protected void |
setRetrievedOnInsert(boolean value)
|
protected void |
setRetrievedOnUpdate(boolean value)
|
void |
setSelected(boolean b)
|
protected void |
setTableName(java.lang.String name)
|
void |
setTransientExpression(java.lang.String expr)
|
boolean |
shouldEvaluateTransientExpression(Row row)
|
Methods inherited from class oracle.jbo.mom.PersistableDefObject |
---|
getDefManager, loadXMLContents |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.AttributeDef |
---|
getName |
Methods inherited from interface oracle.jbo.Properties |
---|
getProperties, getProperty, getProperty, refreshProperty |
Methods inherited from interface oracle.jbo.common.ResourceBundleOwner |
---|
getResourcePrefix |
Methods inherited from interface oracle.jbo.rules.ValidationManager |
---|
getFullName, getName |
Methods inherited from interface oracle.jbo.VariableManagerOwner |
---|
getName |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
public static final byte EFFECTIVE_DATE_TYPE_NONE
public static final byte EFFECTIVE_DATE_TYPE_START
public static final byte EFFECTIVE_DATE_TYPE_END
public static final byte HISTORY_NOT_DEFINED
public static final byte HISTORY_CREATE_DATE
public static final byte HISTORY_MODIFY_DATE
public static final byte HISTORY_CREATE_USER
public static final byte HISTORY_MODIFY_USER
public static final byte HISTORY_MODIFY_VERSION
public static final byte ATTR_LOAD_EACH
public static final byte ATTR_LOAD_BULK
public static final byte ATTR_LOAD_SKIP
protected java.lang.String mColumnName
protected boolean mUnique
protected boolean mPrimaryKey
protected boolean mDiscrColumn
protected boolean mRetrievedOnInsert
protected boolean mRetrievedOnUpdate
protected RowDef mDef
protected java.lang.String mObjectType
protected int mPrecision
protected boolean mQueriable
protected byte mKind
protected byte mUpdateable
protected int mType
protected int mIndex
protected java.lang.Object mDefaultValue
protected java.lang.Class mJavaType
protected java.lang.Class mElemType
protected int mScale
protected java.lang.String mDomainName
protected java.lang.String tableName
protected byte mAttrLoad
protected boolean mObjectTableRef
protected boolean mDataSecurity
protected ArrayList mBackwardDep
protected ArrayList mForwardDep
protected boolean mObjectTableOID
protected byte mEffectiveDateType
protected boolean mResolveAccessors
protected byte mHistoryKind
protected SQLBuilder mSQLBuilder
protected boolean mTypeFactoryInitialized
protected java.lang.Object mElemFactory
protected java.lang.Object mTypeFactory
protected boolean mNotNull
Constructor Detail |
---|
protected AttributeDefImpl()
Method Detail |
---|
public byte getAttributeKind()
getAttributeKind
in interface AttributeDef
protected void setAttributeKind(byte value)
public java.lang.String getColumnName()
getColumnName
in interface AttributeDef
protected void setColumnName(java.lang.String colName)
public java.lang.String getColumnNameForQuery()
For Entity Object attributes, this REF([entity-alias])
if the attribute is an object table
reference. Otherwise, it is [entity-alias].[column-name]
, where [column-name]
is the
name of the column to which the attribute is mapped (that is, the value returned by
getColumnName
.
For View Object attributes, the value it returns depends on whether the query was created in expert mode:
getColumnNameForQuery
in interface AttributeDef
public RowDef getDef()
public EntityDefImpl getEntityDef()
public java.lang.Object getDefaultValue()
The default value for an attribute is expressed in terms of the Java type system, rather than the storage type system.
public int getElemSQLType()
For VARRAYs, this method returns the jdbc type of the elements that are in the VARRAY.
Element type is relevant only if the attribute is an array attribute.
getElemSQLType
in interface AttributeDef
public java.lang.Class getElemType()
For VARRAYs, this method returns the class name of the elements that are in the VARRAY.
Element type is relevant only if the attribute is an array attribute.
getElemType
in interface AttributeDef
public int getIndex()
getIndex
in interface AttributeDef
public java.lang.String getObjectType()
public java.lang.Class getJavaType()
For example, if the attribute is of type String, this method returns java.lang.String; if it is of type Number, it returns oracle.jbo.domain.Number.
Subclasses should override this method because Entities without accessors should also be able to get their types from attribute descriptors and beans.
getJavaType
in interface AttributeDef
public int getPrecision()
For strings, precision is maximum allowed length. For numeric values, precision is the number of significant digits.
getPrecision
in interface AttributeDef
public void setPrecisionScale(int prec, int scale)
For strings, precision is maximum allowed length. For numeric values, precision is the number of significant digits.
Scale is the number of digits to the right or left of the decimal point, depending on whether the scale value is positive or negative. Scale is meaning only for numeric attributes.
prec
- the precision value, or 0 if unspecified.scale
- the scale value. The default is -127.public int getSQLType()
getSQLType
in interface AttributeDef
java.sql.Types
public int getScale()
Scale value is meaningful only for numeric attributes.
getScale
in interface AttributeDef
public AttributeHints getUIHelper()
getUIHelper
in interface AttributeDef
AttributeHints
public byte getUpdateableFlag()
getUpdateableFlag
in interface AttributeDef
public boolean isMandatory()
isMandatory
in interface AttributeDef
protected void setMandatory(boolean b)
public boolean isRetrievedOnInsert()
Some derived attributes need to be re-fetched after a save operation has been performed. These typically include timestamps, computed fields, virtual columns and Oracle ROWIDs and OIDs.
protected void setRetrievedOnInsert(boolean value)
public boolean isRetrievedOnUpdate()
Some derived attributes need to be re-fetched after a save operation has been performed. These typically include timestamps, computed fields, virtual columns and Oracle ROWIDs and OIDs.
protected void setRetrievedOnUpdate(boolean value)
public boolean isPrimaryKey()
The following code snippet uses this method to find the name and value of the primary key attribute in an array of AttributeDefs (attrs[]).
String curAttrName = null; for (int j = 0; j < attrs.length; j++) { if (attrs[j].isPrimaryKey()) { //get the name of the primary key curAttrName = attrs[j].getName(); //assumes only one key String currValue = row.getAttribute(curAttrName).toString(); } }
isPrimaryKey
in interface AttributeDef
protected void setPrimaryKey(boolean b)
public java.lang.String getTableName()
protected void setTableName(java.lang.String name)
protected void setDomainName(java.lang.String name)
public java.lang.String getDomainName()
public boolean isQueriable()
Queriable attributes are those attributes that can have a filter condition for the WHERE clause. If this method returns false, the attribute will not be used in constructing the WHERE clause of the SQL statement.
isQueriable
in interface AttributeDef
protected void setQueriable(boolean value)
public boolean isSelected()
AttributeDef
isSelected
in interface AttributeDef
true
if this attribute is transient.public final boolean displayInShortForm(LocaleContext locale)
AttributeHints
displayInShortForm
in interface AttributeHints
public final int getControlType(LocaleContext locale)
getControlType
in interface AttributeHints
public final int getDisplayHeight(LocaleContext locale)
getDisplayHeight
in interface AttributeHints
public final java.lang.String getDisplayHint(LocaleContext locale)
getDisplayHint
in interface AttributeHints
public final int getDisplayWidth(LocaleContext locale)
getDisplayWidth
in interface AttributeHints
public final java.lang.String getFormattedAttribute(AttributeList attrList, LocaleContext locale)
AttributeHints
getFormattedAttribute
in interface AttributeHints
public java.lang.String getHint(LocaleContext locale, java.lang.String sHintName)
getHint
in interface AttributeHints
public java.lang.String getHintValue(LocaleContext locale, java.lang.String sHintName)
getHintValue
in interface AttributeHints
public final java.lang.String getLabel(LocaleContext locale)
getLabel
in interface AttributeHints
public final java.lang.String getTooltip(LocaleContext locale)
getTooltip
in interface AttributeHints
public ArrayList getCompOpers()
protected void initFromXML(org.kxml2.io.KXmlParser parser, RowDef parent, int index)
protected void readIsUpdateable(org.kxml2.io.KXmlParser parser)
parser
- Parser positioned at the start of an Attribute elementpublic static byte convertUpdateableStringToFlag(java.lang.String str)
str
- Attribute Updateable or not
public static java.lang.String convertUpdateableFlagToString(byte updateable)
protected void readJavaType(org.kxml2.io.KXmlParser parser)
parser
- Parser positioned at the start of an Attribute elementprotected void readPrecision(org.kxml2.io.KXmlParser parser)
parser
- Parser positioned at the start of an Attribute elementprotected void readScale(org.kxml2.io.KXmlParser parser)
parser
- Parser positioned at the start of an Attribute elementprotected void readColumnType(org.kxml2.io.KXmlParser parser)
parser
- Parser positioned at the start of an Attribute elementprotected void readIsPersistent(org.kxml2.io.KXmlParser parser)
parser
- protected void readSqlType(org.kxml2.io.KXmlParser parser)
parser
- protected void readChangeIndicator(org.kxml2.io.KXmlParser parser)
parser
- protected void readDefaultValue(org.kxml2.io.KXmlParser parser)
parser
- public java.lang.String formatForOutput(OutputFormatter formatter)
formatForOutput
in interface Formattable
formatForOutput
in class NamedObjectImpl
public ResourceBundleDef getResourceBundleDef()
getResourceBundleDef
in interface ResourceBundleOwner
getResourceBundleDef
in interface ValidationManager
getResourceBundleDef
in interface VariableManagerOwner
getResourceBundleDef
in class DefObject
public byte getAttrLoad()
public void setAttrLoad(byte attrLoad)
public boolean isObjectTableRef()
public boolean isInWhereOrderGroup()
public ViewObject getAccessorVO(ViewObject originVO)
AttributeDef
getAccessorVO
in interface AttributeDef
originVO
- the View Object that owns the accessor
ViewObject
instance.public boolean isDiscrColumn()
AttributeDef
isDiscrColumn
in interface AttributeDef
public void setSelected(boolean b)
public java.lang.String getTransientExpression()
public java.lang.String getRecalcExpression()
public void addBackwardDependency(java.lang.String attrName)
public void addForwardDependency(java.lang.String attrName)
public void setElemType(java.lang.Class cls)
public final java.lang.String getFormat(LocaleContext locale)
AttributeHints
getFormat
in interface AttributeHints
public final Formatter getFormatter(LocaleContext locale)
AttributeHints
getFormatter
in interface AttributeHints
public final boolean hasFormatInformation(LocaleContext locale)
AttributeHints
hasFormatInformation
in interface AttributeHints
public final java.lang.String getFormatterClassName(LocaleContext locale)
getFormatterClassName
in interface AttributeHints
public final java.lang.Object parseFormattedAttribute(java.lang.String sValue, LocaleContext locale)
AttributeHints
parseFormattedAttribute
in interface AttributeHints
public java.lang.Object convertToJava(java.lang.Object data)
This method uses AttributeDefImpl() metadata to convert a database value to the corresponding Java value.
data
- a storage value to be converted.
DataCreationException
- if the conversion cannot be performed.public void setTransientExpression(java.lang.String expr)
public void setRecalcExpression(java.lang.String expr)
public java.lang.String getLOVFinder()
public void setLOVFinder(java.lang.String lovFinder)
public java.lang.String getLOVName()
getLOVName
in interface AttributeDef
public void setLOVName(java.lang.String lovName)
public boolean isObjectTableOID()
protected void loadPermission(org.kxml2.io.KXmlParser parser)
protected void loadDependencies(org.kxml2.io.KXmlParser xmlElement)
public void setDiscrColumn(boolean b)
public static int getSQLTypeStringToId(java.lang.String sqlType)
sqlType
- the name of a SQL datatype.
JboTypeMap
public boolean isEffectiveStartDate()
true
or false
public boolean isEffectiveEndDate()
true
or false
public java.lang.Object loadFromResultSet(ResultSet rs, int index, DBTransactionImpl trans)
Returns the value from the specified ResultSet at the specified index. This method can be used when customizing the way that attributes are populated in the row. For example, assume you have a database Name column that contains a first name and a last name. You can use this method to fetch an individual entry, then parse the entry into separate Firstname and a Lastname attribute.
rs
- the result set containing the value.index
- the index position for the value.trans
- the transaction containing the ResultSet.
DataCreationException
- if the Domain object cannot be created.public int getAltKeyCount()
public java.lang.Object evaluateTransientExpression(Row row)
protected final boolean isCascadeUpdateParticipant()
public java.lang.Object getTypeFactory()
Returns the type factory for this attribute.
public java.lang.Object getElemFactory()
public boolean shouldEvaluateTransientExpression(Row row)
public java.lang.String getLocaleName(LocaleContext locale, java.lang.String sName)
AttributeHints
getLocaleName
in interface AttributeHints
public java.lang.String[][] getCompOpers(LocaleContext locale)
AttributeHints
getCompOpers
in interface AttributeHints
public ListBindingDef getListBindingDef()
getListBindingDef
in interface AttributeDef
public java.lang.Object convertToStorage(java.lang.Object data, DBTransactionImpl trans)
Converts a value from the attribute's Java type to a database type.
This method uses AttributeDefImpl
metadata to convert a Java value to
the corresponding database value. This method is typically called before the framework sets an attribute inside a
JDBC statement parameter.
data
- a Java value to be converted.trans
- the database transaction.
DataCreationException
- if the conversion cannot be performed.public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
to the listener list.
listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
from the listener list.
listener
- The PropertyChangeListener to be addedpublic void addValidator(JboValidatorInterface listener)
JboValidatorInterface
to the listener list.
addValidator
in interface ValidationManager
listener
- The Validator to be addedpublic void removeValidator(JboValidatorInterface listener)
JboValidatorInterface
from the listener list.
listener
- The Validator to be removedpublic int getValidatorCount()
public JboValidatorInterface getValidator(int indx)
public List getValidators()
getValidators
in interface ValidationManager
public boolean isSessionScope()
public boolean hasTransientExpression()
public byte getHistoryKind()
HISTORY
constants defined for this class.public java.lang.Object loadFromStatement(PreparedStatement cs, int index, Transaction trans) throws DataCreationException
Returns the value from the specified JDBC prepared statement at the specified index. This method can be used when customizing the way that attributes are populated in the row. For example, assume you have a database Name column that contains a first name and a last name. You can use this method to fetch an individual entry, then parse the entry into separate Firstname and a Lastname attribute.
cs
- the prepared statement containing the value.index
- the index position for the value.trans
- the transaction containing the ResultSet.
DataCreationException
- if the Domain object
cannot be created.protected SQLBuilder getSQLBuilder()
protected java.lang.Object resolvePropertyRaw(java.lang.String property, Locale locale)
resolvePropertyRaw
in class DefObject
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |