Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.adf.model.binding
Class DCVariableImpl

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl
      extended by oracle.jbo.common.VariableImpl
          extended by oracle.adf.model.binding.DCVariableImpl
All Implemented Interfaces:
java.io.Serializable, AttributeDef, AttributeHints, ResourceBundleOwner, JIReservedVarNames, GenericHints, JboReservedVarNames, DefPersistable, PersistentDefinition, Properties, ValidationManager, Variable

public class DCVariableImpl
extends VariableImpl
implements java.io.Serializable

See Also:
Serialized Form
javabean.class
name=DCVariableImpl

Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.jbo.AttributeHints
AttributeHints.ControlType
 
Field Summary
 
Fields inherited from class oracle.jbo.common.NamedObjectImpl
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX
 
Fields inherited from interface oracle.jbo.Variable
VAR_KIND_VIEW_CRITERIA_PARAM, VAR_KIND_WHERE_CLAUSE_PARAM, VAR_KIND_WHERE_OR_CRIT_PARAM
 
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.AttributeHints
ATTRIBUTE_AUTOSUBMIT, ATTRIBUTE_BINDEDITOR_LABEL, ATTRIBUTE_CTL_CATEGORY, ATTRIBUTE_CTL_DISPLAYHEIGHT, ATTRIBUTE_CTL_DISPLAYWIDTH, ATTRIBUTE_CTL_FIELD_ORDER, 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_LABEL_PLURAL, ATTRIBUTE_TOOLTIP, CTL_CHECK_BOX, CTL_CHOICE_LIST, CTL_COMBO_BOX, CTL_COMBO_BOX_LOV, CTL_DATE, CTL_DEFAULT, CTL_DELIMITEDIDS_CHOICE, CTL_EDIT, CTL_IMAGE, CTL_INPUT_TEXT_LOV, CTL_LIST_BOX, CTL_NUMBER_EDIT, CTL_RADIO_GROUP, CTLTYPE_CHECKBOX, CTLTYPE_COMBO, CTLTYPE_COMBOLOV, CTLTYPE_DATE, CTLTYPE_DEFAULT, CTLTYPE_DELIMITEDIDS_CHOICE, CTLTYPE_EDIT, CTLTYPE_IMAGE, CTLTYPE_LIST, CTLTYPE_LISTBOX, CTLTYPE_LOV, CTLTYPE_NUMEDIT, CTLTYPE_RADIOGRP, CTLTYPE_TOGGLE, FMT_FORMAT, FMT_FORMATTER, HINT_NAME_AUTOSUBMIT, HINT_NAME_CATEGORY, HINT_NAME_CTL_TYPE, HINT_NAME_DESCRIPTION, HINT_NAME_DISPLAY_HEIGHT, HINT_NAME_DISPLAY_HINT, HINT_NAME_DISPLAY_WIDTH, HINT_NAME_FIELD_ORDER, HINT_NAME_FORMAT, HINT_NAME_LABEL, HINT_NAME_MANDATORY, HINT_NAME_MAX_VALUE, HINT_NAME_MIN_LENGTH, HINT_NAME_MIN_VALUE, HINT_NAME_SECRET, HINT_NAME_TOOLTIP, HINT_NAME_UPDATEABLE, PNAME_Button, PNAME_ButtonGroup, PNAME_ComboBox, PNAME_ComboBoxLovEdit, PNAME_EnumList, PNAME_LovButton, PNAME_TextField
 
Fields inherited from interface oracle.jbo.GenericHints
PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP
 
Fields inherited from interface oracle.jbo.JboReservedVarNames
RESERVED_VAR_AGG_AVG, RESERVED_VAR_AGG_COUNT, RESERVED_VAR_AGG_MAX, RESERVED_VAR_AGG_MIN, RESERVED_VAR_AGG_SUM, RESERVED_VAR_AGGVAL_PREFIX, RESERVED_VAR_STRUCTURE_DEF
 
Fields inherited from interface oracle.jbo.expr.JIReservedVarNames
RESERVED_VAR_VALUE
 
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable
XML_STATEMENT
 
Constructor Summary
DCVariableImpl()
           
 
Method Summary
 java.lang.Object clone()
           
protected  VariableImpl createClone()
           
 java.lang.Object getDefaultValue()
          Returns the default value of the attribute.
 int getIndex()
          Overridden to return -1 for index.
 java.lang.Class getJavaType()
          Returns the Java type of the attribute.
 int getPrecision()
          Gets the attribute's precision.
 java.lang.Object getProperty(java.lang.String property, LocaleContext locale)
           
 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.
 byte getUpdateableFlag()
          Returns whether the attribute is updateable.
 java.lang.String getVariableKind()
           
 void initFromXML(DefElement xmlElement, boolean bDesignTime)
          *** For internal framework use only ***
 boolean isMandatory()
          Returns whether the attribute is not null.
 void setDefaultValue(java.lang.Object val)
           
 
