|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
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.mom.PersistableDefObject oracle.jbo.server.DefObject oracle.jbo.server.AttributeDefImpl oracle.jbo.server.ViewAttributeDefImpl
public class ViewAttributeDefImpl
The ViewAttributeDefImpl is an alias to an AttributeDefImpl.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.jbo.mom.PersistableDefObject |
---|
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType |
Nested classes/interfaces inherited from interface oracle.jbo.AttributeHints |
---|
AttributeHints.ControlType |
Field Summary | |
---|---|
static java.lang.String |
BASE_VIEW_ATTR
|
protected java.lang.String |
mAlias
|
protected java.util.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.mom.DefinitionObject |
---|
DEF_MDS_CLIENT_KEY, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAP |
Fields inherited from class oracle.jbo.common.NamedObjectImpl |
---|
mFullName, mObjName, mParent, mProperties, 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 |
Fields inherited from interface oracle.jbo.GenericHints |
---|
PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP |
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable |
---|
XML_STATEMENT |
Constructor Summary | |
---|---|
ViewAttributeDefImpl()
Construct an ViewAttributeDefImpl. |
Method Summary | |
---|---|
void |
addXSDAttribute(java.lang.String name,
java.lang.String viewAttrName)
Adds a dependent attribute mapping for the predefined complex type assigned to this view attribute. |
ViewLinkDefImpl |
findViewLinkDefImpl()
|
ViewObject |
getAccessorVO(ViewObject originVO)
For an accessor attribute, this method creates a View Object that works for the View Link definition. |
java.lang.String |
getAliasName()
|
java.util.HashMap |
getAllProperties(java.util.HashMap map,
LocaleContext locale)
|
java.lang.String |
getColumnNameForQuery()
Gets the column name to be used in query statement. |
java.lang.String[][] |
getCompOpers(LocaleContext locale)
Returns a Map of operators for this attribute. |
java.lang.String |
getDefXMLElementTag()
|
AttributeDefImpl |
getEntityAttributeDef()
|
EntityDefImpl |
getEntityDef()
Returns the EntityDef to which the referenced AttributeDef belongs if this view attribute is entity based. |
EntityReference |
getEntityReference()
Gets the entity reference which this attribute belongs |
java.lang.String |
getFullName()
Gets this object's fully-qualified name. |
int |
getIndex()
Get the column position of this attribute in the data source. |
ListBindingDef |
getListBindingDef()
|
java.lang.String |
getLOVName()
Retrieve the LOV name on the current view attribute. |
java.lang.String |
getObjectType()
If the attribute is an object, returns the name of the attribute's object type |
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. |
oracle.adf.share.security.binding.BindingPermissionDef |
getPermissionDef()
Internal: Applications should not use this method. |
DefObject |
getReferenceAttribute()
Gets the reference Entity's AttributeDefImpl if this View Attribute is Entity based. |
ViewDefImpl |
getViewDef()
|
AssociationDefImpl |
getViewLinkAccessorDef()
|
javax.xml.namespace.QName |
getXSDTypeName()
Gets the qualified name of the predefined complex type assigned to this view attribute. |
java.lang.String |
getXSDViewAttrName(java.lang.String name)
Gets the view attribute to which the specified XSD complex type attribute is mapped. |
boolean |
hasHintDefined(LocaleContext locale,
java.lang.String hintName)
|
boolean |
hasHintOverride(LocaleContext locale,
java.lang.String hintName)
|
boolean |
hasHintOverride(LocaleContext locale,
java.lang.String hintName,
java.lang.String hintValue)
|
boolean |
isDirty()
This method returns if an Object is modified from last save/load |
boolean |
isDiscrColumn()
Returns whether this attribute is a Discriminator Column for this Entity type. |
boolean |
isEntityDiscrColumn()
Returns all Properties from this attribute and it's domain if any. |
boolean |
isKey()
|
boolean |
isNew()
This method returns if this object is previously persisted. |
boolean |
isReverseAccessor()
|
boolean |
isSDOHidden()
|
protected java.lang.Object |
resolveObjectProperty(java.lang.String property,
LocaleContext locale)
|
void |
setAliasName(java.lang.String alias)
|
void |
setBaseDefObject(DefinitionObject baseDefObject)
|
void |
setEntityDiscrColumn(boolean b)
|
void |
setName(java.lang.String name)
Name this object. |
protected void |
setParent(NamedObjectImpl parent)
Sets this object's parent. |
void |
setSDOHidden(boolean b)
|
void |
setXSDTypeName(javax.xml.namespace.QName xsdTypeName)
Sets or unsets the predefined complex type assigned to this view attribute. |
void |
writeChildren(DefWriter jos)
Writes the Object's children to the Persistent storage |
void |
writeContents(DefWriter jos)
Objects should write their persistence output in this method |
Methods inherited from class oracle.jbo.server.DefObject |
---|
ensureVariableManager, finishedLoading, getBaseDefObject, getDefXMLNameSpace, getVariableManager, getVarMgrParents, hasVariables, loadProperties, loadVariables, resolveReferences, setBaseDefObject |
Methods inherited from class oracle.jbo.common.NamedObjectImpl |
---|
getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getPropertyExpressionsMap, getStringFromMessageBundle, isPropertyExpression, refreshProperty, removeProperty, setFullName, setPropertiesMap, setPropertiesMap2, 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 |
Methods inherited from interface oracle.jbo.rules.ValidationManager |
---|
getName |
Methods inherited from interface oracle.jbo.VariableManagerOwner |
---|
getName |
Field Detail |
---|
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 java.util.ArrayList mAssocEntityRefs
protected boolean mAssocEntityRefsInited
public static final java.lang.String BASE_VIEW_ATTR
Constructor Detail |
---|
public ViewAttributeDefImpl()
Method Detail |
---|
protected void setParent(NamedObjectImpl parent)
DefObject
setParent
in class AttributeDefImpl
parent
- the named object that is to be the parent of this object.public void setBaseDefObject(DefinitionObject baseDefObject)
setBaseDefObject
in class AttributeDefImpl
public void setName(java.lang.String name)
DefObject
setName
in class AttributeDefImpl
name
- the name to be given to this object.public boolean isNew()
DefPersistable
isNew
in interface DefPersistable
isNew
in class PersistableDefObject
public boolean isDirty()
DefPersistable
isDirty
in interface DefPersistable
isDirty
in class PersistableDefObject
public EntityReference getEntityReference()
public AttributeDefImpl getEntityAttributeDef()
public AssociationDefImpl getViewLinkAccessorDef()
public ViewDefImpl getViewDef()
public ViewDefImpl getOtherViewDef()
public ViewLinkDefImpl findViewLinkDefImpl()
public boolean isReverseAccessor()
public ViewObject getAccessorVO(ViewObject originVO)
AttributeDef
getAccessorVO
in interface AttributeDef
getAccessorVO
in class AttributeDefImpl
originVO
- the View Object that owns the accessor
ViewObject
instance.public DefObject getReferenceAttribute()
public java.lang.String getObjectType()
AttributeDefImpl
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.
getObjectType
in class AttributeDefImpl
public int getIndex()
getIndex
in interface AttributeDef
getIndex
in class AttributeDefImpl
public java.lang.String getFullName()
NamedObjectImpl
getFullName
in interface DefPersistable
getFullName
in interface ValidationManager
getFullName
in class NamedObjectImpl
public java.lang.String getAliasName()
public void setAliasName(java.lang.String alias)
public boolean isDiscrColumn()
AttributeDefImpl
isDiscrColumn
in interface AttributeDef
isDiscrColumn
in class AttributeDefImpl
public java.lang.String getColumnNameForQuery()
getColumnNameForQuery
in interface AttributeDef
getColumnNameForQuery
in class AttributeDefImpl
public boolean isEntityDiscrColumn()
public void setEntityDiscrColumn(boolean b)
public EntityDefImpl getEntityDef()
getEntityDef
in class AttributeDefImpl
public boolean isKey()
isKey
in class AttributeDefImpl
public ListBindingDef getListBindingDef()
getListBindingDef
in interface AttributeDef
getListBindingDef
in class AttributeDefImpl
protected java.lang.Object resolveObjectProperty(java.lang.String property, LocaleContext locale)
resolveObjectProperty
in class AttributeDefImpl
public java.util.HashMap getAllProperties(java.util.HashMap map, LocaleContext locale)
getAllProperties
in class AttributeDefImpl
public java.lang.String[][] getCompOpers(LocaleContext locale)
AttributeHints
getCompOpers
in interface AttributeHints
getCompOpers
in class AttributeDefImpl
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
getDefXMLElementTag
in class AttributeDefImpl
public void writeChildren(DefWriter jos)
PersistentDefinition
writeChildren
in interface PersistentDefinition
writeChildren
in class AttributeDefImpl
jos
- the Output storage for persistencepublic void writeContents(DefWriter jos)
PersistentDefinition
writeContents
in interface PersistentDefinition
writeContents
in class AttributeDefImpl
jos
- the Output storage for persistencepublic final boolean hasHintDefined(LocaleContext locale, java.lang.String hintName)
hasHintDefined
in class AttributeDefImpl
public final boolean hasHintOverride(LocaleContext locale, java.lang.String hintName)
hasHintOverride
in class AttributeDefImpl
public final boolean hasHintOverride(LocaleContext locale, java.lang.String hintName, java.lang.String hintValue)
public java.lang.String getLOVName()
getLOVName
in interface AttributeDef
getLOVName
in class AttributeDefImpl
public oracle.adf.share.security.binding.BindingPermissionDef getPermissionDef()
Returns the security metadata for this attribute.
getPermissionDef
in class AttributeDefImpl
public boolean isSDOHidden()
public void setSDOHidden(boolean b)
public javax.xml.namespace.QName getXSDTypeName()
public void setXSDTypeName(javax.xml.namespace.QName xsdTypeName)
xsdTypeName
- qualified name of a predefined complex typepublic java.lang.String getXSDViewAttrName(java.lang.String name)
name
- name of an attribute defined on the XSD complex type
public void addXSDAttribute(java.lang.String name, java.lang.String viewAttrName)
name
- name of an attribute defined on the XSD complex typeviewAttrName
- name of the source view attribute
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.4.0) E10653-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |