public class ViewDefImpl extends RowDef implements StructureDef, ViewCriteriaResolver, ViewDef, ViewCriteriaManagerOwner, CategoryManagerOwner, ViewCriteriaClauseBuilder, CustomizableViewDef
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.PersonalizationTypemAliasName, mBindingStyle, SI_AliasName, SMAX_RowDefINHERIT_POLICY_DEFAULT, INHERIT_POLICY_LEGACY, INHERIT_POLICY_STRICT, mComponentClass, mDebug_checkDef_throw, PERSMERGED_BASE_PACKAGE, PUBLISH_TO_BUSINESS_EDITOR_DEFAULT, PUBLISH_TO_BUSINESS_EDITOR_FALSE, PUBLISH_TO_BUSINESS_EDITOR_TRUE, SI_CustIntoStaticDef, SI_InheritPersonalization, SI_InheritPolicy, SI_MessageBundleClass, SI_ResourceBundleDef, SMAX_MetaObjectJIT_PACKAGE_NAME, mDebugToSkipEmptyDocForBug24949961, mEditedProperties, 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_TYPEFLAG_DIRTY, FLAG_EDITABLE, FLAG_FROM_TIP, FLAG_LOAD_BASE, FLAG_LOAD_HL_DEFS, FLAG_MAJOR_VERSION_CHANGED, FLAG_MINOR_VERSION_CHANGED, FLAG_NEW, FLAG_NEW_RECURSE, FLAG_SKIP_WRITE, XML_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(int defScope,
java.lang.String name,
java.lang.String baseViewDefName,
java.lang.String inheritPolicyStr,
java.lang.String defaultDiscriminatorValue) |
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) |
java.util.Map |
addChildren(java.util.Map m,
boolean recurse,
java.lang.Class cls) |
AttributeDefImpl |
addCustomEntityAttribute(java.lang.String attrName,
java.lang.String entityUsageName,
java.lang.String entityAttrName,
boolean isPersistent) |
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)
Deprecated.
so that restricted use is recommended by IDE.
|
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 |
addRowFinder(RowFinder finder) |
void |
addRowOperation(OperationDefinitionImpl opDef)
For internal framework use only.
|
OperationDefinitionImpl |
addRowScriptOperation(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 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 name,
java.lang.String returnType,
java.util.LinkedHashMap<java.lang.String,java.lang.String> params,
java.lang.String body)
For internal framework use only.
|
void |
addTrigger(VOTriggerType type,
JboValidatorInterface val)
Internal: Applications should not use this method. *
|
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,
AssociationDefBase.IntersectExpandEnd mtomEnd) |
ViewAttributeDefImpl |
addViewLinkAccessor(java.lang.String accName,
java.lang.String viewLinkName,
java.lang.Class javaType,
boolean isReversed) |
ViewAttributeDefImpl |
addViewLinkAccessor(java.lang.String accName,
java.lang.String viewLinkName,
java.lang.Class javaType,
boolean isReversed,
AssociationDefBase.IntersectExpandEnd mtomEnd) |
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) |
PersDefBase |
allocatePDef() |
void |
applyDiffChildren(DifferDetails dif,
DiffResolver resolver)
Applies changes to children defs.
|
void |
applyDiffContents(DifferDetails dif,
DiffResolver resolver)
When diff/merge operation is requested, we have the following
three def objects:
|
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) |
java.lang.String |
buildDefaultFromAttrsForStructureDef(AttributeDef[] attrDefs,
AttributeDef[] forcedAttrDefs,
java.util.List addEntRefs,
SQLBuilder builder,
BaseViewCriteriaManagerImpl vcManager,
StructureDef sDef)
Internal: Applications should not use this method.
|
java.lang.String |
buildDefaultFromForStructureDef(AttributeDef[] attrDefs,
SQLBuilder builder,
BaseViewCriteriaManagerImpl vcManager,
StructureDef sDef)
Internal: Applications should not use this method.
|
static java.lang.String |
buildDefaultSelect(AttributeDef[] attrDefs) |
static java.lang.String |
buildDefaultSelect(AttributeDef[] attrDefs,
AttributeDef[] forcedSelectAttrs) |
static java.lang.String |
buildDefaultSelectForStructureDef(AttributeDef[] attrDefs,
AttributeDef[] forcedSelectAttrs,
StructureDef sDef)
Internal: Applications should not use this method.
|
static java.lang.String |
buildDefaultSelectForStructureDef(AttributeDef[] attrDefs,
StructureDef sDef)
Internal: Applications should not use this method.
|
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 |
cacheJavaMethodDefs(java.util.ArrayList al,
boolean row) |
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) |
protected MetaObject |
createDefCustomizer(java.lang.String baseDefFullName) |
ViewCriteria |
createViewCriteria() |
static ViewDefImpl |
createViewDef(int defScope,
java.lang.String defClassName) |
void |
criteriaChanged(ViewCriteria vc) |
DifferDetails |
diffChildren(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails)
Performs diff of children defs.
|
DifferDetails |
diffContents(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails)
Performs diff of scalar values.
|
void |
doAddViewUsage(java.lang.String usageName,
java.lang.String viewDefName,
ViewObject vo,
java.lang.String viewLinkName,
java.lang.String viewLinkEndName,
java.lang.String srcUsageName) |
void |
doneLoadingInternal() |
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.
|
ExprCodeSource |
ensureCodeSource(ExprDef exprDef,
java.lang.String codeSourceName) |
protected ViewAnnotations |
fetchAnnotationDef() |
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 CustomizableViewDef |
findCustomizableDefObject(java.lang.String viewDefName) |
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.
|
static ViewDefImpl |
findDefObjectWithCustomizer(java.lang.String viewDefName) |
OperationDefinitionImpl |
findOperationDefinition(java.lang.String id)
For internal framework use only.
|
RowFinder |
findRowFinder(java.lang.String name) |
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) |
protected AttributeDefImpl |
getAttrDefFromVTable(java.lang.String attrName) |
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.
|
JboException |
getAttributeException(AttributeDef attrDef) |
int |
getAttributeIndexOf(java.lang.String name)
Finds the index (0-based) of the named attribute.
|
ViewDefImpl.AutoRefreshMode |
getAutoRefreshMode() |
java.lang.Class |
getBaseComponentClass() |
java.util.List |
getCachedJavaMethodDefs(boolean row) |
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 |
getFromClauseForStructureDef(SQLBuilder builder,
StructureDef sDef)
Internal: Applications should not use this method.
|
java.lang.String |
getHintValue(LocaleContext locale,
java.lang.String sHintName) |
int |
getIterMode() |
java.lang.String |
getKeyNameForPK() |
ViewDefImpl |
getListBindingViewDef() |
int |
getMaxActiveNodes() |
static int |
getMaxAttrConst(java.lang.String viewDefName) |
int |
getMaxFetchSize() |
int |
getMaxRowsPerNode() |
OperationDefinitionsImpl |
getOperationDefinitions() |
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.util.List<RowFinder> |
getRowFinderList() |
java.lang.String |
getRowInterfaceName() |
java.lang.String |
getRowMatch() |
OperationDefinitionsImpl |
getRowOperationDefinitions() |
int |
getRows() |
protected int |
getScalarDirtyCount()
Returns the number of scalar value attributes in this def object.
|
OperationDefinitionsImpl |
getScriptOperationDefinitions() |
OperationDefinitionsImpl |
getScriptRowOperationDefinitions() |
java.lang.String |
getSdoName() |
java.lang.String |
getSdoNameSpace() |
java.lang.String |
getSDOPackageName() |
java.lang.String |
getSelectClause() |
int |
getSelectClauseFlags() |
java.lang.String |
getSelectClauseForStructureDef(StructureDef sDef)
Internal: Applications should not use this method.
|
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() |
protected StmtWithBindVars |
getWhereClauseForStructureDef(AttributeDef[] attrDefs,
int noBindVars,
SQLBuilder builder,
StructureDef sDef)
Internal: Applications should not use this method.
|
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.
|
void |
initializeFromBaseViewDef(int defScope,
java.lang.String name,
java.lang.String baseViewDefName,
java.lang.String inheritPolicyStr,
java.lang.String defaultDiscriminatorValue,
java.lang.String eoUsageName,
java.lang.String eoFullName) |
boolean |
isAutoRefreshEnabled() |
boolean |
isComposite() |
boolean |
isDupBaseDef() |
boolean |
isDynamicCodeSourceEnabled() |
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.
|
MetaObject |
lookupDefCustomizer() |
OperationDefinitionImpl |
lookupOperationDefinition(java.lang.String id)
For internal framework use only.
|
AttributeDef |
lookupRawAttributeDef(java.lang.String attrName,
boolean procAccessors) |
RowFinder |
lookupRowFinder(java.lang.String name) |
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) |
protected ViewObjectImpl |
newComponentClassInstance() |
protected ViewRowImpl |
newRowClassInstance() |
static java.lang.String |
passivateFlagString(byte flag) |
protected void |
prepareEditable() |
protected void |
putAttrDefInVTable(AttributeDefImpl attrDef) |
void |
putPDefViewCriteria(java.lang.String name,
PDefViewCriteria pdvcriteria) |
void |
putViewCriteria(java.lang.String name,
ViewCriteria criteria) |
void |
removeAttribute(java.lang.String attrName) |
void |
removeOperation(java.lang.String name)
For internal framework use only.
|
RowFinder |
removeRowFinder(java.lang.String name) |
void |
removeRowOperation(java.lang.String name)
For internal framework use only.
|
void |
removeTrigger(VOTriggerType trig,
java.lang.String valName)
Internal: Applications should not use this method. *
|
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 |
setAttributeDefsDirty(boolean b) |
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 |
setEditable(boolean b) |
void |
setEffectiveDated(boolean b) |
protected void |
setEntityDiscrColumns(AttributeDefImpl[] entityDiscrCols) |
void |
setEntityUsagesDirty(boolean b) |
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) |
void |
setPassivation(byte passivationMode) |
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) |
void |
setWholeDefDirty(boolean b) |
boolean |
shouldPutJoinConstraintInWhereClause() |
void |
skipRowOperationValidation()
For internal framework use only.
|
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
|
void |
writeXMLContents() |
addAltKey, addExtendedDefObject, addForwardDependency, addForwardDependency, addListBindingDef, addValidator, addViewAccessorDef, addViewFilterUsage, appendBindingNameForAttr, appendBindingSpec, appendBindingSpec, createDef, diffObjects, 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, getPersonalizedAttributeList, getResourceBundleDef, getStructureDef, getValidators, getViewAccessorDefs, getViewFilterUsage, getViewFilterUsages, hasExprVarVal, isAttributeDefInherited, isComponentDefinition, loadListBindings, loadPDefAttribute, loadPDefAttributes, loadViewAccessor, loadViewAccessors, loadViewFilterUsages, lookupAltKeyDef, lookupAttrDefIncludingPDef, lookupExprDef, lookupListBindingDef, lookupPersonalizedAttribute, lookupValidator, personalizeAttribute, registerDefObject, registerSessionDefObject, registerSiteDefObject, removeAltKey, removeListBindingDef, removePersonalizedAttribute, removeViewAccessorDef, removeViewFilterUsage, resetDefResolved, resolvePropertyRaw, setAliasName, setAttributeDefForRuntime, setBindingStyle, setDiscrColumns, setExprVarVal, setThrowOnListBindingMismatch, throwOnListBindingMismatch, verifyExtendedDefObjectsadjustPropertyMapForWrite, checkEditable, deregisterSessionObject, extractCustIntoPDef, getDefCustomizerFullFileName, getDefCustomizerFullName, getDefCustomizerName, getEditObject, getEditVersionsAsString, getInheritPersonalizationStrValue, getInheritPersonalizationValue, getInheritPolicyStrValue, getInheritPolicyValue, getMajorVersion, getMessageBundleClass, getMinorVersion, getMsgBundleDef, getPackageDef, getPackageName, getPersDef, getPersDefForEdit, getPersDefNoUpdateCheck, getPersMergedDef, getPublishToBusinessEditorValue, getResourceBundleDef, getResourcePrefix, getStaticBaseDefObject, getStaticDef, isAutoMerged, isConvertPDef, isCreateEditPDef, isCustIntoStaticDef, isDefCustomizer, isDefNewBase, isDynamic, isEditable, isInheritPersonalization, isInheritPolicyLegacy, isInheritPolicyStrict, isPublishToBusinessEditor, isScalarDirty, loadDefVersions, loadResourceBundle, loadXMLContents, lookupPublishedDefCustomizer, objectFound, objectRemoved, saveXMLContents, setCustIntoStaticDef, setDefCustomizer, setDefScope, setDirty, setFullName, setInheritPersonalization, setInheritPersonalizationStrValue, setInheritPolicyStrValue, setMessageBundleClass, setPublishToBusinessEditor, setPublishToBusinessEditorValue, setResourceBundleDef, setScalarDirty, setupDefWriterFromMOcallFinishedLoading, ensureVariableManager, getAdfmConfigStartupProperty, getBaseDefObject, getBooleanAdfmConfigProperty, getDefXMLNameSpace, getVariableManager, isDeprecated, isFromCustomization, loadProperties, loadVariables, setBaseDefObject, setBaseDefObject, setName, setParentaddDefImport, addSavedDocName, allocatePropertyMap, allocatePropertyMapForEdits, baseIsWriteObject, beginDiffObjects, buildChildName, buildFileName, checkEditableWithDefWriter, checkStructWithOld, close, createEditPDef, createFromXML, deregisterDefObject, deregisterHLDef, diffChildrenHLDefs, diffChildrenProperties, ensureDifferDetails, ensureDifferSkip, findDefImport, forgetChanges, getBaseDir, getBasePackage, getChildren, getDefImports, getDefManager, getDefTypeName, getDefWriter, getDifferSkip, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getHLDefMap, getIdentificationAttributeName, getMergeableFullName, getMergeableName, getOrigObject, getPropertyMap, getPropertyNamesSet, getSavedDocNames, getSessionSyncLock, getSubstitutedNames, getSyncLock, guaranteePath, hasExtendedDefObjects, includeCustomizationLayerInfo, isCustomizationEnabled, isCustomizationEnabled, isDirty, isFromTip, isLoadBase, isLoadHLDefs, isMajorVersionChanged, isMinorVersionChanged, isNew, isNewRecurse, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, isSaveToJSON, isSkipWrite, isWriteObject, loadDefImports, loadDefObject, lockDefinitionContext, lookupHLDef, makeNew, mergeChanges, mergeEditedPropertiesForJSON, mergePropertyMap, postSaveContents, readJSONObject, reapplyChanges, registerClass, registerHLDef, reloadFromXMLContents, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveJSONContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setEditableFlag, setEditableObject, setForRuntime, setFullNameInternal, setLoadBase, setLoadHLDefs, setMajorVersionChanged, setNew, setNewRecurse, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setSkipWrite, setWholeDefNew, staticUpdateChildrenList, transferDefChangesInto, unlockDefinitionContext, updateChildObject, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeHeaderForNew, writeJSONContents, writeObject, writeVersionaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getMdsReferenceName, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, objectInserted, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyExprEval, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, hasProperty, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setProperty, setPropertyExpressionMap, setRawPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterDefObject, saveXMLContents, setDefaultBaseDirgetDefFullName, getDefName, getFullName, getNamegetName, getProperty, getResourceBundleDefaddRowOperation, addViewAccessorDef, findRowOperationDefinition, findViewAccessorDef, getDefFullName, getDefManager, getDefScope, getRowOperationDefinitions, getScriptRowOperationDefinitions, removeRowOperationgetFullName, isDirty, isNew, saveXMLContents, setDirtyremoveProperty, setPropertygetFullName, getName, getResourceBundleDefgetDefManager, getDefScope, getFullNamegetNamegetFullNamepublic static final int SI_DupBaseDef
public static final int SI_BindingStyle
public static final int SI_MaxRowsPerNode
public static final int SI_MaxActiveNodes
public static final int SI_SelectList
public static final int SI_SelectListFlags
public static final int SI_FromList
public static final int SI_FromListFlags
public static final int SI_Where
public static final int SI_WhereFlags
public static final int SI_OrderBy
public static final int SI_QueryHint
public static final int SI_RowMatch
public static final int SI_RowClass
public static final int SI_ClientRowProxyName
public static final int SI_RowInterface
public static final int SI_StoredProcedure
public static final int SI_FetchMode
public static final int SI_FetchSize
public static final int SI_MaxFetchSize
public static final int SI_RangeSize
public static final int SI_AccessMode
public static final int SI_RangePagingCacheFactor
public static final int SI_PageIterMode
public static final int SI_ViewLinkAccessorRetained
public static final int SI_SelectAllAttributes
public static final int SI_AutoRefresh
public static final int SI_AutoRefreshMode
public static final int SI_IsEffectiveDated
public static final int SI_Passivate
public static final int SI_UseGlueCode
public static final int SI_SdoGen
public static final int SI_SdoName
public static final int SI_SdoNameSpace
public static final int SI_ServiceWarnings
public static final int SMAX_ViewDefImpl
public 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 static final int SI_MsgBundleClass
public static final int SI_ComponentClass
public static final int SI_ComponentInterfaceName
public static final int SI_ClientProxyClassName
public static final int SMAX_RemotableCompDef
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 ViewDefImpl(int defScope,
java.lang.String name,
java.lang.String baseViewDefName,
java.lang.String inheritPolicyStr,
java.lang.String defaultDiscriminatorValue)
public void initializeFromBaseViewDef(int defScope,
java.lang.String name,
java.lang.String baseViewDefName,
java.lang.String inheritPolicyStr,
java.lang.String defaultDiscriminatorValue,
java.lang.String eoUsageName,
java.lang.String eoFullName)
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 CustomizableViewDef findCustomizableDefObject(java.lang.String viewDefName)
public static ViewDefImpl findDefObjectWithCustomizer(java.lang.String viewDefName)
public static ViewDefImpl createCompositeViewDef(int defScope, java.lang.String name)
protected MetaObject createDefCustomizer(java.lang.String baseDefFullName)
createDefCustomizer in class MetaObjectprotected void prepareEditable()
prepareEditable in class RowDefpublic void setEditable(boolean b)
setEditable in interface CustomizableMetaObjectsetEditable in class MetaObjectpublic void setWholeDefDirty(boolean b)
setWholeDefDirty in class PersistableDefObjectpublic void setEntityUsagesDirty(boolean b)
public void setAttributeDefsDirty(boolean b)
protected int getScalarDirtyCount()
MetaObjectpublic MetaObject lookupDefCustomizer()
lookupDefCustomizer in class MetaObjectpublic 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 CustomizableViewDeffindAttributeDef 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 CustomizableViewDeflookupAttributeDef 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 ViewCriteriaManagerOwnergetViewCriteriaManager in interface CustomizableViewDefpublic 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 java.lang.String getKeyNameForPK()
public 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 RowDef@Concealed protected ViewRowImpl newRowClassInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
newRowClassInstance in class RowDefjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic 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()
@Concealed public java.lang.String getSelectClauseForStructureDef(StructureDef sDef)
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.@Concealed public java.lang.String getFromClauseForStructureDef(SQLBuilder builder, StructureDef sDef)
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)
@Concealed protected StmtWithBindVars getWhereClauseForStructureDef(AttributeDef[] attrDefs, int noBindVars, SQLBuilder builder, StructureDef sDef)
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)
@Concealed public java.lang.String buildDefaultFromForStructureDef(AttributeDef[] attrDefs, SQLBuilder builder, BaseViewCriteriaManagerImpl vcManager, StructureDef sDef)
public java.lang.String buildDefaultFromAttrs(AttributeDef[] attrDefs, AttributeDef[] forcedAttrDefs, java.util.List addEntRefs, SQLBuilder builder, BaseViewCriteriaManagerImpl vcManager)
@Concealed public java.lang.String buildDefaultFromAttrsForStructureDef(AttributeDef[] attrDefs, AttributeDef[] forcedAttrDefs, java.util.List addEntRefs, SQLBuilder builder, BaseViewCriteriaManagerImpl vcManager, StructureDef sDef)
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 DefObject@Concealed public void doneLoadingInternal()
doneLoadingInternal in class MetaObjectpublic 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 setPassivation(byte passivationMode)
public void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class RowDefjos - the Output storage for persistencepublic java.util.Map addChildren(java.util.Map m,
boolean recurse,
java.lang.Class cls)
addChildren in class RowDefpublic DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
DiffMergeableorgDef. Then, help
methods on DifferBase can be used to diff the attr values
and accumulate the details of diff in difDetails.
Here is example code snippet:
private static final String DIFF_STRING_ELEMS[] =
{
"MyStringVal1",
"MyStringVal2"
};
private static final String DIFF_INT_ELEMS[] =
{
"MyIntVal",
}
public DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
{
<Your-def-class> orgDefImpl = (<Your-def-class>) orgDef;
final String editStringValues[] =
{
this.getMyStringVal1(),
this.getMyStringVal2()
};
String orgStringValues[] = null;
if (orgDef != null)
{
String orgV[] =
{
orgDefImpl.getMyStringVal1(),
orgDefImpl.getMyStringVal2()
};
orgStringValues = orgV;
}
final int editIntValues[] =
{
this.getMyIntVal(),
};
int orgIntValues[] = null;
if (orgDef != null)
{
int orgV[] =
{
orgDefImpl.getMyIntVal()
};
orgIntValues = orgV;
}
difDetails = DifferBase.diffStringArray(this, DIFF_STRING_ELEMS, editStringValues, orgStringValues, difDetails);
difDetails = DifferBase.diffIntArray(this, DIFF_INT_ELEMS, editIntValues, orgIntValues, difDetails);
return difDetails;
}
diffContents in interface DiffMergeablediffContents in class PersistableDefObjectdocDef - the document-level definitionorgDef - the original definition. It could be
null if the definition did not exist originallydifDetails - the DifferDetails that accumulate
the details of diff from the document-level (top-level) defDifferDetails that has all the details
of diffpublic DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
DiffMergeabledifDetails and
return it at the end.
For example, if this def has Child1 and Child2, its implementation should look something like:
public DifferDetails diffChildren(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
{
difDetails = diffChildrenChild1(docDef, orgDef, difDetails);
difDetails = diffChildrenChild1(docDef, orgDef, difDetails);
return difDetails;
}
where diffChildrenChild1() uses DifferChildren's
helper method diffChildrenList to diff the child defs.
diffChildren in interface DiffMergeablediffChildren in class RowDefdocDef - the document-level definitionorgDef - the original definition. It could be
null if the definition did not exist originallydifDetails - the DifferDetails that accumulate
the details of diff from the document-level (top-level) defDifferDetails that has all the details
of diffpublic void applyDiffContents(DifferDetails dif, DiffResolver resolver)
DiffMergeable
orgDef - original def object (from the branch point)
editDef - def object into which changes are to be merge
toMergeDef - def object to be merged (source of changes)
For sandbox refresh operation, orgDef comes from the branch
point, editDef from the sandbox, toMergeDef from the
mainline of the repos. With these three defs, we first diff editDef
against orgDef, producing editDifDetails.
Similarly, toMergeDef is diffed against orgDef,
producing toMergeDifDetails. The diff engine then
walks through these two sets of diffs and identifies conflicts.
After the conflicts are all resolved, we apply appropriate
changes to editDef.
applyDiffContents is called to apply changes to
scalar values. dif contains the changed values to
be applied to 'this' object. Use sample code like
the following:
public void applyDiffContents(DifferDetails dif, DiffResolver resolver)
{
DifferChangeMap detailMap = dif.getDetailMap();
Object[] updValues;
// DIFF_STRING_ELEMS from the above example code
for (int j = 0; j < DIFF_STRING_ELEMS.length; j++)
{
if ((updValues = (Object[]) detailMap.getValue(DIFF_STRING_ELEMS[j])) != null)
{
switch(j)
{
case 0:
setMyStringVal1((String) updValues[0]);
break;
case 1:
setMyStringVal2((String) updValues[0]);
break;
}
}
}
for (int j = 0; j < DIFF_INT_ELEMS.length; j++)
{
if ((updValues = (Object[]) detailMap.getValue(DIFF_INT_ELEMS[j])) != null)
{
switch(j)
{
case 0:
setMyIntVal((Integer) updValues[0]);
break;
}
}
}
}
Notice that the index specified in the case
statement is the array index of the attr in the String, int,
or boolean array.
applyDiffContents in interface DiffMergeableapplyDiffContents in class PersistableDefObjectdif - changes to be applied to 'this' defresolver - the diff resolver used in diff/merge operationpublic void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
DiffMergeabledif contains the
changes to be applied to the children. For each child def, this method
should first retrieve the diff details for the child, which is of type
DifferChildren. Then, it should call
DifferChildren.applyDiffChanges(oracle.jbo.mom.DiffChildrenMerge, oracle.jbo.mom.DiffResolver) to perform
the change operation.
applyChanges() requires a
DiffChildrenMerge object, which has the insert,
update, and remove methods. 'this' def object must
provide implmementation of these operations.
Here is a sample:
public void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
{
DifferChangeMap detailMap = dif.getDetailMap();
if (detailMap != null)
{
DifferChildren difChild1 = (DifferChildren) detailMap.getValue(<XML-tag-for-Child1>);
if (difVCs != null)
{
DiffChildrenMerge dm = new DiffChildrenMerge()
{
public void insertChild(Object id, Object value)
{
.. perform insert op for Child1 ..
}
public void updateChild(Object id, Object value, Object oldValue)
{
.. perform update op for Child1 ..
}
public void removeChild(Object id)
{
.. perform remove op for Child1 ..
}
};
difChild1.applyDiffChanges(dm, resolver);
}
// Similarly for Child2
}
}
applyDiffChildren in interface DiffMergeableapplyDiffChildren in class RowDefpublic void writeXMLContents()
writeXMLContents in interface CustomizableMetaObjectwriteXMLContents in interface ViewDefwriteXMLContents in class RowDefpublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionjos - the Output storage for persistenceprotected AttributeDefImpl getAttrDefFromVTable(java.lang.String attrName)
getAttrDefFromVTable in class RowDefprotected void putAttrDefInVTable(AttributeDefImpl attrDef)
putAttrDefInVTable in class RowDefpublic PersDefBase allocatePDef()
allocatePDef in class PersistableDefObjectpublic void resolveDefObject()
This method must be called after the View Def is set up
and before registerDefObject().
resolveDefObject in interface ViewDefresolveDefObject in class RowDefprotected 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, AssociationDefBase.IntersectExpandEnd mtomEnd)
public ViewAttributeDefImpl addViewLinkAccessor(java.lang.String accName, java.lang.String viewLinkName, java.lang.Class javaType)
addViewLinkAccessor in interface CustomizableViewDefpublic ViewAttributeDefImpl addViewLinkAccessor(java.lang.String accName, java.lang.String viewLinkName, java.lang.Class javaType, boolean isReversed, AssociationDefBase.IntersectExpandEnd mtomEnd)
public ViewAttributeDefImpl addViewLinkAccessor(java.lang.String accName, java.lang.String viewLinkName, java.lang.Class javaType, boolean isReversed)
public AttributeDefImpl addCustomEntityAttribute(java.lang.String attrName, java.lang.String entityUsageName, java.lang.String entityAttrName, boolean isPersistent)
addCustomEntityAttribute in interface CustomizableViewDefpublic 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.
attrName - name of the new attribute.entityUsageName - name of the entity reference (usage) in which
the entity attribute named by entityAttrName is to be found.entityAttrName - name of the entity attribute.isPersistent - a boolean flag indicating whether the view attribute is
persistent or not. See above for explanation.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)
addEntityAttribute(String attrName, String entityUsageName,
String entityAttrName,
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 removeAttribute(java.lang.String attrName)
removeAttribute in interface CustomizableViewDefpublic 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()
@Concealed protected ViewObjectImpl newComponentClassInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
newComponentClassInstance in class MetaObjectjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionpublic void addRowFinder(RowFinder finder)
public RowFinder removeRowFinder(java.lang.String name)
public RowFinder lookupRowFinder(java.lang.String name)
public RowFinder findRowFinder(java.lang.String name)
public java.util.List<RowFinder> getRowFinderList()
public ViewCriteria createViewCriteria()
createViewCriteria in interface CustomizableViewDefpublic 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 JboException getAttributeException(AttributeDef attrDef)
public boolean isFullSql()
public void setFullSql(boolean b)
public boolean isQueryThruEntity()
public int getDefTypeId()
getDefTypeId in class DefObject@Concealed public void addTrigger(VOTriggerType type, JboValidatorInterface val)
@Concealed public void removeTrigger(VOTriggerType trig, java.lang.String valName)
protected 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 static java.lang.String passivateFlagString(byte flag)
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)
@Concealed public static java.lang.String buildDefaultSelectForStructureDef(AttributeDef[] attrDefs, StructureDef sDef)
public static java.lang.String buildDefaultSelect(AttributeDef[] attrDefs, AttributeDef[] forcedSelectAttrs)
@Concealed public static java.lang.String buildDefaultSelectForStructureDef(AttributeDef[] attrDefs, AttributeDef[] forcedSelectAttrs, StructureDef sDef)
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 interface CustomizableViewDefaddListBindingDef 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 interface PropertyManagergetProperty in class NamedObjectImplhintName - a string to be used as a hash table key.hintName, if any,
otherwise null.public SortCriteria[] getDBSortCriteria()
getDBSortCriteria in interface CustomizableViewDefpublic void setDBSortCriteria(SortCriteria[] sortCriteria)
setDBSortCriteria in interface CustomizableViewDefpublic 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)
@Concealed protected ViewAnnotations fetchAnnotationDef()
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()
getOperationDefinitions in interface OperationContainerpublic OperationDefinitionsImpl getRowOperationDefinitions()
getRowOperationDefinitions in interface OperationContainerpublic OperationDefinitionsImpl getScriptOperationDefinitions()
getScriptOperationDefinitions in interface OperationContainerpublic OperationDefinitionsImpl getScriptRowOperationDefinitions()
getScriptRowOperationDefinitions 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 ensureCodeSource(ExprDef exprDef, java.lang.String codeSourceName)
public ExprCodeSource editCodeSource(ExprCodeSource codeSource)
ComponentOperationsManagereditCodeSource in interface ComponentOperationsManagerpublic boolean isDynamicCodeSourceEnabled()
isDynamicCodeSourceEnabled in interface ComponentOperationsManager@Concealed public void addOperation(OperationDefinitionImpl opDef)
@Concealed public OperationDefinitionImpl addScriptOperation(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 name, java.lang.String returnType, java.util.LinkedHashMap<java.lang.String,java.lang.String> params, java.lang.String body)
@Concealed public void removeOperation(java.lang.String name)
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 void skipRowOperationValidation()
@Concealed public OperationDefinitionImpl addRowScriptOperation(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(java.lang.String name)
@Concealed
public void cacheJavaMethodDefs(java.util.ArrayList al,
boolean row)
@Concealed public java.util.List getCachedJavaMethodDefs(boolean row)