Methods inherited from class oracle.jbo.common.VariableImpl
_getDomainContext, addValidator, convertToJava, displayInShortForm, evaluateTransientExpression, getAccessorVO, getAttributeKind, getColumnName, getColumnNameForQuery, getColumnType, getCompOpers, getControlType, getDefXMLElementTag, getDefXMLNameSpace, getDisplayHeight, getDisplayHint, getDisplayWidth, getElemSQLType, getElemType, getExprEval, getExtendedData, getFormat, getFormattedAttribute, getFormatter, getFormatterClassName, getHint, getHintValue, getJavaTypeName, getLabel, getLabelPlural, getListBindingDef, getLocaleName, getLOVName, getOperators, getOrigObject, getResourceBundleDef, getResourcePrefix, getSerializerClassName, getSession, getSQLType, getStructureDef, getTooltip, getTransientExpression, getUIHelper, getValidators, getValueSerializer, getVariableManager, getXMLContentValue, getXMLElementTag, hasFormatInformation, initDefaultValueNoConversion, initFromXML, isAutoSubmit, isDefinedDefaultValue, isDirty, isDiscrColumn, isNew, isPassivationNeeded, isPrimaryKey, isQueriable, isSelected, loadCustomProperties, loadProperties, loadSchemaProperties, parseFormattedAttribute, removeValidator, requiresNamePrefixedResId, setColumnType, setDirty, setElemType, setExtendedData, setJavaType, setJavaTypeName, setMandatory, setName, setNew, setOrigObject, setPassivationNeeded, setPrecisionScale, setSerializerClassName, setTransientExpression, setUpdateableFlag, setVariableKind, setVariableManager, writeChildren, writeContents, writeObject
 
Methods inherited from class oracle.jbo.common.NamedObjectImpl
allocatePropertyMap, getAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getPropertyExpressionsMap, getPropertyMap, getResourcesFromBundle, getStringFromMessageBundle, isPropertyExpression, mergePropertyMap, refreshProperty, removeProperty, removeProperty, resolveObjectProperty, resolvePropertyRaw, setFullName, setParent, setPropertiesMap, setPropertiesMap2, setProperty, setProperty, setPropertyExpression, setPropertyMap
 
Methods inherited from class java.lang.Object
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
getFullName, getName
 
Methods inherited from interface oracle.jbo.mom.xml.DefPersistable
getFullName
 

Constructor Detail

DCVariableImpl

public DCVariableImpl()
Method Detail

createClone

protected VariableImpl createClone()
Overrides:
createClone in class VariableImpl

clone

public java.lang.Object clone()
Specified by:
clone in interface Variable
Overrides:
clone in class VariableImpl

getDefaultValue

public java.lang.Object getDefaultValue()
Returns the default value of the attribute.

The default value for an attribute is expressed in terms of the Java type system, rather than the storage type system.

Specified by:
getDefaultValue in interface Variable
Overrides:
getDefaultValue in class VariableImpl
Returns:
the default value for the attribute, or null if none.

setDefaultValue

public void setDefaultValue(java.lang.Object val)
Specified by:
setDefaultValue in interface Variable
Overrides:
setDefaultValue in class VariableImpl

getIndex

public int getIndex()
Description copied from class: VariableImpl
Overridden to return -1 for index.

Specified by:
getIndex in interface AttributeDef
Overrides:
getIndex in class VariableImpl
Returns:
the index of the attribute row's definition object.

initFromXML

public void initFromXML(DefElement xmlElement,
                        boolean bDesignTime)
Description copied from class: VariableImpl
*** For internal framework use only ***

Overrides:
initFromXML in class VariableImpl

getProperty

public java.lang.Object getProperty(java.lang.String property,
                                    LocaleContext locale)
Specified by:
getProperty in interface Properties
Overrides:
getProperty in class NamedObjectImpl

getVariableKind

public java.lang.String getVariableKind()
Specified by:
getVariableKind in interface Variable
Overrides:
getVariableKind in class VariableImpl

getUpdateableFlag

public byte getUpdateableFlag()
Description copied from class: VariableImpl
Returns whether the attribute is updateable.

Specified by:
getUpdateableFlag in interface AttributeDef
Overrides:
getUpdateableFlag in class VariableImpl
Returns:
true if this is an editable attribute; false otherwise.

isMandatory

public boolean isMandatory()
Description copied from class: VariableImpl
Returns whether the attribute is not null.

Specified by:
isMandatory in interface AttributeDef
Overrides:
isMandatory in class VariableImpl
Returns:
true if this is attribute not null; false otherwise.

getPrecision

public int getPrecision()
Description copied from class: VariableImpl
Gets the attribute's precision.

For strings, precision is maximum allowed length. For numeric values, precision is the number of significant digits.

Specified by:
getPrecision in interface AttributeDef
Overrides:
getPrecision in class VariableImpl
Returns:
the precision value, or 0 if unspecified.

getScale

public int getScale()
Description copied from class: VariableImpl
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.

Scale value is meaningful only for numeric attributes.

Specified by:
getScale in interface AttributeDef
Overrides:
getScale in class VariableImpl
Returns:
the scale value. The default is -127.

getJavaType

public java.lang.Class getJavaType()
Description copied from class: VariableImpl
Returns the Java type of the attribute.

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.

Specified by:
getJavaType in interface AttributeDef
Overrides:
getJavaType in class VariableImpl
Returns:
the attribute's Java class, or Object for attributes which have no accessor methods available.

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

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