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.PersonalizationType
mAliasName, mBindingStyle, SI_AliasName, SMAX_RowDef
INHERIT_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_MetaObject
JIT_PACKAGE_NAME, mDebugToSkipEmptyDocForBug24949961, mEditedProperties, mEditedPropertyExprs
DEF_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_EXPRMAP
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX
FULL_OUTER_JOIN_TYPE, INNER_JOIN_TYPE, LEFT_OUTER_JOIN_TYPE, NONE_JOIN_TYPE, RIGHT_OUTER_JOIN_TYPE
FLAG_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, verifyExtendedDefObjects
adjustPropertyMapForWrite, 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, setupDefWriterFromMO
callFinishedLoading, ensureVariableManager, getAdfmConfigStartupProperty, getBaseDefObject, getBooleanAdfmConfigProperty, getDefXMLNameSpace, getVariableManager, isDeprecated, isFromCustomization, loadProperties, loadVariables, setBaseDefObject, setBaseDefObject, setName, setParent
addDefImport, 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, writeVersion
addPropertySetName, 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, suppressUpdateCheck
getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyExprEval, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, hasProperty, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setProperty, setPropertyExpressionMap, setRawPropertyValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerDefObject, saveXMLContents, setDefaultBaseDir
getDefFullName, getDefName, getFullName, getName
getName, getProperty, getResourceBundleDef
addRowOperation, addViewAccessorDef, findRowOperationDefinition, findViewAccessorDef, getDefFullName, getDefManager, getDefScope, getRowOperationDefinitions, getScriptRowOperationDefinitions, removeRowOperation
getFullName, isDirty, isNew, saveXMLContents, setDirty
removeProperty, setProperty
getFullName, getName, getResourceBundleDef
getDefManager, getDefScope, getFullName
getName
getFullName
public 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.MetaObjectManager
public static ViewDefImpl findDefObject(java.lang.String viewDefName)
viewDefName
- The fully qualified Name of the ViewDefImpl.MetaObjectManager
public 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 MetaObject
protected void prepareEditable()
prepareEditable
in class RowDef
public void setEditable(boolean b)
setEditable
in interface CustomizableMetaObject
setEditable
in class MetaObject
public void setWholeDefDirty(boolean b)
setWholeDefDirty
in class PersistableDefObject
public void setEntityUsagesDirty(boolean b)
public void setAttributeDefsDirty(boolean b)
protected int getScalarDirtyCount()
MetaObject
public MetaObject lookupDefCustomizer()
lookupDefCustomizer
in class MetaObject
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 RowDef
public AttributeDef[] getAttributeDefs()
getAttributeDefs
in interface StructureDef
getAttributeDefs
in class RowDef
public AttributeDef[] getRawAttributeDefs(boolean procAccessors)
getRawAttributeDefs
in class RowDef
public void checkStructWithOld()
checkStructWithOld
in interface ViewDef
public AttributeDef findAttributeDef(java.lang.String attrName)
findAttributeDef
in interface CustomizableViewDef
findAttributeDef
in interface StructureDef
findAttributeDef
in class RowDef
attrName
- 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 CustomizableViewDef
lookupAttributeDef
in interface StructureDef
lookupAttributeDef
in class RowDef
attrName
- the name of an AttributeDef
.null
if not found.public AttributeDef lookupRawAttributeDef(java.lang.String attrName, boolean procAccessors)
lookupRawAttributeDef
in interface AttributeDependencyManager
lookupRawAttributeDef
in class RowDef
public int getAttributeIndexOf(java.lang.String name)
StructureDef
getAttributeIndexOf
in interface StructureDef
getAttributeIndexOf
in class RowDef
name
- 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 ViewCriteriaClauseBuilder
public 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 ViewCriteriaResolver
public ViewDef findViewDefByName(java.lang.String viewDefFullName)
findViewDefByName
in interface ViewCriteriaResolver
public boolean shouldPutJoinConstraintInWhereClause()
shouldPutJoinConstraintInWhereClause
in interface ViewCriteriaManagerOwner
public ViewCriteriaManager getViewCriteriaManager()
getViewCriteriaManager
in interface ViewCriteriaManagerOwner
getViewCriteriaManager
in interface CustomizableViewDef
public void criteriaChanged(ViewCriteria vc)
criteriaChanged
in interface ViewCriteriaManagerOwner
public 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 RowDef
public java.lang.String getKeyNameForPK()
public boolean isKeyNameForPK(java.lang.String name)
public AttributeDefImpl[] getAltKeyAttrDefs(java.lang.String name)
getAltKeyAttrDefs
in class RowDef
public AttributeDefImpl[] getAltKeyAttrDefs(int keyIndex)
getAltKeyAttrDefs
in class RowDef
public int getAttributeCount()
RowDef
getAttributeCount
in interface StructureDef
getAttributeCount
in class RowDef
public AttributeDef getAttributeDef(int index)
RowDef
getAttributeDef
in interface StructureDef
getAttributeDef
in class RowDef
index
- the index of an AttributeDef
, where the leftmost
attribute has index zero.public java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery
in interface StructureDef
public 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 RowDef
java.lang.InstantiationException
java.lang.IllegalAccessException
public 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 ViewDef
orderByClause
- The ORDER BY clausepublic int getSubqueryLevel()
getSubqueryLevel
in interface ViewCriteriaClauseBuilder
public void setSubqueryLevel(int l)
setSubqueryLevel
in interface ViewCriteriaClauseBuilder
public void setClauseGenForRowMatch(boolean isForRowMatch)
setClauseGenForRowMatch
in interface ViewCriteriaClauseBuilder
public CriteriaClauses buildViewCriteriaClauses(ViewCriteria vc)
buildViewCriteriaClauses
in interface ViewCriteriaClauseBuilder
public java.lang.String buildSubquery(AttributeDef[] attrsToSelect, java.lang.String whereClause, AttributeDef accessor, ViewCriteria nestedVC)
buildSubquery
in interface ViewCriteriaClauseBuilder
public 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 MetaObject
public static ViewDefImpl createViewDef(int defScope, java.lang.String defClassName)
protected void resolveReferences()
resolveReferences
in class DefObject
public 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)
PersistentDefinition
writeChildren
in interface PersistentDefinition
writeChildren
in class RowDef
jos
- the Output storage for persistencepublic java.util.Map addChildren(java.util.Map m, boolean recurse, java.lang.Class cls)
addChildren
in class RowDef
public DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
DiffMergeable
orgDef
. 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 DiffMergeable
diffContents
in class PersistableDefObject
docDef
- 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)
DiffMergeable
difDetails
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 DiffMergeable
diffChildren
in class RowDef
docDef
- 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 DiffMergeable
applyDiffContents
in class PersistableDefObject
dif
- changes to be applied to 'this'
defresolver
- the diff resolver used in diff/merge operationpublic void applyDiffChildren(DifferDetails dif, DiffResolver resolver)
DiffMergeable
dif
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 DiffMergeable
applyDiffChildren
in class RowDef
public void writeXMLContents()
writeXMLContents
in interface CustomizableMetaObject
writeXMLContents
in interface ViewDef
writeXMLContents
in class RowDef
public void writeContents(DefWriter jos)
PersistentDefinition
writeContents
in interface PersistentDefinition
jos
- the Output storage for persistenceprotected AttributeDefImpl getAttrDefFromVTable(java.lang.String attrName)
getAttrDefFromVTable
in class RowDef
protected void putAttrDefInVTable(AttributeDefImpl attrDef)
putAttrDefInVTable
in class RowDef
public PersDefBase allocatePDef()
allocatePDef
in class PersistableDefObject
public void resolveDefObject()
This method must be called after the View Def is set up
and before registerDefObject()
.
resolveDefObject
in interface ViewDef
resolveDefObject
in class RowDef
protected KeyDef createAltKey(java.lang.String keyName, int keyIndex, java.lang.String[] components)
createAltKey
in class RowDef
public 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 CustomizableViewDef
public 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 CustomizableViewDef
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.
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 ViewDef
public 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 ViewDef
public 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 ViewDef
public 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 ViewDef
public 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 ViewDef
public 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 ViewDef
public void addAllRowAttributes(java.lang.String rowRefName)
addAllRowAttributes
in interface ViewDef
public void removeAttribute(java.lang.String attrName)
removeAttribute
in interface CustomizableViewDef
public void addApplyViewCriteriaNames(java.lang.String rowRefName, java.lang.String[] applyVCNames)
public boolean isReadOnly()
public boolean isStatic()
public boolean isRuntimeSQLGeneration()
isRuntimeSQLGeneration
in interface ViewCriteriaManagerOwner
public void setSelectAllAttributes(boolean val)
public boolean isSelectAllAttributes()
public boolean isPLSQLView()
@Concealed protected ViewObjectImpl newComponentClassInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException
newComponentClassInstance
in class MetaObject
java.lang.InstantiationException
java.lang.IllegalAccessException
public 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 CustomizableViewDef
public CategoryManager getCategoryManager()
getCategoryManager
in interface CategoryManagerOwner
null
if one was not yet initialized.public CategoryManager ensureCategoryManager()
ensureCategoryManager
in interface CategoryManagerOwner
protected 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 DefObject
protected void unsetDefForComponent(ComponentObjectImpl comp)
unsetDefForComponent
in class DefObject
public 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
PersistenceException
public 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()
PersistentDefinition
getXMLElementTag
in interface PersistentDefinition
getXMLElementTag
in class PersistableDefObject
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
getDefXMLElementTag
in class PersistableDefObject
public int getIterMode()
public void setIterMode(int iterMode)
public boolean isViewLinkAccessorRetained()
public void setViewLinkAccessorRetained(boolean b)
public boolean isEffectiveDated()
RowDef
isEffectiveDated
in class RowDef
public 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 DefObject
public boolean hasVariables()
VariableManagerOwnerBase
hasVariables
in interface VariableManagerOwnerBase
hasVariables
in class DefObject
protected java.lang.String getEffectiveDateTransientAttrName()
public AttributeDefImpl getEffectiveDateTransientAttr()
RowDef
getEffectiveDateTransientAttr
in class RowDef
protected AttributeDefImpl getEffectiveDateTransientAttrInternal()
public boolean hasDataSecurity()
hasDataSecurity
in class RowDef
public ViewAccessorDef lookupViewAccessorDef(java.lang.String name)
lookupViewAccessorDef
in class RowDef
public ViewDefImpl getListBindingViewDef()
public void addListBindingDef(ListBindingDef cld)
addListBindingDef
in interface CustomizableViewDef
addListBindingDef
in class RowDef
public 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)
NamedObjectImpl
getProperty
in interface PropertyManager
getProperty
in class NamedObjectImpl
hintName
- a string to be used as a hash table key.hintName
, if any,
otherwise null
.public SortCriteria[] getDBSortCriteria()
getDBSortCriteria
in interface CustomizableViewDef
public void setDBSortCriteria(SortCriteria[] sortCriteria)
setDBSortCriteria
in interface CustomizableViewDef
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)
@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 OperationContainer
public OperationDefinitionsImpl getRowOperationDefinitions()
getRowOperationDefinitions
in interface OperationContainer
public OperationDefinitionsImpl getScriptOperationDefinitions()
getScriptOperationDefinitions
in interface OperationContainer
public OperationDefinitionsImpl getScriptRowOperationDefinitions()
getScriptRowOperationDefinitions
in interface OperationContainer
public ExprCodeSource ensureCodeSource(ExprDef exprDef)
ComponentOperationsManager
#updateCodeSource
to update the component
operations manager with any updates that are made to this CodeSource.ensureCodeSource
in interface ComponentOperationsManager
exprDef
- 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)
ComponentOperationsManager
editCodeSource
in interface ComponentOperationsManager
public 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)