public class ViewDefImpl extends RowDef implements StructureDef, ViewCriteriaResolver, ViewDef, ViewCriteriaManagerOwner, CategoryManagerOwner, ViewCriteriaClauseBuilder
A View Def can be created either through XML loading or programmatically. For the former, the client is expected to generate the XML file from design-time and make the file accessible from the classpath. When the client asks MetaObjectManager for the View Def, it finds the XML file, opens it, parses it, and builds a View Def from it.
When creating a View Def programmatically, the client is expected to start with
ViewDefImpl viewDef = new ViewDefImpl("MyViewDef");
where "MyViewDef" is the name by which the View Def will identified
by MetaObjectManager. This is the name that the client should pass
when an API requires a View Def name, e.g., the defName
parameter to
.
ApplicationModule.createViewObject(String, String)
After instantiating the View Def, the client adds entity
usages, attributes, etc. Then, he must resolve the definition
object through and
regsiter it with MetaObjectManager through
resolveDefObject(). For a View Def
created from an XML file, the client does not need to call
these methods, as the framework calls them itself.
RowDef.registerDefObject()
Here is an example code snippet:
ViewDefImpl viewDef = new ViewDefImpl("MyViewDef");
viewDef.addEntityUsage("MyEmpUsage", "testp.kava.VO3.si03mt.Emp",
false); // false means it's not refOnly
viewDef.setComponentClass(null); // take the default ViewObjectImpl
viewDef.setRowClass(null); // take the default ViewRowImpl
viewDef.setSelectClause("EmpUsage.EMPNO, EmpUsage.ENAME, EmpUsage.JOB, EmpUsage.DEPTNO");
viewDef.setFromClause("EMP EmpUsage");
viewDef.addEntityAttribute("MyEmpNum", "MyEmpUsage", "EmpNum", true); // true is for persistent
viewDef.addEntityAttribute("MyEmpName", "MyEmpUsage", "EmpName", true);
viewDef.addEntityAttribute("MyEmpJob", "MyEmpUsage", "EmpJob", true);
viewDef.addEntityAttribute("MyEmpDeptNum", "MyEmpUsage", "EmpDeptNum", true);
viewDef.resolveDefObject();
viewDef.registerDefObject();
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewDefImpl.AutoRefreshMode |
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType| Modifier and Type | Field and Description |
|---|---|
static int |
CLAUSE_ADDITIVE |
static int |
CLAUSE_GENERATE_RT |
static java.lang.String |
COMPOSITE_VIEW_OBJECT |
static java.lang.String |
COMPVO_BASE_VIEW_QUERIES_INLINED |
static int |
MAP_SOURCE_COLLECTION |
static int |
MAP_SOURCE_ROW |
static byte |
PASSIVATE_DEFAULT |
static byte |
PASSIVATE_DISABLED |
static byte |
PASSIVATE_TRANISENTS_TOO |
mAliasName, mBindingStylemComponentClass, PERSMERGED_BASE_PACKAGEmEditedProperties, mEditedPropertyExprsDEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, DEF_SCOPE_USER, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAPmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXFULL_OUTER_JOIN_TYPE, INNER_JOIN_TYPE, LEFT_OUTER_JOIN_TYPE, NONE_JOIN_TYPE, RIGHT_OUTER_JOIN_TYPEXML_STATEMENT| Constructor and Description |
|---|
ViewDefImpl()
Constructs a ViewDefImpl.
|
ViewDefImpl(int defScope,
java.lang.String name) |
ViewDefImpl(int defScope,
java.lang.String name,
java.lang.String baseViewDefName) |
ViewDefImpl(java.lang.String name)
Constructs a ViewDefImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllEntityAttributes(java.lang.String entityUsageName) |
void |
addAllRowAttributes(java.lang.String rowRefName) |
void |
addApplyViewCriteriaNames(java.lang.String rowRefName,
java.lang.String[] applyVCNames) |
AttributeDefImpl |
addEntityAttribute(java.lang.String attrName,
java.lang.String entityUsageName,
java.lang.String entityAttrName,
boolean isPersistent)
Adds the named attribute to the view definition.
|
AttributeDefImpl |
addEntityAttribute(java.lang.String attrName,
java.lang.String entityUsageName,
java.lang.String entityAttrName,
byte updateable,
boolean isQueriable,
boolean isPersistent) |
void |
addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly)
Deprecated.
since 9.0.3, use addEntityUsage() that takes readOnly flag as well.
|
void |
addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
boolean readOnly) |
void |
addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
boolean readOnly,
boolean deleteParticipant,
java.lang.String assocName,
java.lang.String assocEndName,
java.lang.String srcUsageName,
java.lang.String joinType)
Adds an Entity Usage to the View Object Definition
|
void |
addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
boolean readOnly,
java.lang.String assocName,
java.lang.String assocEndName,
java.lang.String srcUsageName) |
void |
addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
java.lang.String assocName,
java.lang.String assocEndName,
java.lang.String srcUsageName)
Deprecated.
since 9.0.3, use addEntityUsage() that takes readOnly flag as well.
|
void |
addListBindingDef(ListBindingDef cld) |
void |
addOperation(OperationDefinitionImpl opDef)
For internal framework use only.
|
AttributeDef |
addRowAttribute(java.lang.String attrName,
java.lang.String rowRefName,
java.lang.String baseAttrName) |
void |
addRowOperation(OperationDefinitionImpl opDef)
For internal framework use only.
|
OperationDefinitionImpl |
addRowScriptOperation(java.lang.String id,
java.lang.String name,
java.lang.String returnType,
java.util.LinkedHashMap<java.lang.String,java.lang.String> params,
java.lang.String body)
For internal framework use only.
|
AttributeDefImpl |
addRowSetViewAttribute(java.lang.String attrName,
java.lang.String expression,
java.lang.Class javaType) |
OperationDefinitionImpl |
addScriptOperation(java.lang.String id,
java.lang.String name,
java.lang.String returnType,
java.util.LinkedHashMap<java.lang.String,java.lang.String> params,
java.lang.String body)
For internal framework use only.
|
OperationDefinitionImpl |
addScriptRowOperation(java.lang.String id,
java.lang.String name,
java.lang.String returnType,
java.util.LinkedHashMap<java.lang.String,java.lang.String> params,
java.lang.String body)
For internal framework use only.
|
AttributeDefImpl |
addViewAttribute(java.lang.String attrName,
java.lang.String expression,
java.lang.Class javaType) |
ViewAttributeDefImpl |
addViewLinkAccessor(java.lang.String accName,
java.lang.String viewLinkName,
java.lang.Class javaType) |
ViewAttributeDefImpl |
addViewLinkAccessor(java.lang.String accName,
java.lang.String viewLinkName,
java.lang.Class javaType,
boolean isReversed) |
void |
addViewObjectUsage(java.lang.String usageName,
ViewObject vo) |
void |
addViewObjectUsage(java.lang.String usageName,
ViewObject vo,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName) |
void |
addViewUsage(java.lang.String usageName,
java.lang.String viewDefName) |
void |
addViewUsage(java.lang.String usageName,
java.lang.String viewDefName,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName) |
java.lang.String |
buildDefaultFrom()
Generates a "from" clause based on the entity references
in this View Definition.
|
java.lang.String |
buildDefaultFrom(AttributeDef[] attrDefs,
SQLBuilder builder,
BaseViewCriteriaManagerImpl vcManager) |
java.lang.String |
buildDefaultFrom(SQLBuilder builder)
Generates a "from" clause based on the entity references
in this View Definition.
|
java.lang.String |
buildDefaultFromAttrs(AttributeDef[] attrDefs,
AttributeDef[] forcedAttrDefs,
java.util.List addEntRefs,
SQLBuilder builder,
BaseViewCriteriaManagerImpl vcManager) |
static java.lang.String |
buildDefaultSelect(AttributeDef[] attrDefs) |
static java.lang.String |
buildDefaultSelect(AttributeDef[] attrDefs,
AttributeDef[] forcedSelectAttrs) |
java.lang.String |
buildSubquery(AttributeDef[] attrsToSelect,
java.lang.String whereClause,
AttributeDef accessor,
ViewCriteria nestedVC) |
java.lang.String |
buildSubqueryFromClauses(java.lang.String selClause,
java.lang.String fromClause,
java.lang.String whereClause,
int subQueryLevel,
java.lang.Object oSqlBuilder) |
CriteriaClauses |
buildViewCriteriaClauses(ViewCriteria vc) |
void |
checkStructWithOld() |
protected KeyDef |
createAltKey(java.lang.String keyName,
int keyIndex,
java.lang.String[] components) |
protected ViewAttributeDefImpl |
createAttributeDef() |
protected ViewAttributeDefImpl |
createAttributeDef(java.lang.String className) |
static ViewDefImpl |
createCompositeViewDef(int defScope,
java.lang.String name) |
ViewCriteria |
createViewCriteria() |
static ViewDefImpl |
createViewDef(int defScope,
java.lang.String defClassName) |
void |
criteriaChanged(ViewCriteria vc) |
void |
doAddViewUsage(java.lang.String usageName,
java.lang.String viewDefName,
ViewObject vo,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName) |
ExprCodeSource |
editCodeSource(ExprCodeSource codeSource)
Notify that ComponentOperationsManager that the client expects to
edit the CodeSource.
|
CategoryManager |
ensureCategoryManager()
Internal use only.
|
ExprCodeSource |
ensureCodeSource(ExprDef exprDef)
Ensure a named code source in the operations manager.
|
AttributeDef |
findAttrDefByEntAttrDef(AttributeDef entAttrDef)
Get an attribute definition for an entity attribute definition.
|
AttributeDef |
findAttributeDef(java.lang.String attrName)
Get an attribute definition by the attribute name.
|
static ViewDefImpl |
findDefObject(java.lang.String viewDefName)
Finds the ViewDefImpl from the list of Meta Objects.
|
static ViewDefImpl |
findDefObjectNoSub(java.lang.String viewDefName)
Finds the named View Object definition.
|
OperationDefinitionImpl |
findOperationDefinition(java.lang.String id)
For internal framework use only.
|
OperationDefinitionImpl |
findRowOperationDefinition(java.lang.String id)
For internal framework use only.
|
StructureDef |
findStructureDefByName(java.lang.String structDefFullName) |
ViewDef |
findViewDefByName(java.lang.String viewDefFullName) |
ViewLinkDefImpl |
findViewLinkDefImpl(ViewAttributeDefImpl attr) |
protected void |
finishedLoading() |
byte |
getAccessMode()
Get the access mode for rows from the query.
|
static java.lang.String[] |
getAllDefNames() |
java.lang.String[] |
getAllViewCriteriaNames() |
ViewCriteria[] |
getAllViewCriterias() |
AttributeDefImpl[] |
getAltKeyAttrDefs(int keyIndex) |
AttributeDefImpl[] |
getAltKeyAttrDefs(java.lang.String name) |
int |
getAttributeCount()
Returns the number of defined attributes.
|
AttributeDef |
getAttributeDef(int index)
Gets an attribute definition, given its index.
|
protected AttributeDefImpl[] |
getAttributeDefImpls()
Gets an array of attribute definitions in this View Def.
|
AttributeDef[] |
getAttributeDefs()
Gets an array of attribute definitions in this View Def.
|
int |
getAttributeIndexOf(java.lang.String name)
Finds the index (0-based) of the named attribute.
|
ViewDefImpl.AutoRefreshMode |
getAutoRefreshMode() |
java.lang.Class |
getBaseComponentClass() |
int |
getCalculatedAttributeCount() |
CategoryManager |
getCategoryManager()
Internal use only.
|
java.lang.String |
getClientProxyClassName() |
int |
getCollectionStorageAttributeCount() |
AttributeDef[] |
getCollectionStorageAttributeDefs() |
java.lang.String |
getColumnNameForQuery(int index) |
int |
getColumns() |
java.lang.Class |
getComponentClass() |
java.lang.String |
getComponentInterfaceName() |
protected ComponentOperations |
getComponentOperations()
For internal framework use only.
|
java.util.HashMap<java.lang.String,java.util.HashMap> |
getCtrlHints(java.util.List<java.lang.String> attrNames,
java.lang.String localeName,
ViewRowImpl viewRow) |
SortCriteria[] |
getDBSortCriteria() |
static byte |
getDefaultFetchMode() |
ViewCriteria |
getDefaultViewCriteria() |
int |
getDefTypeId() |
java.lang.String |
getDefXMLElementTag() |
java.util.HashMap<java.lang.String,java.util.HashMap> |
getDfltCtrlHints(java.util.List<java.lang.String> attrNames,
java.lang.String localeName) |
protected java.lang.String |
getEffectiveClientProxyClassName() |
protected java.lang.String |
getEffectiveComponentInterfaceName() |
AttributeDefImpl |
getEffectiveDateTransientAttr()
Retuns the Attribute definition that stores the Effective Date
value in a row.
|
protected AttributeDefImpl |
getEffectiveDateTransientAttrInternal() |
protected java.lang.String |
getEffectiveDateTransientAttrName() |
protected java.lang.String |
getEffectiveRowClientProxyClassName() |
java.lang.String |
getEJBAppProviderURL() |
java.lang.Object |
getEJBHome() |
java.lang.String |
getEJBHomeJNDIName() |
protected AttributeDefImpl[] |
getEntityDiscrColumns() |
int |
getEntityIndex(EntityReference entityRef) |
protected EntityReference |
getEntityReference(int index) |
EntityReference |
getEntityReference(java.lang.String name)
Returns the
EntityReference of the given
name. |
protected EntityReference[] |
getEntityReferences()
Returns an array of
EntityReference's
upon which this ViewObject is based. |
protected EntityReference[] |
getEntityReferences(AttributeDef[] attrDefs)
Returns an array of
EntityReference's
upon which this ViewObject is based. |
EntityReference[] |
getEntityRefsParentOrder() |
EntityReference |
getEntityUsage(java.lang.String name) |
EntityReference[] |
getEntityUsages() |
byte |
getFetchMode()
Get the fetch mode for rows from the query.
|
short |
getFetchSize()
Get the size of the fetch.
|
java.lang.String |
getFromClause()
Returns the from clause associated with this View Definition.
|
java.lang.String |
getFromClause(SQLBuilder builder)
Returns the from clause associated with this View Definition.
|
int |
getFromClauseFlags() |
java.lang.String |
getHintValue(LocaleContext locale,
java.lang.String sHintName) |
int |
getIterMode() |
ViewDefImpl |
getListBindingViewDef() |
int |
getMaxActiveNodes() |
static int |
getMaxAttrConst(java.lang.String viewDefName) |
int |
getMaxFetchSize() |
int |
getMaxRowsPerNode() |
OperationDefinitionsImpl |
getOperationDefinitions()
Return the operation definitions.
|
java.lang.String |
getOrderByClause() |
protected AttributeDefImpl[] |
getPrimaryKeys() |
java.lang.Object |
getProperty(java.lang.String hintName)
Retrieves the specified property, if it exists.
|
java.lang.String |
getQuery()
Returns the query set via setQuery or via expert mode query at designtime.
|
java.lang.String |
getQueryHint() |
int |
getRangePagingCacheFactor()
Get the range paging cache factor.
|
int |
getRangeSize() |
AttributeDef[] |
getRawAttributeDefs(boolean procAccessors) |
ViewCriteria |
getReqdVC() |
java.lang.Class |
getRowClass() |
java.lang.String |
getRowClientProxyClassName() |
java.lang.String |
getRowInterfaceName() |
java.lang.String |
getRowMatch() |
OperationDefinitionsImpl |
getRowOperationDefinitions()
Return the row operation definitions.
|
int |
getRows() |
java.lang.String |
getSdoName() |
java.lang.String |
getSdoNameSpace() |
java.lang.String |
getSDOPackageName() |
java.lang.String |
getSelectClause() |
int |
getSelectClauseFlags() |
java.util.List<java.lang.String> |
getSIFContextKey() |
protected java.lang.String |
getStaticListCellId(java.lang.String voClassPath,
int row,
int col) |
java.lang.String |
getStoredProcedureName() |
int |
getSubqueryLevel() |
protected VariableValueManager[] |
getVarMgrParents() |
ViewCriteria |
getViewCriteria(java.lang.String name) |
ViewCriteriaManager |
getViewCriteriaManager() |
AttributeDefImpl[] |
getViewKeyAttrDefs(ViewKeyDef viewKeyDef) |
java.lang.String |
getWhereClause() |
protected StmtWithBindVars |
getWhereClause(AttributeDef[] attrDefs,
int noBindVars,
SQLBuilder builder) |
java.lang.String |
getWhereClause(SQLBuilder builder) |
int |
getWhereClauseFlags() |
java.lang.String |
getXMLElementTag()
Returns a piece of static info for the type of object this is invoked
upon.
|
java.lang.String |
getXMLRowElementTag() |
boolean |
hasDataSecurity() |
protected boolean |
hasPrimaryEntity() |
boolean |
hasQuery() |
boolean |
hasVariables()
Returns a flag indicating whether this object has
Variables or not.
|
boolean |
isAutoRefreshEnabled() |
boolean |
isComposite() |
boolean |
isDupBaseDef() |
boolean |
isEffectiveDated()
Tests if the row definition corresponds to an Effective Dated
object.
|
boolean |
isFinderView() |
boolean |
isFindViewDefOnActivation() |
boolean |
isFullSql() |
boolean |
isKeyNameForPK(java.lang.String name) |
boolean |
isManageRowsByKey() |
boolean |
isPassivationEnabled() |
boolean |
isPLSQLView()
A View Object is PLSQL view if it is defined as PL/SQL view object.
|
boolean |
isPullCustomizationsFromPrimaryVOs() |
boolean |
isQueryThruEntity() |
boolean |
isReadOnly()
A view is readonly if it does not have primary keys or all its
entity references are reference-only.
|
boolean |
isRuntimeSQLGeneration() |
boolean |
isSdoDirty() |
boolean |
isSdoGen() |
boolean |
isSDOGeneric() |
boolean |
isSelectAllAttributes() |
boolean |
isServiceWarningsEnabled() |
boolean |
isStatic()
A View Object is static if it is defined as static.
|
boolean |
isUseGlueCode() |
boolean |
isViewLinkAccessorRetained() |
protected void |
loadCustomDef(DefElement xmlElement) |
protected static void |
loadFromXML(DefElement xmlElement,
oracle.jbo.server.RemotableCompDef defObj) |
protected void |
loadOperationDefinitions(DefElement xmlElement)
For internal framework use only.
|
void |
loadXMLContentsNoResolve(DefElement xmlElement,
java.lang.String fullName) |
AttributeDef |
lookupAttributeDef(java.lang.String attrName)
Gets an attribute definition by name.
|
ExprCodeSource |
lookupCodeSource(java.lang.String name)
For internal framework use only.
|
OperationDefinitionImpl |
lookupOperationDefinition(java.lang.String id)
For internal framework use only.
|
AttributeDef |
lookupRawAttributeDef(java.lang.String attrName,
boolean procAccessors) |
OperationDefinitionImpl |
lookupRowOperationDefinition(java.lang.String id)
For internal framework use only.
|
OperationDefinitionImpl |
lookupRowOperationDefinition(java.lang.String name,
java.lang.String returnType,
java.lang.Class[] params) |
ViewAccessorDef |
lookupViewAccessorDef(java.lang.String name) |
void |
putPDefViewCriteria(java.lang.String name,
PDefViewCriteria pdvcriteria) |
void |
putViewCriteria(java.lang.String name,
ViewCriteria criteria) |
void |
removeOperation(OperationDefinitionImpl opDef)
For internal framework use only.
|
void |
removeRowOperation(OperationDefinitionImpl opDef)
For internal framework use only.
|
protected void |
resetDefResolved() |
void |
resolveDefObject()
Resolves this View Def.
|
protected void |
resolveReferences()
Since this gets called from lazyload
|
void |
setAccessMode(byte accessMode)
Set the access mode for rows from the query.
|
void |
setAutoRefresh(boolean flag) |
void |
setAutoRefreshMode(ViewDefImpl.AutoRefreshMode mode) |
void |
setClauseGenForRowMatch(boolean isForRowMatch) |
void |
setClientProxyClassName(java.lang.String name) |
void |
setColumns(int i) |
void |
setComponentClass(java.lang.Class refClass) |
void |
setComponentInterfaceName(java.lang.String interfaceName) |
void |
setDBSortCriteria(SortCriteria[] sortCriteria) |
protected void |
setDefForComponent(ComponentObjectImpl comp) |
void |
setDupBaseDef(boolean val) |
void |
setEffectiveDated(boolean b) |
protected void |
setEntityDiscrColumns(AttributeDefImpl[] entityDiscrCols) |
void |
setFetchMode(byte fetchMode)
Set the fetch mode for rows from the query.
|
void |
setFetchSize(short size)
Set the size of the fetch.
|
void |
setFindViewDefOnActivation(boolean findViewDefOnActivation) |
void |
setFromClause(java.lang.String fromClause) |
void |
setFromClauseFlags(int flags) |
void |
setFullSql(boolean b) |
void |
setIterMode(int iterMode) |
void |
setJoinType(java.lang.String usageName,
int joinType) |
void |
setMaxActiveNodes(int maxActiveNodes) |
void |
setMaxFetchSize(int size)
Set the maximum number of rows to fetch during query processing.
|
void |
setMaxRowsPerNode(int maxRowsPerNode) |
void |
setOrderByClause(java.lang.String orderByClause) |
protected void |
setPassivationMode(byte passivationMode) |
void |
setQuery(java.lang.String query)
Sets the string for a user-defined query.
|
void |
setQueryHint(java.lang.String queryHint) |
void |
setRangePagingCacheFactor(int factor)
Set the range paging cache factor.
|
void |
setRangeSize(int r) |
void |
setReqdVC(ViewCriteria vc) |
void |
setRowClass(java.lang.Class rowClass) |
protected void |
setRowClientProxyClassName(java.lang.String name) |
protected void |
setRowInterfaceName(java.lang.String name) |
void |
setRowMatch(java.lang.String rowMatch) |
void |
setRows(int i) |
void |
setSdoDirty(boolean b) |
void |
setSdoGen(boolean value) |
void |
setSdoName(java.lang.String value)
Sets the SDO name of the service-enabled view object.
|
void |
setSdoNameSpace(java.lang.String value) |
void |
setSelectAllAttributes(boolean val) |
void |
setSelectClause(java.lang.String selectClause) |
void |
setSelectClauseFlags(int flags) |
void |
setServiceWarnings(boolean value) |
protected void |
setStoredProcedureName(java.lang.String name) |
void |
setSubqueryLevel(int l) |
void |
setupForLov(ViewObjectImpl vo)
Deprecated.
|
void |
setUseGlueCode(boolean b) |
void |
setViewLinkAccessorRetained(boolean b) |
void |
setWhereClause(java.lang.String whereClause) |
void |
setWhereClauseFlags(int flags) |
boolean |
shouldPutJoinConstraintInWhereClause() |
protected void |
unsetDefForComponent(ComponentObjectImpl comp) |
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
|
addAltKey, addExtendedDefObject, addForwardDependency, addForwardDependency, addListBindingDef, addValidator, addViewAccessorDef, appendBindingNameForAttr, appendBindingSpec, appendBindingSpec, createDef, discrValuesQualify, findAltKeyDef, findAttrDefIncludingPDef, findDefForDiscrValues, findDefForDiscrValues2, findListBindingDef, findViewAccessorDef, getAliasName, getAllProperties, getAltKeyCount, getAltKeyDef, getAltKeyIndex, getAltKeyNames, getBackwardDependencies, getBackwardDependencyAttributes, getBindingStyle, getDataSourceDef, getDefFullName, getDefName, getDiscrColumns, getExprVarVal, getExprVarValType, getForwardDependencies, getForwardDependencyAttributes, getGlobalOperations, getListBindingDefs, getValidators, getViewAccessorDefs, isComponentDefinition, loadListBindings, loadViewAccessor, loadViewAccessors, lookupAltKeyDef, lookupAttrDefIncludingPDef, lookupExprDef, lookupListBindingDef, lookupValidator, registerDefObject, removeAltKey, removeListBindingDef, removeViewAccessorDef, resolvePropertyRaw, setAliasName, setBindingStyle, setDiscrColumns, setExprVarVal, setThrowOnListBindingMismatch, throwOnListBindingMismatch, verifyExtendedDefObjects, writeXMLContentsderegisterSessionObject, getEditVersionsAsString, getInheritPersonalizationValue, getMajorVersion, getMessageBundleClass, getMinorVersion, getMsgBundleDef, getPackageDef, getPackageName, getPersDef, getPersDefNoUpdateCheck, getPersMergedDef, getResourceBundleDef, getResourcePrefix, isDynamic, isInheritPersonalization, loadDefVersions, loadResourceBundle, loadXMLContents, registerSessionDefObject, setInheritPersonalization, setInheritPersonalizationStrValue, setMessageBundleClass, setResourceBundleDefapplyDiffChildren, diffChildren, ensureVariableManager, getAdfmConfigStartupProperty, getBaseDefObject, getBooleanAdfmConfigProperty, getDefXMLNameSpace, getVariableManager, isDeprecated, isFromCustomization, loadProperties, loadVariables, setBaseDefObject, setBaseDefObject, setName, setParentaddDefImport, addSavedDocName, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, applyDiffContents, beginDiffObjects, checkEditable, checkStructWithOld, close, createFromXML, deregisterDefObject, diffContents, diffObjects, ensureDifferDetails, findDefImport, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefTypeName, getDefWriter, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getMergeableFullName, getMergeableName, getOrigObject, getPropertyMap, getSavedDocNames, getSessionSyncLock, getSubstitutedNames, getSyncLock, guaranteePath, hasExtendedDefObjects, includeCustomizationLayerInfo, isCustomizationEnabled, isCustomizationEnabled, isDirty, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, loadDefObject, lockDefinitionContext, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, unlockDefinitionContext, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeHeaderForNew, writeObject, writeVersionaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, setDefScope, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyNamesSet, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterDefObject, saveXMLContents, setDefaultBaseDir, writeXMLContentsgetDefFullName, getDefName, getFullName, getNamegetName, getProperty, getResourceBundleDefgetFullName, getName, getResourceBundleDefgetFullNamegetNamegetFullNamepublic static final int CLAUSE_GENERATE_RT
public static final int CLAUSE_ADDITIVE
public static final byte PASSIVATE_DEFAULT
public static final byte PASSIVATE_TRANISENTS_TOO
public static final byte PASSIVATE_DISABLED
public static final java.lang.String COMPOSITE_VIEW_OBJECT
public static final java.lang.String COMPVO_BASE_VIEW_QUERIES_INLINED
public static final int MAP_SOURCE_ROW
public static final int MAP_SOURCE_COLLECTION
public ViewDefImpl()
public ViewDefImpl(int defScope,
java.lang.String name)
public ViewDefImpl(java.lang.String name)
name - name by which this View Def will be registered in MetaObjectManager.public ViewDefImpl(int defScope,
java.lang.String name,
java.lang.String baseViewDefName)
public static byte getDefaultFetchMode()
public static java.lang.String[] getAllDefNames()
public static ViewDefImpl findDefObjectNoSub(java.lang.String viewDefName)
findDefObject, except that it
does not observe meta-object substitution.viewObjectName - The fully qualified Name of the ViewDefImpl.MetaObjectManagerpublic static ViewDefImpl findDefObject(java.lang.String viewDefName)
viewDefName - The fully qualified Name of the ViewDefImpl.MetaObjectManagerpublic static ViewDefImpl createCompositeViewDef(int defScope, java.lang.String name)
public static int getMaxAttrConst(java.lang.String viewDefName)
public boolean isComposite()
public boolean isDupBaseDef()
public void setDupBaseDef(boolean val)
protected AttributeDefImpl[] getAttributeDefImpls()
getAttributeDefImpls in class RowDefpublic AttributeDef[] getAttributeDefs()
getAttributeDefs in interface StructureDefgetAttributeDefs in class RowDefpublic AttributeDef[] getRawAttributeDefs(boolean procAccessors)
getRawAttributeDefs in class RowDefpublic void checkStructWithOld()
checkStructWithOld in interface ViewDefpublic AttributeDef findAttributeDef(java.lang.String attrName)
findAttributeDef in interface StructureDeffindAttributeDef in class RowDefattrName - name of the attribute.NoDefException - thrown if the named atribute
is not found.public AttributeDef findAttrDefByEntAttrDef(AttributeDef entAttrDef)
entAttrDef - entity attribute defnull if not found.public AttributeDef lookupAttributeDef(java.lang.String attrName)
lookupAttributeDef in interface StructureDeflookupAttributeDef in class RowDefattrName - the name of an AttributeDef.null if not found.public AttributeDef lookupRawAttributeDef(java.lang.String attrName, boolean procAccessors)
lookupRawAttributeDef in interface AttributeDependencyManagerlookupRawAttributeDef in class RowDefpublic int getAttributeIndexOf(java.lang.String name)
StructureDefgetAttributeIndexOf in interface StructureDefgetAttributeIndexOf in class RowDefname - the attribute's name.0 to getAttributeCount() - 1.
If the named attribute is not found, it returns -1.public EntityReference[] getEntityUsages()
protected EntityReference[] getEntityReferences()
EntityReference's
upon which this ViewObject is based. Each EntityReference
refers to EntityDef that describes the Entity.EntityReference array.protected EntityReference[] getEntityReferences(AttributeDef[] attrDefs)
EntityReference's
upon which this ViewObject is based. Each EntityReference
refers to EntityDef that describes the Entity.
Only return the EntityDef's that are not hiddenEntityReference array.public EntityReference[] getEntityRefsParentOrder()
public boolean isManageRowsByKey()
public EntityReference getEntityUsage(java.lang.String name)
public EntityReference getEntityReference(java.lang.String name)
EntityReference of the given
name. name is the Entity usage name
of this ViewObject's Entity base.
If no matching EntityReference is found, it
returns null.
name - the Entity usage name.EntityReference. null if
no matching Entity usage is found.protected EntityReference getEntityReference(int index)
protected AttributeDefImpl[] getEntityDiscrColumns()
protected void setEntityDiscrColumns(AttributeDefImpl[] entityDiscrCols)
public java.lang.String buildSubqueryFromClauses(java.lang.String selClause,
java.lang.String fromClause,
java.lang.String whereClause,
int subQueryLevel,
java.lang.Object oSqlBuilder)
buildSubqueryFromClauses in interface ViewCriteriaClauseBuilderpublic java.lang.String getQuery()
public void setQuery(java.lang.String query)
isFullSql is set to true
if this call is used to set a non-null value.
If the parameter is null, then the isFullSql flag is set
to false, so that the component parts of the SQL can be set
with the setSelectClause(), setFromClause(), and setWhereClause()
methods.query - The sql statement of the query.public void setQueryHint(java.lang.String queryHint)
public java.lang.String getQueryHint()
public void setRowMatch(java.lang.String rowMatch)
public java.lang.String getRowMatch()
public StructureDef findStructureDefByName(java.lang.String structDefFullName)
findStructureDefByName in interface ViewCriteriaResolverpublic ViewDef findViewDefByName(java.lang.String viewDefFullName)
findViewDefByName in interface ViewCriteriaResolverpublic boolean shouldPutJoinConstraintInWhereClause()
shouldPutJoinConstraintInWhereClause in interface ViewCriteriaManagerOwnerpublic ViewCriteriaManager getViewCriteriaManager()
getViewCriteriaManager in interface ViewCriteriaManagerOwnerpublic void criteriaChanged(ViewCriteria vc)
criteriaChanged in interface ViewCriteriaManagerOwnerpublic ViewCriteria getDefaultViewCriteria()
public java.lang.String[] getAllViewCriteriaNames()
public ViewCriteria[] getAllViewCriterias()
public ViewCriteria getViewCriteria(java.lang.String name)
public void putViewCriteria(java.lang.String name,
ViewCriteria criteria)
public void putPDefViewCriteria(java.lang.String name,
PDefViewCriteria pdvcriteria)
public int getEntityIndex(EntityReference entityRef)
public int getCalculatedAttributeCount()
public int getCollectionStorageAttributeCount()
public AttributeDef[] getCollectionStorageAttributeDefs()
protected AttributeDefImpl[] getPrimaryKeys()
getPrimaryKeys in class RowDefpublic boolean isKeyNameForPK(java.lang.String name)
public AttributeDefImpl[] getAltKeyAttrDefs(java.lang.String name)
getAltKeyAttrDefs in class RowDefpublic AttributeDefImpl[] getAltKeyAttrDefs(int keyIndex)
getAltKeyAttrDefs in class RowDefpublic int getAttributeCount()
RowDefgetAttributeCount in interface StructureDefgetAttributeCount in class RowDefpublic AttributeDef getAttributeDef(int index)
RowDefgetAttributeDef in interface StructureDefgetAttributeDef in class RowDefindex - the index of an AttributeDef, where the leftmost
attribute has index zero.public java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery in interface StructureDefpublic void setRowClass(java.lang.Class rowClass)
rowClass - The Class of the instance.public java.lang.Class getRowClass()
getRowClass in class RowDefpublic java.lang.String getRowClientProxyClassName()
protected void setRowClientProxyClassName(java.lang.String name)
public java.lang.String getRowInterfaceName()
protected void setRowInterfaceName(java.lang.String name)
public java.lang.String getStoredProcedureName()
protected void setStoredProcedureName(java.lang.String name)
protected java.lang.String getEffectiveRowClientProxyClassName()
public java.lang.Class getBaseComponentClass()
public int getSelectClauseFlags()
public void setSelectClauseFlags(int flags)
public int getFromClauseFlags()
public void setFromClauseFlags(int flags)
public int getWhereClauseFlags()
public void setWhereClauseFlags(int flags)
public java.lang.String getSelectClause()
public void setSelectClause(java.lang.String selectClause)
selectClause - The SELECT listpublic java.lang.String getFromClause()
setFromClauseFlags(int).
Use the
getFromClause(SQLBuilder)
API if a SQLBuilder is available for the
Database platform that you are working against.public java.lang.String getFromClause(SQLBuilder builder)
setFromClauseFlags(int).builder - The SQLBuilder abstracts the
actual database specific syntax generation.public ViewCriteria getReqdVC()
public void setReqdVC(ViewCriteria vc)
public void setFromClause(java.lang.String fromClause)
fromClause - The FROM clausepublic java.lang.String getWhereClause()
public java.lang.String getWhereClause(SQLBuilder builder)
protected StmtWithBindVars getWhereClause(AttributeDef[] attrDefs, int noBindVars, SQLBuilder builder)
public void setWhereClause(java.lang.String whereClause)
whereClause - The WHERE clausepublic java.lang.String getOrderByClause()
public void setOrderByClause(java.lang.String orderByClause)
setOrderByClause in interface ViewDeforderByClause - The ORDER BY clausepublic int getSubqueryLevel()
getSubqueryLevel in interface ViewCriteriaClauseBuilderpublic void setSubqueryLevel(int l)
setSubqueryLevel in interface ViewCriteriaClauseBuilderpublic void setClauseGenForRowMatch(boolean isForRowMatch)
setClauseGenForRowMatch in interface ViewCriteriaClauseBuilderpublic CriteriaClauses buildViewCriteriaClauses(ViewCriteria vc)
buildViewCriteriaClauses in interface ViewCriteriaClauseBuilderpublic java.lang.String buildSubquery(AttributeDef[] attrsToSelect, java.lang.String whereClause, AttributeDef accessor, ViewCriteria nestedVC)
buildSubquery in interface ViewCriteriaClauseBuilderpublic java.lang.String buildDefaultFrom()
buildDefaultFrom(SQLBuilder)
API if a SQLBuilder is available for the
Database platform that you are working against.public java.lang.String buildDefaultFrom(SQLBuilder builder)
builder - The SQLBuilder abstracts the
actual database specific syntax generation.public java.lang.String buildDefaultFrom(AttributeDef[] attrDefs, SQLBuilder builder, BaseViewCriteriaManagerImpl vcManager)
public java.lang.String buildDefaultFromAttrs(AttributeDef[] attrDefs, AttributeDef[] forcedAttrDefs, java.util.List addEntRefs, SQLBuilder builder, BaseViewCriteriaManagerImpl vcManager)
public byte getFetchMode()
public void setFetchMode(byte fetchMode)
fetchMode - is FETCH_AS_NEEDED, FETCH_ALL or FETCH_DEFAULT.public short getFetchSize()
public void setFetchSize(short size)
size - the size, in rows, of the chunk to fetch.public int getMaxFetchSize()
public void setMaxFetchSize(int size)
size - the number of rows.public boolean isUseGlueCode()
public void setUseGlueCode(boolean b)
public void setMaxRowsPerNode(int maxRowsPerNode)
public int getMaxRowsPerNode()
public void setMaxActiveNodes(int maxActiveNodes)
public int getMaxActiveNodes()
public int getRangeSize()
public void setRangeSize(int r)
public byte getAccessMode()
public void setAccessMode(byte accessMode)
accessMode - is RowSet.SCROLLABLE, RowSet.FORWARD_ONLY,
RowSet.RANGE_PAGING, RowSet.RANGE_PAGING_AUTO_POST, or
RowSet.RANGE_PAGING_INCR.public int getRangePagingCacheFactor()
public void setRangePagingCacheFactor(int factor)
factor - range paging cache factor.protected boolean hasPrimaryEntity()
protected void finishedLoading()
finishedLoading in class DefObjectpublic static ViewDefImpl createViewDef(int defScope, java.lang.String defClassName)
protected void resolveReferences()
resolveReferences in class DefObjectpublic void loadXMLContentsNoResolve(DefElement xmlElement, java.lang.String fullName)
@Concealed protected void setPassivationMode(byte passivationMode)
passivationMode - - Value of this argument must be among
one of these 3 values
ViewDefImpl.PASSIVATE_DEFAULT
ViewDefImpl.PASSIVATE_TRANISENTS_TOO
ViewDefImpl.PASSIVATE_DISABLEDpublic void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class RowDefjos - the Output storage for persistencepublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionjos - the Output storage for persistenceprotected void resetDefResolved()
resetDefResolved in class MetaObjectpublic void resolveDefObject()
This method must be called after the View Def is set up
and before registerDefObject().
resolveDefObject in interface ViewDefprotected KeyDef createAltKey(java.lang.String keyName, int keyIndex, java.lang.String[] components)
createAltKey in class RowDefpublic void addAllEntityAttributes(java.lang.String entityUsageName)
public ViewAttributeDefImpl addViewLinkAccessor(java.lang.String accName, java.lang.String viewLinkName, java.lang.Class javaType)
public ViewAttributeDefImpl addViewLinkAccessor(java.lang.String accName, java.lang.String viewLinkName, java.lang.Class javaType, boolean isReversed)
public AttributeDefImpl addEntityAttribute(java.lang.String attrName, java.lang.String entityUsageName, java.lang.String entityAttrName, boolean isPersistent)
If isPersistent is true, the view object is
to draw the data from its query statement. The underlying entity
attribute may or may not be persistent. In this case, the
attribute must have a valid database table column or expression
in the view object's query statement. If there is a mismatch
between the query statement and the VO attribute definition list,
you may see AttributeLoadException or
DataCreationException.
If the view attribute is marked not persistent and if the underlying
entity attribute is transient, the view attribute will be of the
ATTR_ENTITY_DERIVED kind.
NoDefException - if the entity attribute is not found.@Concealed public AttributeDefImpl addEntityAttribute(java.lang.String attrName, java.lang.String entityUsageName, java.lang.String entityAttrName, byte updateable, boolean isQueriable, boolean isPersistent)
public AttributeDefImpl addRowSetViewAttribute(java.lang.String attrName, java.lang.String expression, java.lang.Class javaType)
public AttributeDefImpl addViewAttribute(java.lang.String attrName, java.lang.String expression, java.lang.Class javaType)
public void addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
java.lang.String assocName,
java.lang.String assocEndName,
java.lang.String srcUsageName)
public void addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
boolean readOnly,
java.lang.String assocName,
java.lang.String assocEndName,
java.lang.String srcUsageName)
addEntityUsage in interface ViewDefpublic void addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
boolean readOnly,
boolean deleteParticipant,
java.lang.String assocName,
java.lang.String assocEndName,
java.lang.String srcUsageName,
java.lang.String joinType)
usageName - The name of the Entity Usage to uniquely identify itentityDefName - The Entity DefinitionreferenceOnly - Flag to indicate if the changes in the primary key of the
base entity brings the rows of this entity with matching foreign
key valuesreadOnly - Flag to indicate if the attribute values could be changeddeleteParticipant - Flag to indicate if this Entity Usage instance is
deleted when the View Row is deletedassocName - The name of the Association between the base entity and this
Entity UsageassocEndName - The Association end that is used to form relationship between
the base entity and this Entity UsagesrcUsageName - The name of the base entity usagejoinType - An optional join type between this entity usage and base entity usagepublic void setJoinType(java.lang.String usageName,
int joinType)
setJoinType in interface ViewDefpublic void addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly)
public void addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
boolean readOnly)
addEntityUsage in interface ViewDefpublic void addViewObjectUsage(java.lang.String usageName,
ViewObject vo)
public void addViewObjectUsage(java.lang.String usageName,
ViewObject vo,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName)
public void addViewUsage(java.lang.String usageName,
java.lang.String viewDefName)
addViewUsage in interface ViewDefpublic void addViewUsage(java.lang.String usageName,
java.lang.String viewDefName,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName)
addViewUsage in interface ViewDefpublic void doAddViewUsage(java.lang.String usageName,
java.lang.String viewDefName,
ViewObject vo,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName)
public AttributeDef addRowAttribute(java.lang.String attrName, java.lang.String rowRefName, java.lang.String baseAttrName)
addRowAttribute in interface ViewDefpublic void addAllRowAttributes(java.lang.String rowRefName)
addAllRowAttributes in interface ViewDefpublic void addApplyViewCriteriaNames(java.lang.String rowRefName,
java.lang.String[] applyVCNames)
public boolean isReadOnly()
public boolean isStatic()
public boolean isRuntimeSQLGeneration()
isRuntimeSQLGeneration in interface ViewCriteriaManagerOwnerpublic void setSelectAllAttributes(boolean val)
public boolean isSelectAllAttributes()
public boolean isPLSQLView()
public ViewCriteria createViewCriteria()
public CategoryManager getCategoryManager()
getCategoryManager in interface CategoryManagerOwnernull if one was not yet initialized.public CategoryManager ensureCategoryManager()
ensureCategoryManager in interface CategoryManagerOwnerprotected java.lang.String getStaticListCellId(java.lang.String voClassPath,
int row,
int col)
public boolean isFullSql()
public void setFullSql(boolean b)
public boolean isQueryThruEntity()
public int getDefTypeId()
getDefTypeId in class DefObjectprotected void setDefForComponent(ComponentObjectImpl comp)
setDefForComponent in class DefObjectprotected void unsetDefForComponent(ComponentObjectImpl comp)
unsetDefForComponent in class DefObjectpublic ViewLinkDefImpl findViewLinkDefImpl(ViewAttributeDefImpl attr)
public final boolean isPassivationEnabled()
public final boolean isFindViewDefOnActivation()
public final void setFindViewDefOnActivation(boolean findViewDefOnActivation)
protected void loadCustomDef(DefElement xmlElement) throws PersistenceException
PersistenceExceptionpublic int getRows()
public void setRows(int i)
public int getColumns()
public void setColumns(int i)
public boolean hasQuery()
public java.lang.String getXMLRowElementTag()
public java.lang.String getXMLElementTag()
PersistentDefinitiongetXMLElementTag in interface PersistentDefinitiongetXMLElementTag in class PersistableDefObjectpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class PersistableDefObjectpublic int getIterMode()
public void setIterMode(int iterMode)
public boolean isViewLinkAccessorRetained()
public void setViewLinkAccessorRetained(boolean b)
public boolean isEffectiveDated()
RowDefisEffectiveDated in class RowDefpublic void setEffectiveDated(boolean b)
public java.lang.String getEJBHomeJNDIName()
public java.lang.String getEJBAppProviderURL()
public boolean isFinderView()
public java.lang.Object getEJBHome()
public void setSdoGen(boolean value)
public boolean isSdoGen()
public void setSdoName(java.lang.String value)
<dot-separated path>.<short name>.
If an unqualified name is passed in, a default SDO package name will be
generated for the view object.value - the SDO name of the service-enabled view objectgetSDOPackageName()public java.lang.String getSdoName()
public void setSdoNameSpace(java.lang.String value)
public java.lang.String getSdoNameSpace()
public void setServiceWarnings(boolean value)
public boolean isServiceWarningsEnabled()
public boolean isSDOGeneric()
public static java.lang.String buildDefaultSelect(AttributeDef[] attrDefs)
public static java.lang.String buildDefaultSelect(AttributeDef[] attrDefs, AttributeDef[] forcedSelectAttrs)
protected VariableValueManager[] getVarMgrParents()
getVarMgrParents in class DefObjectpublic boolean hasVariables()
VariableManagerOwnerBasehasVariables in interface VariableManagerOwnerBasehasVariables in class DefObjectprotected java.lang.String getEffectiveDateTransientAttrName()
public AttributeDefImpl getEffectiveDateTransientAttr()
RowDefgetEffectiveDateTransientAttr in class RowDefprotected AttributeDefImpl getEffectiveDateTransientAttrInternal()
public boolean hasDataSecurity()
hasDataSecurity in class RowDefpublic ViewAccessorDef lookupViewAccessorDef(java.lang.String name)
lookupViewAccessorDef in class RowDefpublic ViewDefImpl getListBindingViewDef()
public void addListBindingDef(ListBindingDef cld)
addListBindingDef in class RowDefpublic void setupForLov(ViewObjectImpl vo)
vo - The view object that owns the view criteriapublic java.lang.String getHintValue(LocaleContext locale, java.lang.String sHintName)
public java.lang.Object getProperty(java.lang.String hintName)
NamedObjectImplgetProperty in class NamedObjectImplhintName - a string to be used as a hash table key.hintName, if any,
otherwise null.public SortCriteria[] getDBSortCriteria()
public void setDBSortCriteria(SortCriteria[] sortCriteria)
public AttributeDefImpl[] getViewKeyAttrDefs(ViewKeyDef viewKeyDef)
public void setAutoRefresh(boolean flag)
public void setAutoRefreshMode(ViewDefImpl.AutoRefreshMode mode)
public boolean isAutoRefreshEnabled()
public ViewDefImpl.AutoRefreshMode getAutoRefreshMode()
public java.util.HashMap<java.lang.String,java.util.HashMap> getDfltCtrlHints(java.util.List<java.lang.String> attrNames,
java.lang.String localeName)
public java.util.HashMap<java.lang.String,java.util.HashMap> getCtrlHints(java.util.List<java.lang.String> attrNames,
java.lang.String localeName,
ViewRowImpl viewRow)
public java.util.List<java.lang.String> getSIFContextKey()
@Concealed protected ViewAttributeDefImpl createAttributeDef()
@Concealed protected ViewAttributeDefImpl createAttributeDef(java.lang.String className)
public java.lang.String getSDOPackageName()
public boolean isSdoDirty()
public boolean isPullCustomizationsFromPrimaryVOs()
public void setSdoDirty(boolean b)
public java.lang.Class getComponentClass()
public void setComponentClass(java.lang.Class refClass)
public void setComponentInterfaceName(java.lang.String interfaceName)
public java.lang.String getComponentInterfaceName()
public java.lang.String getClientProxyClassName()
public void setClientProxyClassName(java.lang.String name)
protected java.lang.String getEffectiveClientProxyClassName()
protected java.lang.String getEffectiveComponentInterfaceName()
protected static void loadFromXML(DefElement xmlElement, oracle.jbo.server.RemotableCompDef defObj)
@Concealed protected ComponentOperations getComponentOperations()
@Concealed public OperationDefinitionImpl lookupOperationDefinition(java.lang.String id)
@Concealed public ExprCodeSource lookupCodeSource(java.lang.String name)
@Concealed public OperationDefinitionImpl findOperationDefinition(java.lang.String id)
public OperationDefinitionsImpl getOperationDefinitions()
OperationContainergetOperationDefinitions in interface OperationContainerpublic OperationDefinitionsImpl getRowOperationDefinitions()
OperationContainergetRowOperationDefinitions in interface OperationContainerpublic ExprCodeSource ensureCodeSource(ExprDef exprDef)
ComponentOperationsManager#updateCodeSource to update the component
operations manager with any updates that are made to this CodeSource.ensureCodeSource in interface ComponentOperationsManagerexprDef - a null exprDef may be used to indicate the a
built-in code source.public ExprCodeSource editCodeSource(ExprCodeSource codeSource)
ComponentOperationsManagereditCodeSource in interface ComponentOperationsManager@Concealed public void addOperation(OperationDefinitionImpl opDef)
@Concealed public OperationDefinitionImpl addScriptOperation(java.lang.String id, java.lang.String name, java.lang.String returnType, java.util.LinkedHashMap<java.lang.String,java.lang.String> params, java.lang.String body)
@Concealed public OperationDefinitionImpl addScriptRowOperation(java.lang.String id, java.lang.String name, java.lang.String returnType, java.util.LinkedHashMap<java.lang.String,java.lang.String> params, java.lang.String body)
@Concealed public void removeOperation(OperationDefinitionImpl opDef)
protected void loadOperationDefinitions(DefElement xmlElement)
@Concealed public OperationDefinitionImpl lookupRowOperationDefinition(java.lang.String id)
public OperationDefinitionImpl lookupRowOperationDefinition(java.lang.String name, java.lang.String returnType, java.lang.Class[] params)
@Concealed public OperationDefinitionImpl findRowOperationDefinition(java.lang.String id)
@Concealed public void addRowOperation(OperationDefinitionImpl opDef)
@Concealed public OperationDefinitionImpl addRowScriptOperation(java.lang.String id, java.lang.String name, java.lang.String returnType, java.util.LinkedHashMap<java.lang.String,java.lang.String> params, java.lang.String body)
@Concealed public void removeRowOperation(OperationDefinitionImpl opDef)