|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.common.NamedObjectImpl | +--oracle.jbo.mom.DefinitionObject | +--oracle.jbo.server.DefObject | +--oracle.jbo.server.RowDef | +--oracle.jbo.server.ViewDefImpl
The ViewDefImpl is the base class for all generated ViewDefImpl classes.
Field Summary |
Type | Field |
---|---|
protected java.lang.Class |
mComponentClass
|
Fields inherited from class oracle.jbo.mom.DefinitionObject |
mBaseDefObject, mExtendedDefObjects, mObjectResolved |
Fields inherited from class oracle.jbo.common.NamedObjectImpl |
mFullName, mObjName, mParent, mProperties |
Constructor Summary |
ViewDefImpl(java.lang.String name)
|
Method Summary |
Type | Method |
---|---|
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)
|
void |
addEntityUsage(java.lang.String usageName,
java.lang.String entityDefName,
boolean referenceOnly,
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)
|
protected boolean |
discrValuesQualify(java.lang.Object[] values)
|
AttributeDef |
findAttributeDef(java.lang.String attrName)
Get an ViewAttributeDefImpl by name. |
protected oracle.jbo.server.RowDef |
findDefForDiscrValues(java.lang.Object[] values,
boolean recurse)
|
protected void |
finishedLoading()
|
java.lang.String |
getAliasName()
Returns the database alias that was declared for this definition object at Design-Time. |
int |
getAttributeCount()
Returns the number of defined attributes. |
AttributeDef |
getAttributeDef(int index)
Gets an attribute definition, given its index. |
protected AttributeDefImpl[] |
getAttributeDefImpls()
|
AttributeDef[] |
getAttributeDefs()
Gets the defined attributes. |
oracle.jbo.mom.DefinitionObject |
getBaseDefObject()
|
int |
getBindingStyle()
Returns the Oracle or JDBC binding style defined for this Entity definition. |
int |
getCalculatedAttributeCount()
|
java.lang.Class |
getComponentClass()
|
protected AttributeDefImpl[] |
getDiscrColumns()
Returns the AttributeDef's of the discriminator columns. |
byte |
getFetchMode()
Get the fetch mode for rows from the query. |
short |
getFetchSize()
Get the size of the fetch. |
int |
getMaxActiveNodes()
|
static int |
getMaxAttrConst(java.lang.String viewDefName)
|
int |
getMaxFetchSize()
|
int |
getMaxRowsPerNode()
|
oracle.jbo.server.PackageDefImpl |
getPackageDef()
|
java.lang.String |
getPackageName()
|
java.lang.String |
getQueryHint()
|
java.lang.Class |
getRowClass()
|
boolean |
hasQuery()
|
protected boolean |
isDynamic()
|
boolean |
isFullSql()
|
boolean |
isUseGlueCode()
|
protected void |
loadCustomDef(oracle.jbo.mom.xml.DefElementImpl xmlElement)
|
protected void |
loadProperties(oracle.jbo.mom.xml.DefElementImpl xmlElement)
|
AttributeDef |
lookupAttributeDef(java.lang.String attrName)
Gets an attribute definition by name. |
void |
registerDefObject()
|
void |
resolveDefObject()
|
protected void |
resolveReferences()
Since this gets called from lazyload |
protected void |
setBaseDefObject(oracle.jbo.mom.DefinitionObject baseDefObject)
|
void |
setBindingStyle(int bindingStyle)
Sets the Oracle or JDBC binding style defined for this Entity definition. |
void |
setComponentClass(java.lang.Class componentClass)
|
protected void |
setDiscrColumns(AttributeDefImpl[] discrCols)
Sets the AttributeDef's of the discriminator columns. |
void |
setFetchMode(byte fetchMode)
Set the fetch mode for rows from the query. |
void |
setFetchSize(short size)
Set the size of the fetch. |
void |
setFromClause(java.lang.String fromClause)
|
void |
setFullSql(boolean b)
|
void |
setMaxActiveNodes(int maxActiveNodes)
|
void |
setMaxFetchSize(int size)
Set the maximum number of rows to fetch during query processing. |
void |
setMaxRowsPerNode(int maxRowsPerNode)
|
protected void |
setName(java.lang.String name)
Name this object. |
void |
setOrderByClause(java.lang.String orderByClause)
|
protected void |
setParent(NamedObjectImpl parent)
Sets this object's parent. |
void |
setQuery(java.lang.String query)
|
void |
setQueryHint(java.lang.String queryHint)
|
void |
setRowClass(java.lang.Class rowClass)
|
void |
setSelectClause(java.lang.String selectClause)
|
void |
setUseGlueCode(boolean b)
|
void |
setWhereClause(java.lang.String whereClause)
|
Methods inherited from class oracle.jbo.mom.DefinitionObject |
addExtendedDefObject, getContainerDef, getContainerName, getExtendedDefObjects, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, setObjectResolved |
Methods inherited from class oracle.jbo.common.NamedObjectImpl |
getFullName, getName, getParent,
getProperties, getPropertiesAsStrings, getPropertiesMap,
getProperty, refreshProperty, setFullName,
setPropertiesMap, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Class mComponentClass
Constructor Detail |
public ViewDefImpl(java.lang.String name)
Method Detail |
public void registerDefObject()
public static int getMaxAttrConst(java.lang.String viewDefName)
protected AttributeDefImpl[] getAttributeDefImpls()
getAttributeDefImpls
in class oracle.jbo.server.RowDef
public AttributeDef[] getAttributeDefs()
StructureDef
getAttributeDefs
in interface StructureDef
oracle.jbo.StructureDef
public AttributeDef findAttributeDef(java.lang.String attrName)
findAttributeDef
in interface StructureDef
public AttributeDef lookupAttributeDef(java.lang.String attrName)
lookupAttributeDef
in interface StructureDef
name
- the name of an AttributeDef
.null
if not found.public void setQuery(java.lang.String query)
The
- sql statement of the query.public void setQueryHint(java.lang.String queryHint)
public java.lang.String getQueryHint()
public int getCalculatedAttributeCount()
public int getAttributeCount()
StructureDef
getAttributeCount
in interface StructureDef
public AttributeDef getAttributeDef(int index)
StructureDef
getAttributeDef
in interface StructureDef
oracle.jbo.StructureDef
index
- the index of an AttributeDef
, where the leftmost
attribute has index zero.public void setRowClass(java.lang.Class rowClass)
rowClass
- The Class of the instance.public java.lang.Class getRowClass()
getRowClass
in class oracle.jbo.server.RowDef
public void setComponentClass(java.lang.Class componentClass)
componentClass
- The Class of the instance.public java.lang.Class getComponentClass()
public void setSelectClause(java.lang.String selectClause)
selectClause
- The SELECT listpublic void setFromClause(java.lang.String fromClause)
fromClause
- The FROM clausepublic void setWhereClause(java.lang.String whereClause)
whereClause
- The WHERE clausepublic void setOrderByClause(java.lang.String orderByClause)
orderByClause
- The ORDER BY clausepublic void setFetchMode(byte fetchMode)
fetchMode
- is FETCH_AS_NEEDED, FETCH_ALL or FETCH_DEFAULT.public byte getFetchMode()
public void setFetchSize(short size)
size
- the size, in rows, of the chunk to fetch.public short getFetchSize()
public void setMaxFetchSize(int size)
size
- the number of rows.public int getMaxFetchSize()
public boolean isUseGlueCode()
public void setUseGlueCode(boolean b)
public void setMaxRowsPerNode(int maxRowsPerNode)
public int getMaxRowsPerNode()
public void setMaxActiveNodes(int maxActiveNodes)
public int getMaxActiveNodes()
protected void finishedLoading()
finishedLoading
in class oracle.jbo.server.DefObject
protected void resolveReferences()
resolveReferences
in class oracle.jbo.server.DefObject
public void resolveDefObject()
public AttributeDefImpl addEntityAttribute(java.lang.String attrName, java.lang.String entityUsageName, java.lang.String entityAttrName, boolean isPersistent)
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)
public boolean isFullSql()
public void setFullSql(boolean b)
protected boolean isDynamic()
protected void loadCustomDef(oracle.jbo.mom.xml.DefElementImpl xmlElement) throws PersistenceException
public boolean hasQuery()
protected AttributeDefImpl[] getDiscrColumns()
protected void setDiscrColumns(AttributeDefImpl[] discrCols)
discrCols
- an array attribute definitions of the discriminator columns.protected boolean discrValuesQualify(java.lang.Object[] values)
protected oracle.jbo.server.RowDef findDefForDiscrValues(java.lang.Object[] values, boolean recurse)
public int getBindingStyle()
SQLBuilder
interface.SQLBuilder
public void setBindingStyle(int bindingStyle)
SQLBuilder
interface.bindingStyle
- an integer representing the Oracle or JDBC binding
style for this Entity definition.
The possible values can be:
SQLBuilder
public java.lang.String getAliasName()
public oracle.jbo.server.PackageDefImpl getPackageDef()
public java.lang.String getPackageName()
protected void setName(java.lang.String name)
setName
in class oracle.jbo.mom.DefinitionObject
name
- the name to be given to this object.public oracle.jbo.mom.DefinitionObject getBaseDefObject()
getBaseDefObject
in class oracle.jbo.mom.DefinitionObject
protected void setBaseDefObject(oracle.jbo.mom.DefinitionObject baseDefObject)
setBaseDefObject
in class oracle.jbo.mom.DefinitionObject
protected void setParent(NamedObjectImpl parent)
setParent
in class oracle.jbo.mom.DefinitionObject
parent
- the named object that is to be the parent of this object.protected void loadProperties(oracle.jbo.mom.xml.DefElementImpl xmlElement)
loadProperties
in class oracle.jbo.mom.DefinitionObject
oracle.jbo.mom.DefinitionObject
xmlDoc
- The XML doc to load from.name
- The name of the Property.
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |