|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.common.sdo.SDOValueStoreHelper
public class SDOValueStoreHelper
Field Summary | |
---|---|
static int |
ALL_PROPERTY
|
static int |
ASSOCIATION_PROPERTY
|
static int |
ASSOCIATION_PROPERTY_1TO1
|
static int |
ASSOCIATION_PROPERTY_1TOM
|
static int |
COMPOSITION_PROPERTY
|
static int |
COMPOSITION_PROPERTY_1TO1
|
static int |
COMPOSITION_PROPERTY_1TOM
|
static SDOValueStoreHelper |
INSTANCE
|
static int |
PRIMARY_KEY_PROPERTY
|
static java.lang.String |
PROPERTY_MIMETYPE
|
static java.lang.String |
PROPERTY_MIMETYPE_PROPERTY
|
static java.lang.String |
PROPERTY_SERVICE_PROCESS_CHILDREN
|
static int |
SCALAR_PROPERTY
|
static java.util.HashMap |
sDataObjectKeyPropertiesMap
|
Method Summary | |
---|---|
java.lang.String |
applyFindCriteria(FindCriteria findCriteria,
ViewObject viewObject,
java.lang.String vcName)
|
Key |
buildKeyValues(commonj.sdo.DataObject dataObject,
ViewObject viewObject)
Retrieve Key value. |
ServiceException |
constructServiceException(java.lang.String errorCode,
java.lang.Object[] params,
commonj.sdo.DataObject source)
|
ViewCriteria |
convertFindCriteria(FindCriteria findCriteria,
ViewObject viewObject,
java.lang.String vcName)
|
void |
convertViewCriteria(ViewCriteria viewCriteria,
ViewCriteria vc)
|
void |
copyDataObject(commonj.sdo.DataObject source,
commonj.sdo.DataObject dest)
Copy or Clone dataobject from source to dest |
void |
copyDataObject(commonj.sdo.DataObject source,
commonj.sdo.DataObject dest,
int propertyTypes)
Copy/Clone dataobject from source to dest |
void |
copyDataObject(commonj.sdo.DataObject source,
commonj.sdo.DataObject dest,
int propertyTypes,
java.util.HashMap oldValuesMap)
Copies values from one data object to another. |
commonj.sdo.DataObject |
createDataObject(AttributeList attrList,
java.lang.Class interfaceClass)
|
java.lang.Object |
createDataObject(java.lang.Object output,
java.lang.Class interfaceClass,
boolean isServiceScope)
|
commonj.sdo.DataObject |
createDataObject(Row row,
java.lang.Class interfaceClass,
FindCriteria findCriteria,
boolean isDisconnectedMode,
boolean isServiceScope)
|
commonj.sdo.DataObject |
dataObjectToRow(commonj.sdo.DataObject dataObject,
Row row,
boolean isDisconnectedMode,
boolean isServiceScope)
Transfer all property values from dataobject to Row |
commonj.sdo.DataObject |
dataObjectToRow(commonj.sdo.DataObject dataObject,
Row row,
int propertyTypes,
boolean forceSetAttribute,
boolean isDisconnectedMode,
boolean isServiceScope)
Copies values from a data object to a row. |
commonj.sdo.DataObject |
dataObjectToRow(commonj.sdo.DataObject dataObject,
Row row,
int propertyTypes,
boolean forceSetAttribute,
boolean isDisconnectedMode,
boolean isServiceScope,
java.util.HashMap oldValuesMap)
Copies values from a data object to a row. |
Row |
extractRowFromDataObject(commonj.sdo.DataObject oneChild)
extract the row value from SDOValueStore |
Row[] |
findRows(FindCriteria findCriteria,
ViewObject viewObject)
|
java.lang.String[] |
getAlternateKeyNames(ViewObject viewObject)
|
Key |
getAlternateKeyValue(ViewObject viewObject,
java.lang.String altKeyName,
commonj.sdo.DataObject dataObject)
Retrieve AlternateKey Values. |
java.util.Properties |
getAppModuleSessionProperties()
Helper method for setting properties of application module session |
AttributeList |
getAttributeList(ViewObjectImpl viewobject,
commonj.sdo.DataObject source)
|
ViewObject |
getChildViewObject(ViewObject viewObject,
java.lang.String attributeName)
figure out the viewobject name from attribute name |
java.lang.String |
getCompositionName(ViewObject viewObject,
java.lang.String attributeName)
|
int |
getFindCriteriaFetchSize(FindCriteria findCriteria)
|
AttributeList |
getInitAttributeList(ViewObjectImpl viewobject,
commonj.sdo.DataObject source)
|
java.lang.String |
getMimeType(commonj.sdo.DataObject source,
commonj.sdo.Property property,
java.lang.Object value)
|
AttributeList |
getParentAttributeList(ViewObject viewObject,
ViewRowImpl row,
java.lang.String attributeName)
|
java.util.HashMap |
getRefreshableAttributeMap(Row row)
Gets the names of row attributes whose values are retrieved from the database after the row is inserted or updated in the post cycle. |
java.util.HashMap |
getRefreshableAttributeMap(Row row,
boolean getHistory)
Gets the names of row attributes whose values are retrieved from the database after the row is inserted or updated in the post cycle. |
static commonj.sdo.DataObject |
getReturnObject(commonj.sdo.DataObject source,
java.lang.String returnMode)
|
Row |
getRow(Key key,
java.lang.String keyName,
RowSet rowSet)
Helper method to get row from rowset |
Row |
getRow(Key key,
java.lang.String keyName,
ViewObject viewObject)
helper method to get row |
Row |
getRowByKey(Key key,
java.lang.String keyName,
ViewObject viewObject,
RowSet parentRowSet)
|
Row |
getRowByKeyOrAltKey(ViewObject viewObject,
RowSet parentRowSet,
commonj.sdo.DataObject source)
|
java.lang.String[] |
getSelectedAttributes(commonj.sdo.Type sdotype,
FindCriteria findCriteria,
ViewObjectImpl viewObject)
Return selected attribute list for viewobject whose query mode is "declarative". |
static boolean |
hasRetrievedOnCreateAttrs(ViewObject viewObject)
Returns whether the given viewObject has attributes needed to be refreshed on creation. |
static boolean |
hasRetrievedOnCreateKeyAttrs(ViewObject viewObject)
Returns whether the given viewObject has one or more key attributes needed to be refreshed on creation. |
static boolean |
hasRetrievedOnUpdateAttrs(ViewObject viewObject)
Returns whether the given viewObject has attributes needed to be refreshed on updating. |
static boolean |
hasRetrievedOnUpdateKeyAttrs(ViewObject viewObject)
Returns whether the given viewObject has one or more key attributes needed to be refreshed on updating. |
boolean |
isComposition(commonj.sdo.DataObject dataobject,
java.lang.String attributeName)
check if a relationship referred by attribue name is a composition or not |
boolean |
isComposition(ViewObject viewObject,
java.lang.String attributeName)
evaluate if a relationship referred by attribute name is a composition or not |
boolean |
isEntityBasedViewRow(Row row)
Returns whether the given Row object is based on an Entity Object. |
static boolean |
isHistoryAttribute(AttributeDefImpl attrDef)
Returns whether the given attribute is an entity-derived attribute and the mapped entity attribute represents a history column. |
boolean |
isHistoryAttribute(commonj.sdo.DataObject dataobject,
java.lang.String attributeName)
Returns whether the given property maps to an entity derived history column in the view object that the SDO DataObject maps to. |
boolean |
isKeyAttribute(commonj.sdo.DataObject dataobject,
java.lang.String attributeName)
Returns whether the given property maps to a key attribute in the view object that the SDO DataObject maps to. |
void |
passdownFKReferece(ViewObject viewObject,
java.lang.String attributeName,
commonj.sdo.DataObject parent,
commonj.sdo.DataObject child)
|
void |
passdownFKReferece(ViewObject viewObject,
java.lang.String attributeName,
commonj.sdo.DataObject parent,
java.util.List<commonj.sdo.DataObject> children)
passdown foreign key value from the parent to children |
void |
populateKeyProperties(commonj.sdo.DataObject dataObject,
ViewObject viewObject,
Row viewRow)
|
java.lang.Object |
preprocessPropertyValue(java.lang.Object value)
pre-process property value; For now, the only process is to convert empty string to null. |
void |
resetSelectedAttributes(ViewObject viewobject,
commonj.sdo.Type sdotype,
FindCriteria findCriteria)
|
commonj.sdo.DataObject |
rowToDataObject(Row row,
commonj.sdo.DataObject dest)
copy all property values from row to dataobject |
commonj.sdo.DataObject |
rowToDataObject(Row row,
commonj.sdo.DataObject dest,
int propertyTypes)
Transfer certain types of property values from row to dataobject |
void |
setChildProperty(commonj.sdo.DataObject parentDataObject,
commonj.sdo.DataObject childDataObject,
commonj.sdo.Property property)
|
void |
setDataTypeProperties(commonj.sdo.DataObject source,
commonj.sdo.DataObject dest)
|
void |
setQueryParamValues(commonj.sdo.DataObject source,
java.lang.Object[] paramValues)
|
void |
setSDOValueStore(Row row,
FindCriteria findCriteria,
boolean isDisconnectedMode,
boolean isServiceScope,
commonj.sdo.DataObject targetObject)
|
void |
setSDOValueStoreReturnMode(commonj.sdo.DataObject source,
java.lang.String returnMode)
|
void |
setSDOValueStoreState(commonj.sdo.DataObject source,
boolean state)
|
void |
setSDOValueStoreToExpandAllChildren(commonj.sdo.DataObject source,
boolean expandChildren)
|
void |
setSDOValueStoreToNavigateManyChild(commonj.sdo.DataObject source,
boolean flag)
|
void |
setSessionEnv(SessionCookie sess)
|
void |
unsetAppliedCriteria(ViewObject viewObject,
java.lang.String vcName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static SDOValueStoreHelper INSTANCE
public static final int PRIMARY_KEY_PROPERTY
public static final int SCALAR_PROPERTY
public static final int COMPOSITION_PROPERTY_1TO1
public static final int COMPOSITION_PROPERTY_1TOM
public static final int COMPOSITION_PROPERTY
public static final int ASSOCIATION_PROPERTY_1TO1
public static final int ASSOCIATION_PROPERTY_1TOM
public static final int ASSOCIATION_PROPERTY
public static final int ALL_PROPERTY
public static final java.lang.String PROPERTY_MIMETYPE
public static final java.lang.String PROPERTY_MIMETYPE_PROPERTY
public static final java.lang.String PROPERTY_SERVICE_PROCESS_CHILDREN
public static java.util.HashMap sDataObjectKeyPropertiesMap
Method Detail |
---|
public Row extractRowFromDataObject(commonj.sdo.DataObject oneChild)
oneChild
-
public void setSDOValueStoreState(commonj.sdo.DataObject source, boolean state)
public void setSDOValueStoreToNavigateManyChild(commonj.sdo.DataObject source, boolean flag)
public void setSDOValueStoreReturnMode(commonj.sdo.DataObject source, java.lang.String returnMode)
public void setSDOValueStoreToExpandAllChildren(commonj.sdo.DataObject source, boolean expandChildren)
public java.lang.Object createDataObject(java.lang.Object output, java.lang.Class interfaceClass, boolean isServiceScope)
public void setQueryParamValues(commonj.sdo.DataObject source, java.lang.Object[] paramValues)
public commonj.sdo.DataObject createDataObject(AttributeList attrList, java.lang.Class interfaceClass)
public void setSDOValueStore(Row row, FindCriteria findCriteria, boolean isDisconnectedMode, boolean isServiceScope, commonj.sdo.DataObject targetObject)
public commonj.sdo.DataObject createDataObject(Row row, java.lang.Class interfaceClass, FindCriteria findCriteria, boolean isDisconnectedMode, boolean isServiceScope)
public commonj.sdo.DataObject dataObjectToRow(commonj.sdo.DataObject dataObject, Row row, int propertyTypes, boolean forceSetAttribute, boolean isDisconnectedMode, boolean isServiceScope)
dataObject
already wraps the specified row
, the
data object is returned as is. Otherwise this method will instantiate a
new data object to wrap the row.
dataObject
- dataobject from which to get valuesrow
- row on which to set valuespropertyTypes
- indicates what types of properties to copyforceSetAttribute
- flag to indicate whether executing set() when the new values are the same as old values.isDisconnectedMode
- flag to indicate whether the creation or updating of rows will be posted to database.isServiceScope
- flag to indicate whether it is inside a service operation or not.
public commonj.sdo.DataObject dataObjectToRow(commonj.sdo.DataObject dataObject, Row row, int propertyTypes, boolean forceSetAttribute, boolean isDisconnectedMode, boolean isServiceScope, java.util.HashMap oldValuesMap)
dataObject
already wraps the specified row
, the
data object is returned as is. Otherwise this method will instantiate a
new data object to wrap the row. If oldValuesMap
is
specified, this method will not copy properties not found in the map.
(Currently the old values are not used.)
dataObject
- data object from which to get valuesrow
- row on which to set valuespropertyTypes
- types of properties to copyforceSetAttribute
- flag to indicate whether executing set() when the new values are the same as old values.isDisconnectedMode
- flag to indicate whether the creation or updating of rows will be posted to database.isServiceScope
- flag to indicate whether it is inside a service operation or not.oldValuesMap
- table of property-value pairs
public commonj.sdo.DataObject dataObjectToRow(commonj.sdo.DataObject dataObject, Row row, boolean isDisconnectedMode, boolean isServiceScope)
dataObject
- row
-
public java.util.Properties getAppModuleSessionProperties()
public void setSessionEnv(SessionCookie sess)
public commonj.sdo.DataObject rowToDataObject(Row row, commonj.sdo.DataObject dest)
row
- dest
-
public commonj.sdo.DataObject rowToDataObject(Row row, commonj.sdo.DataObject dest, int propertyTypes)
row
- dest
- propertyTypes
-
public void copyDataObject(commonj.sdo.DataObject source, commonj.sdo.DataObject dest, int propertyTypes)
source
- source dataObjectdest
- destination dataobjectpropertyTypes
- indicates what types of properties to copypublic void copyDataObject(commonj.sdo.DataObject source, commonj.sdo.DataObject dest, int propertyTypes, java.util.HashMap oldValuesMap)
oldValuesMap
is specified, this method
will not copy properties not found in the map. (Currently the old values
are not used.)
source
- data object from which to get valuesdest
- data object on which to set valuespropertyTypes
- types of properties to copyoldValuesMap
- table of property-value pairspublic java.lang.Object preprocessPropertyValue(java.lang.Object value)
value
- input property value;
public boolean isComposition(commonj.sdo.DataObject dataobject, java.lang.String attributeName)
dataobject
- attributeName
-
public boolean isKeyAttribute(commonj.sdo.DataObject dataobject, java.lang.String attributeName)
dataobject
- the SDODataObject who uses SDOValueStoreattributeName
- the name of the attribute
true
if the attribute of the view object is one of the key attributes;
false
otherwise.public boolean isEntityBasedViewRow(Row row)
Row
- object
true
if the row object is a view row based on an Entity Object;
false
otherwise.public boolean isHistoryAttribute(commonj.sdo.DataObject dataobject, java.lang.String attributeName)
dataobject
- the SDODataObject who uses SDOValueStoreattributeName
- the name of the attribute
true
if the attribute of the view object is one of the history attributes;
false
otherwise.public ViewObject getChildViewObject(ViewObject viewObject, java.lang.String attributeName)
viewObject
- attributeName
-
public void passdownFKReferece(ViewObject viewObject, java.lang.String attributeName, commonj.sdo.DataObject parent, java.util.List<commonj.sdo.DataObject> children)
viewObject
- the parent viewObjectattributeName
- accessor name to get the childrenparent
- parent dataobjectchildren
- child dataobjectspublic void passdownFKReferece(ViewObject viewObject, java.lang.String attributeName, commonj.sdo.DataObject parent, commonj.sdo.DataObject child)
public java.util.HashMap getRefreshableAttributeMap(Row row)
Note: This method only returns attributes with Refresh After Insert or Refresh After Update properties; it does not include history attributes.
row
- a row
public java.util.HashMap getRefreshableAttributeMap(Row row, boolean getHistory)
If getHistory
is set, also include the history attributes,
whose values are updated by the entity object in the post cycle.
row
- a rowgetHistory
- includes history attributes in the returned list
public static boolean isHistoryAttribute(AttributeDefImpl attrDef)
attrDef
- an attribute definition
true
if the attribute is a History Column;
false
otherwise.public static boolean hasRetrievedOnCreateKeyAttrs(ViewObject viewObject)
viewObject
- the view object
true
if there is at least one key attribute is marked as "refresh on create";
false
otherwise.public static boolean hasRetrievedOnCreateAttrs(ViewObject viewObject)
viewObject
- the view object
true
if there is at least one attribute is marked as "refresh on create", or a History Column;
false
otherwise.public static boolean hasRetrievedOnUpdateKeyAttrs(ViewObject viewObject)
viewObject
- the view object
true
if there is at least one key attribute is marked as "refresh on update";
false
otherwise.public static boolean hasRetrievedOnUpdateAttrs(ViewObject viewObject)
viewObject
- the view object
true
if there is at least one attribute is marked as "refresh on update", or a History Column;
false
otherwise.public boolean isComposition(ViewObject viewObject, java.lang.String attributeName)
viewObject
- attributeName
-
public java.lang.String getCompositionName(ViewObject viewObject, java.lang.String attributeName)
public java.lang.String[] getAlternateKeyNames(ViewObject viewObject)
public Key getAlternateKeyValue(ViewObject viewObject, java.lang.String altKeyName, commonj.sdo.DataObject dataObject)
viewObject
- altKeyName
- dataObject
-
public void copyDataObject(commonj.sdo.DataObject source, commonj.sdo.DataObject dest)
source
- dest
- public Key buildKeyValues(commonj.sdo.DataObject dataObject, ViewObject viewObject)
dataObject
- viewObject
-
public void populateKeyProperties(commonj.sdo.DataObject dataObject, ViewObject viewObject, Row viewRow)
public void setChildProperty(commonj.sdo.DataObject parentDataObject, commonj.sdo.DataObject childDataObject, commonj.sdo.Property property)
public void setDataTypeProperties(commonj.sdo.DataObject source, commonj.sdo.DataObject dest)
public AttributeList getInitAttributeList(ViewObjectImpl viewobject, commonj.sdo.DataObject source)
public AttributeList getAttributeList(ViewObjectImpl viewobject, commonj.sdo.DataObject source)
public java.lang.String getMimeType(commonj.sdo.DataObject source, commonj.sdo.Property property, java.lang.Object value)
public java.lang.String[] getSelectedAttributes(commonj.sdo.Type sdotype, FindCriteria findCriteria, ViewObjectImpl viewObject)
sdotype
- The type of the SDO dataobject mapped to the viewObjectfindCriteria
- FindCriteria defined as part of find() operation.viewObject
- The instance of ViewObject
public void resetSelectedAttributes(ViewObject viewobject, commonj.sdo.Type sdotype, FindCriteria findCriteria)
public static commonj.sdo.DataObject getReturnObject(commonj.sdo.DataObject source, java.lang.String returnMode)
public Row getRowByKey(Key key, java.lang.String keyName, ViewObject viewObject, RowSet parentRowSet)
public Row getRowByKeyOrAltKey(ViewObject viewObject, RowSet parentRowSet, commonj.sdo.DataObject source)
public Row getRow(Key key, java.lang.String keyName, ViewObject viewObject)
key
- viewObject
-
public Row getRow(Key key, java.lang.String keyName, RowSet rowSet)
key
- rowSet
-
public ViewCriteria convertFindCriteria(FindCriteria findCriteria, ViewObject viewObject, java.lang.String vcName)
public void convertViewCriteria(ViewCriteria viewCriteria, ViewCriteria vc)
public java.lang.String applyFindCriteria(FindCriteria findCriteria, ViewObject viewObject, java.lang.String vcName)
public AttributeList getParentAttributeList(ViewObject viewObject, ViewRowImpl row, java.lang.String attributeName)
public ServiceException constructServiceException(java.lang.String errorCode, java.lang.Object[] params, commonj.sdo.DataObject source)
public Row[] findRows(FindCriteria findCriteria, ViewObject viewObject)
public int getFindCriteriaFetchSize(FindCriteria findCriteria)
public void unsetAppliedCriteria(ViewObject viewObject, java.lang.String vcName)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |