|
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
oracle.jbo.server.ViewAttributeDefImpl
public class ViewAttributeDefImpl
| Field Summary | |
|---|---|
static java.lang.Class |
CLASS_INSTANCE
|
protected java.lang.String |
mAlias
|
protected ArrayList |
mAssocEntityRefs
|
protected boolean |
mAssocEntityRefsInited
|
protected AttributeDefImpl |
mAttrDesc
|
protected java.lang.String |
mBindVar
|
protected java.lang.String |
mGetterName
|
protected java.lang.String |
mSetterName
|
protected ViewObjectImpl |
mVO
|
| 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 | |
|---|---|
ViewAttributeDefImpl()
|
|
| Method Summary | |
|---|---|
ViewLinkDefImpl |
findViewLinkDefImpl()
|
java.lang.String |
formatForOutput(OutputFormatter formatter)
This is used mainly for testing. |
java.lang.String |
getAliasName()
|
AttributeDefImpl |
getAttributeDefImpl()
Get the underlying EO attribute that this VO attribute references (if any) |
java.lang.String |
getColumnNameForQuery()
Gets the column name to be used in query statement. |
AttributeDefImpl |
getEntityAttributeDef()
|
EntityReference |
getEntityReference()
Gets the entity reference which this attribute belongs to |
java.lang.Class |
getJavaType()
Create a new ViewAttributeDefImpl from a chunk of XML |
ViewDefImpl |
getOtherViewDef()
If this attribute is an accessor attribute (refers to an end in a ViewLink) then this method returns the ViewDef of other end of the ViewLink. |
DefObject |
getReferenceAttribute()
Gets the reference Entity's AttributeDefImpl if this View Attribute is Entity based. |
int |
getSQLType()
Returns the SQL type of this attribute. |
ViewDefImpl |
getViewDef()
|
boolean |
isEntityBacked()
|
boolean |
isPrimaryKey()
Returns whether this attribute is a Primary Key for this Entity type. |
protected void |
readJavaType(org.kxml2.io.KXmlParser parser)
Determine what the XML specifies as this Attribute's Java type |
protected java.lang.Object |
resolvePropertyRaw(java.lang.String property,
Locale locale)
|
void |
setAliasName(java.lang.String alias)
|
| 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
protected AttributeDefImpl mAttrDesc
protected java.lang.String mAlias
protected java.lang.String mGetterName
protected java.lang.String mSetterName
protected java.lang.String mBindVar
protected ViewObjectImpl mVO
protected ArrayList mAssocEntityRefs
protected boolean mAssocEntityRefsInited
| Constructor Detail |
|---|
public ViewAttributeDefImpl()
| Method Detail |
|---|
public ViewDefImpl getViewDef()
public AttributeDefImpl getAttributeDefImpl()
public boolean isEntityBacked()
public java.lang.Class getJavaType()
getJavaType in interface AttributeDefgetJavaType in class AttributeDefImplparser - An XML pull parser positioned at the start of a parent - The ViewDefImpl this ViewAttributeDefImpl belongs toindex - 0-based index of this attribute
public int getSQLType()
AttributeDefImpl
getSQLType in interface AttributeDefgetSQLType in class AttributeDefImpljava.sql.Typespublic boolean isPrimaryKey()
AttributeDefImplThe 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 AttributeDefisPrimaryKey in class AttributeDefImplprotected void readJavaType(org.kxml2.io.KXmlParser parser)
AttributeDefImpl
readJavaType in class AttributeDefImplparser - Parser positioned at the start of an Attribute elementpublic EntityReference getEntityReference()
public java.lang.String getAliasName()
public AttributeDefImpl getEntityAttributeDef()
public void setAliasName(java.lang.String alias)
public ViewLinkDefImpl findViewLinkDefImpl()
public java.lang.String formatForOutput(OutputFormatter formatter)
formatForOutput in interface FormattableformatForOutput in class AttributeDefImplformatter -
public ViewDefImpl getOtherViewDef()
public java.lang.String getColumnNameForQuery()
getColumnNameForQuery in interface AttributeDefgetColumnNameForQuery in class AttributeDefImplpublic DefObject getReferenceAttribute()
protected java.lang.Object resolvePropertyRaw(java.lang.String property,
Locale locale)
resolvePropertyRaw in class AttributeDefImpl
|
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 | ||||||||