|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.common.NamedObjectImpl oracle.jbo.mom.DefinitionObject oracle.jbo.server.DefObject oracle.jbo.server.AttributeDefImpl
AttributeDefImpl is an implementation class for the
AttributeDef
interface in the middle tier server.
The main function of this class is to describe an attribute in
an Entity Object or View Object.
For each Entity attribute (as well as for each View Object attribute), there is a get method to get its value and the set method to set its value. Entity Objects can have the following kinds of attributes:
If you use the Entity Object wizard in the Business Components for Java Design Time tool to create an Entity Object based on an existing table, a persistent Entity attribute is created for each table column. After, if you change the table, you need to manually change the attribute.
Note that for a View Object attribute, there is a separate class,
ViewAttributeDefImpl
, that
extends AttributeDefImpl.
The AttributeDefImpl class has static methods to create
AttributeDefImpl instances from the Entity XML file.
These instances can also be created programmatically.
For example, the method
addDynamicAttribute
creates a dynamic attribute (AttributeDefImpl) on
the View Object.
Advanced users can provide their own implementation of
EntityDefImpl
(by subclassing EntityDefImpl). Within it, they can
create their own AttributeDefImpls by using:
new 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 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
Value for the attribute's load value. |
protected java.lang.String |
mColumnName
The database column name for the attribute. |
protected java.lang.Class |
mComponentClass
|
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 java.lang.Object |
mElemFactory
|
protected java.lang.Class |
mElemType
Identifies the Java Type Object for this element. |
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 |
mMandatory
Value determines whether the attribute allows null values. |
protected boolean |
mNotNull
Value determines whether the attribute is null. |
protected boolean |
mObjectTableOID
Value determines whether the attribute is OID present. |
protected boolean |
mObjectTableRef
Value determines whether the attribute has an Object table ref. |
protected java.lang.String |
mObjectType
Object Type of the attribute. |
protected java.lang.String[] |
mOIDAttrNames
Internal: Applications should not use this field. |
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 java.lang.reflect.Method |
mReadMethod
To keep the read method with this attribute. |
protected boolean |
mResolveAccessors
Value determines whether getters and setters are loaded. |
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
Identifies the handle to SQL Builder. |
protected int |
mType
Integer representation of the SQL type of the attribute. |
protected java.lang.Object |
mTypeFactory
Identifies the CustomDatumFactory for this attribute. |
protected boolean |
mTypeFactoryInitialized
Value determines whether this attribute has a type factory. |
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.reflect.Method |
mWriteMethod
To keep the write method with this attribute. |
Fields inherited from class oracle.jbo.mom.DefinitionObject |
mBaseDefObject, mExtendedDefObjects, mObjectResolved |
Fields inherited from class oracle.jbo.common.NamedObjectImpl |
mFullName, mObjName, mParent, mProperties |
Fields inherited from interface oracle.jbo.AttributeDef |
ATTR_ASSOCIATED_ROW, ATTR_ASSOCIATED_ROWITERATOR, ATTR_DYNAMIC, ATTR_ENTITY_DERIVED, ATTR_PERSISTENT, ATTR_SQL_DERIVED, ATTR_TRANSIENT, READONLY, UPDATEABLE, UPDATEABLE_WHILE_NEW |
Constructor Summary | |
protected |
AttributeDefImpl()
Default constructor for this class. |
Method Summary | |
void |
addValidator(JboValidatorInterface listener)
Add a JboValidatorInterface to the listener list. |
void |
beanToStore(java.lang.Object bean,
Row store)
Internal: Applications should not use this method. |
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. |
boolean |
displayInShortForm(LocaleContext locale)
Returns true if the attribute is to displayed in the short(summary) form. |
protected void |
finishedLoading()
|
byte |
getAttributeKind()
Returns the "kind" enumerations of this attribute. |
byte |
getAttrLoad()
Describes the manner in which the data for this attribute is loaded from database. |
oracle.jbo.mom.DefinitionObject |
getBaseDefObject()
|
java.lang.String |
getClientProxyClassName()
|
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. |
java.lang.String |
getComponentInterfaceName()
|
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 displya hint that dictates whether this attributr should be visible or not. |
int |
getDisplayWidth(LocaleContext locale)
Returns the display width for this attribute |
protected java.lang.String |
getEffectiveClientProxyClassName()
|
protected java.lang.String |
getEffectiveComponentInterfaceName()
|
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()
Returns 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 |
com.sun.java.util.collections.HashMap |
getHintsFromResource(LocaleContext locale)
|
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 |
java.lang.String |
getLocaleName(LocaleContext locale,
java.lang.String sName)
function for retrieving the locale name of a hint |
java.lang.String |
getObjectType()
If the attribute is an object, returns the name of the attribute's object type |
java.lang.String[] |
getOIDAttrNames()
Internal: Applications should not use this method. |
oracle.jbo.server.PackageDefImpl |
getPackageDef()
|
java.lang.String |
getPackageName()
|
int |
getPrecision()
Gets the attribute's precision. |
com.sun.java.util.collections.HashMap |
getPropertiesMap()
Creates a table of this attribute's properties. |
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 java.lang.String |
getSQLTypeIdToString(int typeId)
Converts an identifier to the name of an SQL type. |
static int |
getSQLTypeStringToId(java.lang.String sqlType)
Converts a SQL type name to its identifier. |
java.lang.String |
getTooltip(LocaleContext locale)
Retrives the tooltip text to be used for this attribute |
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. |
com.sun.java.util.collections.ArrayList |
getValidators()
Get the list of JboValidatorInterface objects registered with this attribute |
java.lang.String |
getXMLElementTag()
|
boolean |
hasFormatInformation(LocaleContext locale)
Return true if any format hints have been defined for this attribute. |
protected void |
initFromXML(oracle.jbo.mom.xml.DefElementImpl xmlElement,
RowDef parent,
int index)
|
protected boolean |
isCascadeUpdateParticipant()
|
boolean |
isDiscrColumn()
Returns whether this attribute is a Discriminator Column for this Entity type. |
boolean |
isMandatory()
Returns whether the attribute is not null. |
boolean |
isObjectTableOID()
Internal: Applications should not use this method. |
boolean |
isObjectTableRef()
Internal: Applications should not use this method. |
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. |
java.lang.Object |
loadFromResultSet(java.sql.ResultSet rs,
int index,
DBTransactionImpl trans)
Internal: Applications should not use this method. |
java.lang.Object |
loadFromStatement(java.sql.PreparedStatement cs,
int index,
Transaction trans)
Internal: Applications should not use this method. |
protected void |
loadProperties(oracle.jbo.mom.xml.DefElementImpl xmlElement)
|
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 java.lang.String |
printXMLDefinition(Row row,
java.util.Hashtable allDefs,
java.io.PrintWriter pw,
int depthCount)
|
void |
removeValidator(JboValidatorInterface listener)
Removes a JboValidatorInterface from the listener list. |
protected void |
resolveReferences()
|
void |
setAttrLoad(byte attrLoad)
|
void |
setBaseDefObject(oracle.jbo.mom.DefinitionObject baseDefObject)
|
protected void |
setClientProxyClassName(java.lang.String name)
|
protected void |
setComponentInterfaceName(java.lang.String interfaceName)
|
void |
setDefaultValue(java.lang.Object val)
|
void |
setDiscrColumn(boolean b)
|
void |
setElemType(java.lang.Class cls)
|
void |
setMandatory(boolean b)
|
protected void |
setName(java.lang.String name)
Name this object. |
protected void |
setParent(NamedObjectImpl parent)
Sets this object's parent. |
void |
setPrecisionScale(int prec,
int scale)
Sets the attribute's precision and scale. |
void |
setPrimaryKey(boolean b)
|
void |
setQueriable(boolean b)
|
void |
setRetrievedOnInsert(boolean b)
|
void |
setRetrievedOnUpdate(boolean b)
|
void |
setSQLType(int typ)
|
void |
setUpdateableFlag(byte updateable)
|
void |
storeToBean(java.lang.Object bean,
Row store)
Internal: Applications should not use this method. |
Methods inherited from class oracle.jbo.mom.DefinitionObject |
addExtendedDefObject, getContainerDef, getContainerName, getExtendedDefObjects, hasExtendedDefObjects, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, setObjectResolved |
Methods inherited from class oracle.jbo.common.NamedObjectImpl |
getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getProperty, refreshProperty, setFullName, setPropertiesMap, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, 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, refreshProperty |
Field Detail |
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 mQueriable
protected boolean mUnique
protected boolean mPrimaryKey
protected boolean mDiscrColumn
protected boolean mMandatory
protected boolean mRetrievedOnInsert
protected boolean mRetrievedOnUpdate
protected RowDef mDef
protected boolean mObjectTableRef
protected boolean mObjectTableOID
protected java.lang.String[] mOIDAttrNames
protected java.lang.String mObjectType
protected boolean mNotNull
protected int mPrecision
protected int mScale
protected byte mUpdateable
protected byte mKind
protected byte mAttrLoad
protected int mType
protected int mIndex
protected java.lang.Object mDefaultValue
protected java.lang.String mDomainName
protected java.lang.Class mJavaType
protected java.lang.Class mElemType
protected java.lang.reflect.Method mReadMethod
protected java.lang.reflect.Method mWriteMethod
protected java.lang.Object mTypeFactory
protected java.lang.Object mElemFactory
protected boolean mTypeFactoryInitialized
protected SQLBuilder mSQLBuilder
protected boolean mResolveAccessors
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
protected byte mHistoryKind
protected java.lang.Class mComponentClass
Constructor Detail |
protected AttributeDefImpl()
Method Detail |
protected void setName(java.lang.String name)
oracle.jbo.server.DefObject
name
- the name to be given to this object.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
public void setQueriable(boolean b)
public byte getUpdateableFlag()
getUpdateableFlag
in interface AttributeDef
public void setUpdateableFlag(byte updateable)
public boolean isDiscrColumn()
public void setDiscrColumn(boolean b)
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
public void setPrimaryKey(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.
public void setRetrievedOnInsert(boolean b)
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.
public void setRetrievedOnUpdate(boolean b)
public boolean isMandatory()
isMandatory
in interface AttributeDef
public void setMandatory(boolean b)
public boolean isObjectTableRef()
public boolean isObjectTableOID()
public java.lang.String[] getOIDAttrNames()
public java.lang.String getObjectType()
For example, assume that you have created an Employee table that contains an Address object of type address_t. The SQL code would look like this:
CREATE TYPE address_t AS OBJECT -- user defined Oracle Object datatype ( Street VARCHAR2(30), City VARCHAR2(25), State CHAR(2), Zip Number ); CREATE TABLE Employee ( EmpId Number, Name VARCHAR2(30), Address address_t, -- note the Oracle Object datatype );
In an Employee Entity Object, this would be interpreted as an Address attribute of type Address_t. If this method were applied to the Address attribute, it would return Address_t.
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 int getScale()
Scale value is meaningful only for numeric attributes.
getScale
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 EntityDefImpl getEntityDef()
public RowDef getDef()
public int getIndex()
getIndex
in interface AttributeDef
public int getSQLType()
getSQLType
in interface AttributeDef
Types
public void setSQLType(int typ)
public byte getAttributeKind()
The following code snippet uses this method to return the attribute kind for each element in an array of AttributeDefs. Some processing is then done based on the results.
for(int i=0; i < attributeDefs.length; i++) { byte attrKind=attributeDefs[i].getAttributeKind(); if(attrKind==AttributeDef.ATTR_ASSOCIATED_ROW || attrKind==AttributeDef.ATTR_ASSOCIATED_ROWITERATOR) { do some processing } }
getAttributeKind
in interface AttributeDef
public byte getAttrLoad()
In the typical case, after the View Object query is executed, the framework retrieves data from the query result and populates the Entity row with the attribute values.
The framework uses two different ways to retrieve data from the query result. The first is the normal SQL SELECT way--the column corresponding to the attribute is accessible in the query result. For example, if the View Object query says SELECT e.Empno, e.Ename, e.Job, FROM Emp then attributes corresponding to columns Empno, Ename, and Job are accessible from the query result. That is, one can do result.getObject("Empno") to JDBC to retrieve the data. This situation is described as by the getAttrLoad() return value ATTR_LOAD_EACH.
If the query is over an Oracle Object table, on the other hand, the framework doesn't have access to individual columns from the query result. For example, assume an object table OBJEMP is based on an object type T, and this type has attributes Name, Address, and Job.
The query statement that the framework builds for such a table is select value(o) from TAB o. This retrieves each row from the table as an Oracle Object. From JDBC, the framework gets this as an object (STRUCT) and gets attributes out of the STRUCT.
In this case, the Entity Object attributes will have the following attribute load values:
Name -- ATTR_LOAD_BULK Address -- ATTR_LOAD_SKIP Job -- ATTR_LOAD_SKIP
ATTR_LOAD_BULK on Name means that while the framework retrieves data for Name, data for the other attributes, Address and Job is bulk-retrieved as well. ATTR_LOAD_SKIP on Address and Job means that since the framework filled in Address and Job while it retrieved Name, they should be skipped since they were bulk-retrieved with Name.
public void setAttrLoad(byte attrLoad)
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 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 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 void setElemType(java.lang.Class cls)
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 void setDefaultValue(java.lang.Object val)
public java.lang.String getColumnName()
getColumnName
in interface AttributeDef
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 java.lang.Object convertToJava(java.lang.Object data) throws DataCreationException
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 java.lang.Object getTypeFactory()
Returns the type factory for this attribute.
public java.lang.Object getElemFactory()
public java.lang.Object loadFromResultSet(java.sql.ResultSet rs, int index, DBTransactionImpl trans) throws DataCreationException
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 java.lang.Object loadFromStatement(java.sql.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.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 addValidator(JboValidatorInterface listener)
JboValidatorInterface
to the listener list.
listener
- The Validator to be addedpublic com.sun.java.util.collections.ArrayList getValidators()
public void removeValidator(JboValidatorInterface listener)
JboValidatorInterface
from the listener list.
listener
- The Validator to be removedprotected void initFromXML(oracle.jbo.mom.xml.DefElementImpl xmlElement, RowDef parent, int index)
public static int getSQLTypeStringToId(java.lang.String sqlType)
sqlType
- the name of a SQL datatype.
JboTypeMap
public static java.lang.String getSQLTypeIdToString(int typeId)
JboTypeMap
public com.sun.java.util.collections.HashMap getPropertiesMap()
getPropertiesMap
in class NamedObjectImpl
protected SQLBuilder getSQLBuilder()
public void storeToBean(java.lang.Object bean, Row store)
storeToBean
in interface EJBPersistable
public void beanToStore(java.lang.Object bean, Row store)
beanToStore
in interface EJBPersistable
public java.lang.String getXMLElementTag()
protected java.lang.String printXMLDefinition(Row row, java.util.Hashtable allDefs, java.io.PrintWriter pw, int depthCount)
public AttributeHints getUIHelper()
getUIHelper
in interface AttributeDef
AttributeHints
public java.lang.String getLocaleName(LocaleContext locale, java.lang.String sName)
AttributeHints
getLocaleName
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 final java.lang.String getDisplayHint(LocaleContext locale)
getDisplayHint
in interface AttributeHints
public final int getControlType(LocaleContext locale)
getControlType
in interface AttributeHints
public final int getDisplayWidth(LocaleContext locale)
getDisplayWidth
in interface AttributeHints
public final int getDisplayHeight(LocaleContext locale)
getDisplayHeight
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 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 getFormattedAttribute(AttributeList attrList, LocaleContext locale)
AttributeHints
getFormattedAttribute
in interface AttributeHints
public final java.lang.Object parseFormattedAttribute(java.lang.String sValue, LocaleContext locale)
AttributeHints
parseFormattedAttribute
in interface AttributeHints
public final boolean displayInShortForm(LocaleContext locale)
AttributeHints
displayInShortForm
in interface AttributeHints
public final java.lang.String getFormatterClassName(LocaleContext locale)
getFormatterClassName
in interface AttributeHints
public com.sun.java.util.collections.HashMap getHintsFromResource(LocaleContext locale)
public byte getHistoryKind()
HISTORY
constants defined for this class.protected final boolean isCascadeUpdateParticipant()
public oracle.jbo.server.PackageDefImpl getPackageDef()
public java.lang.String getPackageName()
public oracle.jbo.mom.DefinitionObject getBaseDefObject()
public void setBaseDefObject(oracle.jbo.mom.DefinitionObject baseDefObject)
protected void resolveReferences()
protected void finishedLoading()
protected void setParent(NamedObjectImpl parent)
parent
- the named object that is to be the parent of this object.protected void loadProperties(oracle.jbo.mom.xml.DefElementImpl xmlElement)
protected void setComponentInterfaceName(java.lang.String interfaceName)
public java.lang.String getComponentInterfaceName()
public java.lang.String getClientProxyClassName()
protected void setClientProxyClassName(java.lang.String name)
protected java.lang.String getEffectiveClientProxyClassName()
protected java.lang.String getEffectiveComponentInterfaceName()
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.