public class RemoteNodeQuery_Proxy extends MappedObject_Proxy<RemoteNodeQuery> implements NodeQuery
DEFAULT_MAX_NUMBER, DEFAULT_OFFSET| Constructor and Description |
|---|
RemoteNodeQuery_Proxy(RemoteNodeQuery remoteObject) |
| Modifier and Type | Method and Description |
|---|---|
AggregatedField |
addAggregatedField(Step arg0,
Field arg1,
int arg2)
Add an aggregated field to a step
|
StepField |
addField(Step arg0,
Field arg1)
Adds a field to a step.
|
StepField |
addField(String arg0)
Adds a field by string
|
void |
addNode(Step arg0,
int arg1) |
void |
addNode(Step arg0,
Node arg1)
Adds a node to a step.
|
RelationStep |
addRelationStep(NodeManager arg0)
If you need to add a 'related' NodeManager without specifying a role/searchDir
simply use these addRelationStep.
|
RelationStep |
addRelationStep(NodeManager arg0,
String arg1,
String arg2)
Adds new Relation step to the query.
|
SortOrder |
addSortOrder(StepField arg0,
int arg1)
Defaulting version of
Query.addSortOrder(StepField, int, boolean, int) (sorting case
insensitively, and no date parts). |
SortOrder |
addSortOrder(StepField arg0,
int arg1,
boolean arg2)
Defaulting version of
Query.addSortOrder(StepField, int, boolean, int) (no date parts) |
SortOrder |
addSortOrder(StepField arg0,
int arg1,
boolean arg2,
int arg3)
Adds an order on a certain field.
|
Step |
addStep(NodeManager arg0)
Adds a NodeManager to this Query.
|
Query |
aggregatingClone()
Creates an unused aggregate clone of this query.
|
Query |
clone()
Create an (unused) clone
|
Query |
cloneWithoutFields()
Clones this object, only without the fields
|
CompositeConstraint |
createConstraint(Constraint arg0,
int arg1,
Constraint arg2)
Combines two Constraints to one new one, using a boolean operator (AND or OR).
|
FieldNullConstraint |
createConstraint(StepField arg0)
Create a constraint (for use with this Query object).
|
FieldValueConstraint |
createConstraint(StepField arg0,
int arg1,
Object arg2)
Create a constraint (for use with this Query object).
|
FieldValueConstraint |
createConstraint(StepField arg0,
int arg1,
Object arg2,
int arg3)
Create a constraint (for use with this Query object).
|
CompareFieldsConstraint |
createConstraint(StepField arg0,
int arg1,
StepField arg2)
Create a constraint (for use with this Query object).
|
FieldValueConstraint |
createConstraint(StepField arg0,
Object arg1)
Create a constraint (for use with this Query object).
|
FieldValueBetweenConstraint |
createConstraint(StepField arg0,
Object arg1,
Object arg2)
Create a constraint (for use with this Query object).
|
FieldValueInQueryConstraint |
createConstraint(StepField arg0,
Query arg1) |
FieldValueInConstraint |
createConstraint(StepField arg0,
SortedSet<?> arg1)
Create a constraint (for use with this Query object).
|
LegacyConstraint |
createConstraint(String arg0)
Create a constraint (for use with this Query object).
|
StepField |
createStepField(Step arg0,
Field arg1)
Creates a StepField object withouth adding it (needed for aggregated queries).
|
StepField |
createStepField(Step arg0,
String arg1)
Creates a StepField object withouth adding it (needed for aggregated queries).
|
StepField |
createStepField(String arg0)
Creates the step field for the given name.
|
CachePolicy |
getCachePolicy()
Returns the CachePolicy of the object.
|
Constraint |
getCleanConstraint()
Gets the 'clean' constraint on this query.
|
Cloud |
getCloud()
Returns the Cloud for which this Query was defined.
|
Constraint |
getConstraint()
Gets the constraints on the search results.
|
List<StepField> |
getExtraFields() |
List<StepField> |
getFields()
Gets the stepfields in the search request.
|
NodeList |
getList()
Executes the query and returns the resulting node list.
|
int |
getMaxNumber()
Gets the maximum number of results to be returned, or -1 if the number of results to be returned is unlimited.
|
NodeManager |
getNodeManager()
Returns the node-manager.
|
Step |
getNodeStep()
Returns the step for which the fields are added (or null)
|
int |
getOffset()
Gets the (zerobased) offset in the list of results, of the first result to return.
|
List<SortOrder> |
getSortOrders()
Gets the SortOrder objects in the order they are to be applied.
|
Step |
getStep(String arg0)
Returns the step with given alias, or null if it is not present
|
StepField |
getStepField(Field arg0)
Since in a NodeQuery one of the steps is 'exceptional', also this function makes sense now.
|
List<Step> |
getSteps()
Gets the steps in the search request.
|
RemoteNodeQuery |
getWrappedObject() |
boolean |
isAggregating()
Tests if this is an aggregating query, i.e.
|
boolean |
isDistinct()
Tests if the search request is to return distinct results.
|
boolean |
isUsed()
Whether this query was used or not.
|
boolean |
markUsed()
Mark this query 'used'.
|
void |
removeFields()
Removes all fields from the Query object.
|
void |
removeImplicitFields() |
void |
setAlias(Step arg0,
String arg1)
Sets the alias to the given step.
|
void |
setCachePolicy(CachePolicy arg0)
Sets the CachePolicy of the query.
|
FieldConstraint |
setCaseSensitive(FieldConstraint arg0,
boolean arg1)
Changes the given constraint's 'case sensitivity' (if applicable).
|
void |
setConstraint(Constraint arg0)
The (composite) constraint can actually be set into the query with this method.
|
Query |
setDistinct(boolean arg0)
Specifies wether the query result must contain only 'distinct' results.
|
Constraint |
setInverse(Constraint arg0,
boolean arg1)
Changes the given constraint's 'inverse' (if applicable).
|
Query |
setMaxNumber(int arg0)
Limits the query-result to maxNumber records.
|
Step |
setNodeStep(Step arg0)
Removes all fields and add all fields of the given step.
|
Query |
setOffset(int arg0)
Offsets the query-result with offset records.
|
String |
toSql()
Shows the query in a human-readable SQL form.
|
SearchQuery |
unwrap() |
equals, getMapperCode, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic RemoteNodeQuery_Proxy(RemoteNodeQuery remoteObject)
public NodeManager getNodeManager()
NodeQuerygetNodeManager in interface NodeQuerypublic Step getNodeStep()
NodeQuerygetNodeStep in interface NodeQuerypublic Step setNodeStep(Step arg0)
NodeQuerysetNodeStep in interface NodeQueryarg0 - add all fields of the this steppublic StepField getStepField(Field arg0)
NodeQuerygetStepField in interface NodeQueryarg0 - field to get the StepField for.public List<StepField> getExtraFields()
getExtraFields in interface NodeQuerypublic RelationStep addRelationStep(NodeManager arg0)
QueryaddRelationStep in interface Queryarg0 - node manager on the other side of the relationpublic RelationStep addRelationStep(NodeManager arg0, String arg1, String arg2)
Query getNext() on
the relationstep, and cast to Step.addRelationStep in interface Queryarg0 - node manager on the other side of the relationarg1 - role of a relationarg2 - the direction of the relationpublic void removeFields()
QueryremoveFields in interface Querypublic StepField createStepField(Step arg0, String arg1)
QuerycreateStepField in interface Queryarg0 - step to create StepField fromarg1 - name of field to create StepField frompublic StepField createStepField(String arg0)
QuerycreateStepField in interface Queryarg0 - field identifier to create StepField frompublic StepField createStepField(Step arg0, Field arg1)
QuerycreateStepField in interface Queryarg0 - step to create StepField fromarg1 - field to create StepField frompublic AggregatedField addAggregatedField(Step arg0, Field arg1, int arg2)
QueryaddAggregatedField in interface Queryarg0 - step to add field toarg1 - field to addarg2 - Type of aggregationpublic Query setDistinct(boolean arg0)
QuerysetDistinct in interface Queryarg0 - 'distinct' resultsBasicSearchQuery.setDistinct(boolean),
SearchQuery.isDistinct()public Query setMaxNumber(int arg0)
QuerysetMaxNumber in interface Queryarg0 - max number of resultsBasicSearchQuery.setMaxNumber(int)public Constraint getCleanConstraint()
QuerygetCleanConstraint in interface Querypublic FieldValueConstraint createConstraint(StepField arg0, Object arg1)
QuerycreateConstraint in interface Queryarg0 - fieldarg1 - valuepublic FieldNullConstraint createConstraint(StepField arg0)
QuerycreateConstraint in interface Queryarg0 - Stepfieldpublic FieldValueInQueryConstraint createConstraint(StepField arg0, Query arg1)
createConstraint in interface Querypublic FieldValueInConstraint createConstraint(StepField arg0, SortedSet<?> arg1)
QuerycreateConstraint in interface Queryarg0 - fieldarg1 - valuepublic FieldValueBetweenConstraint createConstraint(StepField arg0, Object arg1, Object arg2)
QuerycreateConstraint in interface Queryarg0 - fieldarg1 - value onearg2 - value twopublic FieldValueConstraint createConstraint(StepField arg0, int arg1, Object arg2, int arg3)
QuerycreateConstraint in interface Queryarg0 - fieldarg1 - operatorarg2 - valuearg3 - part of the date valuepublic FieldValueConstraint createConstraint(StepField arg0, int arg1, Object arg2)
QuerycreateConstraint in interface Queryarg0 - fieldarg1 - operatorarg2 - valuepublic CompositeConstraint createConstraint(Constraint arg0, int arg1, Constraint arg2)
QuerycreateConstraint in interface Queryarg0 - constraint onearg1 - operator (CompositeConstraint.LOGICAL_AND, CompositeConstraint.LOGICAL_OR)arg2 - constraint twopublic LegacyConstraint createConstraint(String arg0)
QuerycreateConstraint in interface Queryarg0 - String with LegacyConstraintCloud.getList(String startNodes, String nodePath, String fields, String constraints, String orderby, String directions, String searchDir, boolean distinct),
NodeManager.getList(String constraints, String orderby, String directions)public CompareFieldsConstraint createConstraint(StepField arg0, int arg1, StepField arg2)
QuerycreateConstraint in interface Queryarg0 - fieldarg1 - operatorarg2 - valuepublic Constraint setInverse(Constraint arg0, boolean arg1)
QuerysetInverse in interface Queryarg0 - constraintarg1 - inversepublic void setConstraint(Constraint arg0)
QuerysetConstraint in interface Queryarg0 - constraintpublic SortOrder addSortOrder(StepField arg0, int arg1, boolean arg2, int arg3)
QueryaddSortOrder in interface Queryarg0 - fieldarg1 - SortOrder.ORDER_ASCENDING or SortOrder.ORDER_DESCENDINGarg2 - case sensitivityarg3 - part to sort on for a date valueBasicSearchQuery.addSortOrder(org.mmbase.storage.search.StepField)public SortOrder addSortOrder(StepField arg0, int arg1)
QueryQuery.addSortOrder(StepField, int, boolean, int) (sorting case
insensitively, and no date parts).addSortOrder in interface Queryarg0 - fieldarg1 - SortOrder.ORDER_ASCENDING or SortOrder.ORDER_DESCENDINGpublic SortOrder addSortOrder(StepField arg0, int arg1, boolean arg2)
QueryQuery.addSortOrder(StepField, int, boolean, int) (no date parts)addSortOrder in interface Queryarg0 - fieldarg1 - SortOrder.ORDER_ASCENDING or SortOrder.ORDER_DESCENDINGarg2 - case sensitivitypublic Query cloneWithoutFields()
QuerycloneWithoutFields in interface Querypublic Query aggregatingClone()
QueryaggregatingClone in interface Querypublic void removeImplicitFields()
removeImplicitFields in interface Querypublic boolean isUsed()
Querypublic Step addStep(NodeManager arg0)
QueryaddStep in interface Queryarg0 - The nodeManager associated with the step.Query.addRelationStep(NodeManager)public StepField addField(Step arg0, Field arg1)
Querypublic StepField addField(String arg0)
Querypublic void addNode(Step arg0, Node arg1)
Querypublic void addNode(Step arg0, int arg1)
public String toSql()
Querypublic Cloud getCloud()
Querypublic boolean markUsed()
QuerymarkUsed in interface QuerymarkUsed in interface SearchQuerypublic Step getStep(String arg0)
Querypublic NodeList getList()
Querypublic void setAlias(Step arg0, String arg1)
Querypublic FieldConstraint setCaseSensitive(FieldConstraint arg0, boolean arg1)
QuerysetCaseSensitive in interface Queryarg0 - constraint to changearg1 - case sensitivitypublic Query setOffset(int arg0)
QuerysetOffset in interface Queryarg0 - offset in resultsBasicSearchQuery.setOffset(int)public int getMaxNumber()
SearchQueryNote: limiting the number of results may not be supported by the database layer.
getMaxNumber in interface SearchQuerypublic boolean isDistinct()
SearchQueryThis corresponds to the use of "DISTINCT" in SQL SELECT-syntax .
isDistinct in interface SearchQuerypublic List<SortOrder> getSortOrders()
SearchQueryThis corresponds to the ORDER BY clause in SQL SELECT syntax.
getSortOrders in interface SearchQuerypublic Constraint getConstraint()
SearchQueryThis corresponds to (part of) the constraints in the WHERE-clause in SQL SELECT-syntax.
getConstraint in interface SearchQuerypublic boolean isAggregating()
SearchQueryisAggregating in interface SearchQuerypublic List<Step> getSteps()
SearchQueryThis corresponds to the tables in SQL SELECT-syntax.
getSteps in interface SearchQuerypublic List<StepField> getFields()
SearchQueryThis corresponds to the fields in SQL SELECT-syntax.
getFields in interface SearchQuerypublic int getOffset()
SearchQueryNote: skipping results may not be supported by the database layer.
getOffset in interface SearchQuerypublic CachePolicy getCachePolicy()
CacheablegetCachePolicy in interface CacheableCachePolicy object.public void setCachePolicy(CachePolicy arg0)
CacheablesetCachePolicy in interface Cacheablearg0 - the CachePolicy object.public SearchQuery unwrap()
unwrap in interface SearchQueryWrapperpublic RemoteNodeQuery getWrappedObject()
getWrappedObject in interface MappedObjectgetWrappedObject in class MappedObject_Proxy<RemoteNodeQuery>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}