|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicCloneable
org.objectweb.medor.lib.BasicTupleStructure
org.objectweb.medor.query.jorm.lib.BasicJormExtent
This class is the common implementation of the jorm leaves (ClassExtent, GenClassExtent).
Field Summary | |
protected PNameField |
identifier
|
protected boolean |
includeSubclasses
Are objects of subclasses included. |
protected PMapper |
mapper
The mapper of the extent. |
protected DataStore |
myStore
The datastore of the extent |
protected java.lang.String |
name
Node name |
protected java.lang.String |
pnFieldName
Name of the field which is the PName of the extent |
protected java.lang.String |
projectName
|
Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure |
fields, logger, name2field |
Constructor Summary | |
BasicJormExtent()
|
|
BasicJormExtent(java.lang.String _name,
java.lang.String pnFieldName)
|
Method Summary | |
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
DataStore |
getDataStore()
Methods inherited from QueryLeaf |
boolean |
getDistinct()
Tests whether the results should be distinct or not. |
java.lang.String |
getFieldName(java.lang.String nodeName,
java.lang.String fieldName)
|
JormField |
getIdentifierField()
|
abstract java.lang.String |
getJormName()
|
java.lang.String |
getName()
It returns the name of the query tree. |
OrderField[] |
getOrderBy()
Returns the array of OrderFields indicating how the result should be ordered. |
PMapper |
getPMapper()
|
java.lang.String |
getPNameFieldName()
|
java.lang.String |
getProjectName()
|
TupleStructure |
getTupleStructure()
Methods inherited from QueryTree |
java.util.Iterator |
iterateFields()
|
void |
setDataStore(DataStore ds)
|
void |
setDistinct(boolean d)
Indicates whether evaluating the QueryTree should return unique results (duplicate elimination) or not. |
void |
setOrderBy(OrderField[] orderfields)
Sets the OrderBy array of OrderFields. |
void |
setPMapper(PMapper m,
java.lang.String projectName)
|
void |
setProjectName(java.lang.String projectName)
|
void |
setWithSubClasses(boolean incSubClasses)
Indicates whether the current Extent should also contain objects from the subclasses. |
boolean |
withSubClasses()
Tells whether the current Extent should also contain objects from the subclasses. |
Methods inherited from class org.objectweb.medor.lib.BasicTupleStructure |
contains, contains, getField, getField, getFieldRank, getFields, getSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.query.jorm.api.JormExtent |
getMetaObject |
Methods inherited from interface org.objectweb.medor.api.TupleStructure |
contains, contains, getField, getField, getFieldRank, getFields, getSize |
Methods inherited from interface org.objectweb.medor.api.Cloneable |
clone |
Field Detail |
protected java.lang.String name
protected java.lang.String pnFieldName
protected PNameField identifier
protected DataStore myStore
protected PMapper mapper
protected java.lang.String projectName
protected boolean includeSubclasses
Constructor Detail |
public BasicJormExtent()
public BasicJormExtent(java.lang.String _name, java.lang.String pnFieldName)
Method Detail |
public java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone) throws java.lang.CloneNotSupportedException
clone
in class BasicTupleStructure
java.lang.CloneNotSupportedException
public java.util.Iterator iterateFields()
public java.lang.String getFieldName(java.lang.String nodeName, java.lang.String fieldName)
public PMapper getPMapper()
getPMapper
in interface JormExtent
public void setPMapper(PMapper m, java.lang.String projectName)
setPMapper
in interface JormExtent
public java.lang.String getProjectName()
getProjectName
in interface JormExtent
public void setProjectName(java.lang.String projectName)
setProjectName
in interface JormExtent
public void setDataStore(DataStore ds)
setDataStore
in interface JormExtent
public java.lang.String getPNameFieldName()
getPNameFieldName
in interface JormExtent
public abstract java.lang.String getJormName()
getJormName
in interface JormExtent
public JormField getIdentifierField()
getIdentifierField
in interface JormExtent
public boolean withSubClasses()
JormExtent
The default is that only objects strictly in the current class are included, and not objects of the subclasses.
withSubClasses
in interface JormExtent
public void setWithSubClasses(boolean incSubClasses)
JormExtent
The default is that only objects strictly in the current class are included, and not objects of the subclasses.
setWithSubClasses
in interface JormExtent
incSubClasses
- is true if objects from subclasses are to be
included, false if only strict instances of the corresponding class
should be included.public java.lang.String getName()
QueryTree
getName
in interface QueryTree
public TupleStructure getTupleStructure()
getTupleStructure
in interface QueryTree
public DataStore getDataStore()
getDataStore
in interface QueryLeaf
public void setDistinct(boolean d) throws MedorException
QueryTree
The default should be that duplicates are not eliminated (distinct is false).
setDistinct
in interface QueryTree
d
- is true if duplicates should be eliminated, false
otherwise.
MedorException
- if the distinct operation is not supported.public boolean getDistinct()
QueryTree
getDistinct
in interface QueryTree
public void setOrderBy(OrderField[] orderfields) throws MedorException
QueryTree
This array indicates the fields by which the results should be ordered.
Like for filters assigned to QueryNodes, the Fields used for ordering must belong to children of the current QueryTree.
A noticeable exception is the case of RdbExpQueryLeaves, where ordering fields are fields of the QueryLeaf itself.
setOrderBy
in interface QueryTree
orderfields
- the array of OrderFields indicating the ordering in which
the result should be returned.
MedorException
- if ordering is not supported.public OrderField[] getOrderBy()
QueryTree
getOrderBy
in interface QueryTree
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |