Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


oracle.jbo.server
Class ViewAttributeDefImpl

java.lang.Object
  |
  +--oracle.jbo.common.NamedObjectImpl
        |
        +--oracle.jbo.mom.DefinitionObject
              |
              +--oracle.jbo.server.DefObject
                    |
                    +--oracle.jbo.server.AttributeDefImpl
                          |
                          +--oracle.jbo.server.ViewAttributeDefImpl
All Implemented Interfaces:
AttributeDef, AttributeHints, EJBPersistable, Properties

public class ViewAttributeDefImpl
extends AttributeDefImpl

The ViewAttributeDefImpl is an alias to an AttributeDefImpl.

Version:
PUBLIC since 9.0.3

Field Summary
protected  java.lang.String mAlias
           
protected  com.sun.java.util.collections.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.AttributeDefImpl
ATTR_LOAD_BULK, ATTR_LOAD_EACH, ATTR_LOAD_SKIP, HISTORY_CREATE_DATE, HISTORY_CREATE_USER, HISTORY_MODIFY_DATE, HISTORY_MODIFY_USER, HISTORY_MODIFY_VERSION, HISTORY_NOT_DEFINED, mAttrLoad, mColumnName, mComponentClass, mDef, mDefaultValue, mDiscrColumn, mDomainName, mElemFactory, mElemType, mHistoryKind, mIndex, mJavaType, mKind, mMandatory, mNotNull, mObjectTableOID, mObjectTableRef, mObjectType, mOIDAttrNames, mPrecision, mPrimaryKey, mQueriable, mReadMethod, mResolveAccessors, mRetrievedOnInsert, mRetrievedOnUpdate, mScale, mSQLBuilder, mType, mTypeFactory, mTypeFactoryInitialized, mUnique, mUpdateable, mWriteMethod

 

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

 

Fields inherited from interface oracle.jbo.AttributeHints
ATTRIBUTE_CTL_DISPLAYHEIGHT, ATTRIBUTE_CTL_DISPLAYWIDTH, ATTRIBUTE_CTL_FORMTYPE, ATTRIBUTE_CTL_TYPE, ATTRIBUTE_DISPLAY_HINT, ATTRIBUTE_DISPLAY_HINT_DISPLAY, ATTRIBUTE_DISPLAY_HINT_HIDE, ATTRIBUTE_FORM_TYPE_DETAIL, ATTRIBUTE_FORM_TYPE_SHORT, ATTRIBUTE_LABEL, ATTRIBUTE_TOOLTIP, CTLTYPE_DATE, CTLTYPE_DEFAULT, CTLTYPE_EDIT, CTLTYPE_IMAGE, CTLTYPE_LIST, CTLTYPE_LOV, CTLTYPE_TOGGLE, FMT_FORMAT, FMT_FORMATTER

 

Constructor Summary
ViewAttributeDefImpl()
          Construct an ViewAttributeDefImpl.

 

Method Summary
 oracle.jbo.server.ViewLinkDefImpl findViewLinkDefImpl()
           
 java.lang.String getAliasName()
           
 java.lang.String getColumnNameForQuery()
          Gets the column name to be used in query statement.
 EntityDefImpl getEntityDef()
          Returns the EntityDef to which the referenced AttributeDef belongs if this view attribute is entity based.
 com.sun.java.util.collections.HashMap getHintsFromResource(LocaleContext locale)
           
 int getIndex()
          Get the column position of this attribute in the data source.
 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.
 com.sun.java.util.collections.HashMap getPropertiesMap()
          Returns all Properties from this attribute and it's domain if any.
 oracle.jbo.server.DefObject getReferenceAttribute()
          Gets the reference Entity's AttributeDefImpl if this View Attribute is Entity based.
 ViewDefImpl getViewDef()
           

 

Methods inherited from class oracle.jbo.server.AttributeDefImpl
beanToStore, convertToJava, convertToStorage, displayInShortForm, finishedLoading, getAttributeKind, getAttrLoad, getBaseDefObject, getColumnName, getControlType, getDef, getDefaultValue, getDisplayHeight, getDisplayHint, getDisplayWidth, getElemFactory, getElemSQLType, getElemType, getFormat, getFormattedAttribute, getFormatter, getFormatterClassName, getHint, getHintValue, getHistoryKind, getJavaType, getLabel, getLocaleName, getObjectType, getOIDAttrNames, getPackageDef, getPackageName, getPrecision, getScale, getSQLBuilder, getSQLType, getS

 

Methods inherited from class oracle.jbo.mom.DefinitionObject
addExtendedDefObject, getContainerDef, getContainerName, getExtendedDefObjects, 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

mAttrDesc

protected AttributeDefImpl mAttrDesc

mAlias

protected java.lang.String mAlias

mGetterName

protected java.lang.String mGetterName

mSetterName

protected java.lang.String mSetterName

mBindVar

protected java.lang.String mBindVar

mVO

protected ViewObjectImpl mVO

mAssocEntityRefs

protected com.sun.java.util.collections.ArrayList mAssocEntityRefs

mAssocEntityRefsInited

protected boolean mAssocEntityRefsInited
Constructor Detail

ViewAttributeDefImpl

public ViewAttributeDefImpl()
Construct an ViewAttributeDefImpl.
Method Detail

getViewDef

public ViewDefImpl getViewDef()

getOtherViewDef

public 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. If this attribute is not an accessor attribute it returns null.

findViewLinkDefImpl

public oracle.jbo.server.ViewLinkDefImpl findViewLinkDefImpl()

getReferenceAttribute

public oracle.jbo.server.DefObject getReferenceAttribute()
Gets the reference Entity's AttributeDefImpl if this View Attribute is Entity based.
Returns:
The referenced by object (null if this attribute is not entity based.).

getIndex

public int getIndex()
Get the column position of this attribute in the data source. Implementation of the AttributeDef Interface.
Specified by:
getIndex in interface AttributeDef
Overrides:
getIndex in class AttributeDefImpl
Returns:
The column index.

getAliasName

public java.lang.String getAliasName()

getColumnNameForQuery

public java.lang.String getColumnNameForQuery()
Gets the column name to be used in query statement. If the VO involves multiple entity usages, the column name may have to be qualified with the table alias for the appropriate entity. If the query statement is a full query ("expert mode"), the where-clause in the outer select must use column alias used for the inner select. This method takes care of all this and returns the right column name to be used for a query statement.
Specified by:
getColumnNameForQuery in interface AttributeDef
Overrides:
getColumnNameForQuery in class AttributeDefImpl
Returns:
the column name to be used in query.

getPropertiesMap

public com.sun.java.util.collections.HashMap getPropertiesMap()
Returns all Properties from this attribute and it's domain if any.
Overrides:
getPropertiesMap in class AttributeDefImpl
Returns:
the table of properties.

getEntityDef

public EntityDefImpl getEntityDef()
Returns the EntityDef to which the referenced AttributeDef belongs if this view attribute is entity based. Otherwise returns null.
Overrides:
getEntityDef in class AttributeDefImpl
Returns:
this Entity Object definition to which this attribute belongs.

getHintsFromResource

public com.sun.java.util.collections.HashMap getHintsFromResource(LocaleContext locale)
Overrides:
getHintsFromResource in class AttributeDefImpl

Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


 

Copyright © 1997, 2003, Oracle. All rights reserved.