|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.server.NamedObjectImpl
oracle.jbo.mom.PersistableDefObject
oracle.jbo.server.DefObject
oracle.jbo.server.MetaObject
oracle.jbo.server.RowDef
oracle.jbo.server.ViewDefImpl
public class ViewDefImpl
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
static int |
CLAUSE_GENERATE_RT
|
Fields inherited from class oracle.jbo.server.RowDef |
---|
mAttrAccessors |
Fields inherited from class oracle.jbo.server.MetaObject |
---|
mComponentClass |
Fields inherited from class oracle.jbo.server.DefObject |
---|
DEF_MDS_CLIENT_KEY, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY |
Fields inherited from class oracle.jbo.server.NamedObjectImpl |
---|
mObjName, mParent, mProperties, mUserData, RES_ID_SUFFIX |
Constructor Summary | |
---|---|
ViewDefImpl()
|
|
ViewDefImpl(java.lang.String name)
|
Method Summary | |
---|---|
void |
addAllEntityAttributes(java.lang.String entityUsageName)
|
AttributeDefImpl |
addEntityAttribute(java.lang.String attrName,
java.lang.String entityUsageName,
java.lang.String entityAttrName,
boolean isPersistent)
|
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)
|
AttributeDefImpl |
addViewAttribute(java.lang.String attrName,
java.lang.String expression,
java.lang.Class javaType)
|
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. |
static java.lang.String |
buildDefaultSelect(AttributeDef[] attrDefs)
|
AttributeDef |
findAttrDefByEntAttrDef(AttributeDef entAttrDef)
Get an attribute definition for an entity attribute definition. |
static ViewDefImpl |
findDefObject(java.lang.String viewDefName)
Find the named ViewDefImpl object |
StructureDef |
findStructureDefByName(java.lang.String structDefFullName)
|
java.lang.String |
formatForOutput(OutputFormatter formatter)
|
byte |
getAccessMode()
Get the access mode for rows from the query. |
java.lang.String[] |
getAllViewCriteriaNames()
|
AttributeDefImpl[] |
getAltKeyAttrDefs(java.lang.String name)
|
int |
getAttributeCount()
How many attributes comprise this row? |
protected AttributeDefImpl[] |
getAttributeDefImpls()
Gets an array of attribute definitions in this View Def. |
java.lang.Class |
getBaseComponentClass()
|
int |
getCalculatedAttributeCount()
|
java.lang.String |
getClientProxyClassName()
|
java.lang.String |
getColumnNameForQuery(int index)
|
protected int |
getColumns()
|
java.lang.Class |
getComponentClass()
|
java.lang.String |
getComponentInterfaceName()
|
SortCriteria[] |
getDBSortCriteria()
|
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 java.lang.String |
getEffectiveDateTransientAttrName()
|
int |
getEntityIndex(EntityReference entityRef)
|
protected EntityReference |
getEntityReference(int index)
|
EntityReference |
getEntityReference(java.lang.String name)
|
protected EntityReference[] |
getEntityReferences(AttributeDef[] attrDefs)
Returns an array of EntityReference 's upon which this ViewObject is based. |
byte |
getFetchMode()
Get the fetch mode for rows from the query. |
short |
getFetchSize()
Get the size of the fetch. |
java.lang.String |
getFromClause()
Get the FROM clause used in the SQL query |
java.lang.String |
getFromClause(SQLBuilder builder)
Returns the from clause associated with this View Definition. |
int |
getFromClauseFlags()
|
int |
getIterMode()
|
ViewDefImpl |
getListBindingViewDef()
|
int |
getMaxActiveNodes()
|
int |
getMaxFetchSize()
|
int |
getMaxRowsPerNode()
|
java.lang.String |
getOrderByClause()
Get the ORDER BY clause used in the SQL query |
protected AttributeDefImpl[] |
getPrimaryKeys()
Gets an array of AttributeDefImpl's for the primary keys comprising this VO. |
java.lang.String |
getQuery()
|
java.lang.String |
getQueryHint()
|
int |
getRangePagingCacheFactor()
Get the range paging cache factor. |
int |
getRangeSize()
|
ViewCriteria |
getReqdVC()
|
java.lang.Class |
getRowClass()
|
protected int |
getRows()
|
java.lang.String |
getSelectClause()
Get the SELECT clause used in the SQL query |
int |
getSelectClauseFlags()
|
protected static java.lang.String |
getStaticListCellId(java.lang.String voClassPath,
int row,
int col)
|
ViewCriteria |
getViewCriteria(java.lang.String name)
|
AttributeDefImpl[] |
getViewKeyAttrDefs(ViewKeyDef viewKeyDef)
|
java.lang.String |
getWhereClause()
Get the WHERE clause used in the SQL query |
protected StmtWithBindVars |
getWhereClause(AttributeDef[] attrDefs,
int noBindVars,
SQLBuilder builder)
|
int |
getWhereClauseFlags()
|
java.lang.String |
getXMLElementTag()
|
protected boolean |
hasPrimaryEntity()
|
boolean |
hasQuery()
|
boolean |
isAutoRefreshEnabled()
|
boolean |
isEffectiveDated()
Tests if the row definition corresponds to an Effective Dated object. |
boolean |
isFinderView()
|
boolean |
isFullSql()
Is the SQL query custom-defined? |
boolean |
isManageRowsByKey()
|
boolean |
isPassivationEnabled()
|
boolean |
isPLSQLView()
A View Object is PLSQL view if it is defined as PL/SQL view object. |
boolean |
isQueryThruEntity()
|
boolean |
isReadOnly()
|
boolean |
isRuntimeSQLGeneration()
|
boolean |
isStatic()
A View Object is static if it is defined as static. |
boolean |
isViewLinkAccessorRetained()
|
protected static void |
loadFromXML(org.kxml2.io.KXmlParser parser,
oracle.jbo.server.RemotableCompDef defObj)
|
void |
loadXMLContents(org.kxml2.io.KXmlParser parser,
java.lang.String fullName)
|
ViewAccessorDef |
lookupViewAccessorDef(java.lang.String name)
|
void |
resolveDefObject()
Resolves this View Def. |
void |
setClientProxyClassName(java.lang.String name)
|
void |
setComponentClass(java.lang.Class refClass)
|
void |
setComponentInterfaceName(java.lang.String interfaceName)
|
void |
setEffectiveDated(boolean b)
|
void |
setOrderByClause(java.lang.String clause)
Set the ORDER BY clause to use in the SQL query |
void |
setRangeSize(int r)
|
void |
setReqdVC(ViewCriteria vc)
|
void |
setRowClass(java.lang.Class rowClass)
|
void |
setupForLov(ViewObjectImpl vo)
|
void |
setWhereClause(java.lang.String clause)
Set the WHERE clause to use in the SQL query |
Methods inherited from class oracle.jbo.server.MetaObject |
---|
getMessageBundleClass, getMsgBundleDef, setMessageBundleClass |
Methods inherited from class oracle.jbo.mom.PersistableDefObject |
---|
getDefManager |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.StructureDef |
---|
findAttributeDef, getAttributeDef, getAttributeDefs, getAttributeIndexOf, getDefFullName, getDefName, getFullName, getName, lookupAttributeDef |
Methods inherited from interface oracle.jbo.common.ResourceBundleOwner |
---|
getResourceBundleDef, getResourcePrefix |
Methods inherited from interface oracle.jbo.VariableManagerOwner |
---|
getName |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
public static final int CLAUSE_GENERATE_RT
Constructor Detail |
---|
public ViewDefImpl()
public ViewDefImpl(java.lang.String name)
Method Detail |
---|
public java.lang.String getQuery()
public java.lang.String getOrderByClause()
public void setOrderByClause(java.lang.String clause)
clause
- New ORDER BY clausepublic java.lang.String getWhereClause()
public void setWhereClause(java.lang.String clause)
clause
- New WHERE clausepublic java.lang.String getFromClause()
public java.lang.String getSelectClause()
public boolean isFullSql()
protected EntityReference getEntityReference(int index)
public EntityReference getEntityReference(java.lang.String name)
protected AttributeDefImpl[] getPrimaryKeys()
getPrimaryKeys
in class RowDef
public static final ViewDefImpl findDefObject(java.lang.String viewDefName)
viewDefName
- Name of object
public boolean isReadOnly()
public boolean isEffectiveDated()
RowDef
isEffectiveDated
in class RowDef
public java.lang.String getFromClause(SQLBuilder builder)
#setFromClauseFlags(int)
.
builder
- The SQLBuilder
abstracts the actual database specific syntax
generation.
public java.lang.String buildDefaultFrom(SQLBuilder builder)
builder
- The SQLBuilder
abstracts the actual database specific syntax
generation.
public AttributeDefImpl getEffectiveDateTransientAttr()
RowDef
getEffectiveDateTransientAttr
in class RowDef
protected java.lang.String getEffectiveDateTransientAttrName()
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 hidden
EntityReference
array.public java.lang.String buildDefaultFrom(AttributeDef[] attrDefs, SQLBuilder builder, BaseViewCriteriaManagerImpl vcManager)
public java.lang.String[] getAllViewCriteriaNames()
public ViewCriteria getViewCriteria(java.lang.String name)
public void resolveDefObject()
This method must be called after the View Def is set up and before
registerDefObject()
.
public boolean isRuntimeSQLGeneration()
public StructureDef findStructureDefByName(java.lang.String structDefFullName)
findStructureDefByName
in interface ViewCriteriaResolver
public java.lang.String getColumnNameForQuery(int index)
getColumnNameForQuery
in interface StructureDef
getColumnNameForQuery
in class RowDef
public void setEffectiveDated(boolean b)
public AttributeDefImpl addViewAttribute(java.lang.String attrName, java.lang.String expression, java.lang.Class javaType)
public int getCalculatedAttributeCount()
public AttributeDef findAttrDefByEntAttrDef(AttributeDef entAttrDef)
entAttrDef
- entity attribute def
null
if not
found.protected boolean hasPrimaryEntity()
protected AttributeDefImpl[] getAttributeDefImpls()
getAttributeDefImpls
in class RowDef
public static java.lang.String buildDefaultSelect(AttributeDef[] attrDefs)
protected StmtWithBindVars getWhereClause(AttributeDef[] attrDefs, int noBindVars, SQLBuilder builder)
public boolean isFinderView()
public SortCriteria[] getDBSortCriteria()
public boolean isViewLinkAccessorRetained()
public int getEntityIndex(EntityReference entityRef)
public java.lang.Class getRowClass()
getRowClass
in class RowDef
public byte getAccessMode()
public int getRangePagingCacheFactor()
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)
public void addAllEntityAttributes(java.lang.String entityUsageName)
public AttributeDefImpl addEntityAttribute(java.lang.String attrName, java.lang.String entityUsageName, java.lang.String entityAttrName, boolean isPersistent)
public java.lang.Class getBaseComponentClass()
getBaseComponentClass
in class RowDef
public java.lang.String formatForOutput(OutputFormatter formatter)
formatForOutput
in interface Formattable
formatForOutput
in class RowDef
public int getFromClauseFlags()
public int getSelectClauseFlags()
public int getWhereClauseFlags()
public byte getFetchMode()
public short getFetchSize()
public int getMaxFetchSize()
public java.lang.String getQueryHint()
public boolean isManageRowsByKey()
public final boolean isPassivationEnabled()
public boolean isQueryThruEntity()
public int getAttributeCount()
RowDef
getAttributeCount
in interface StructureDef
getAttributeCount
in class RowDef
public boolean hasQuery()
public boolean isStatic()
protected int getRows()
protected int getColumns()
protected static java.lang.String getStaticListCellId(java.lang.String voClassPath, int row, int col)
public boolean isPLSQLView()
public boolean isAutoRefreshEnabled()
public int getMaxRowsPerNode()
public int getMaxActiveNodes()
public int getRangeSize()
public void setRangeSize(int r)
public java.lang.String getXMLElementTag()
public ViewAccessorDef lookupViewAccessorDef(java.lang.String name)
lookupViewAccessorDef
in class RowDef
public ViewDefImpl getListBindingViewDef()
public void setupForLov(ViewObjectImpl vo)
public ViewCriteria getReqdVC()
public void setReqdVC(ViewCriteria vc)
public AttributeDefImpl[] getAltKeyAttrDefs(java.lang.String name)
getAltKeyAttrDefs
in class RowDef
public int getIterMode()
public AttributeDefImpl[] getViewKeyAttrDefs(ViewKeyDef viewKeyDef)
public void setRowClass(java.lang.Class rowClass)
rowClass
- The Class of the instance.public java.lang.Class getComponentClass()
public void setComponentClass(java.lang.Class refClass)
setComponentClass
in class MetaObject
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(org.kxml2.io.KXmlParser parser, oracle.jbo.server.RemotableCompDef defObj)
public void loadXMLContents(org.kxml2.io.KXmlParser parser, java.lang.String fullName)
loadXMLContents
in class PersistableDefObject
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |