public class Query extends Object
Constructor and Description |
---|
Query(IAssetType assettype)
Create a query on an Asset Type
|
Query(IAssetType assettype,
boolean historical)
Create a historical query on an asset
|
Query(IAssetType assettype,
boolean historical,
IAttributeDefinition parentrelation)
Create a historical query on an attribute
|
Query(IAssetType assettype,
IAttributeDefinition parentrelation)
Create a query on attribute in an Asset
|
Query(Oid oid)
Create a data query from an IOD
|
Query(Oid oid,
boolean historical)
Create a Query from an OID
|
Modifier and Type | Method and Description |
---|---|
Date |
getAsOf()
Get asOf Date
|
IAssetType |
getAssetType()
get the asset type for the query
|
IFilterTerm |
getFilter()
Get the filter
|
QueryFind |
getFind() |
Oid |
getOid()
Get the query oid
|
OrderBy |
getOrderBy()
Get the OrderBy information
|
Paging |
getPaging()
Get Paging details
|
protected IAttributeDefinition |
getParentRelation()
The the AttributeDefinition
|
AttributeSelection |
getSelection()
Get the attributes used in a 'sel'
|
List<QueryVariable> |
getVariables() |
boolean |
isHistorical()
Is this a historical query
|
void |
setAsOf(Date value)
Set asOf Date
|
void |
setFilter(IFilterTerm value)
Set a filter
|
void |
setFind(QueryFind value) |
void |
setOrderBy(OrderBy value)
Set OrderBy information
|
void |
setPaging(Paging value)
Set paging details
|
void |
setSelection(AttributeSelection value)
Set the attribute selection
|
public static final Date MIN_DATE
public Query(IAssetType assettype)
assettype
- - type of asset you wish to querypublic Query(IAssetType assettype, IAttributeDefinition parentrelation)
assettype
- - type of asset to queryparentrelation
- - attribute to querypublic Query(IAssetType assettype, boolean historical)
assettype
- - type of asset to queryhistorical
- - indicate if you want a history querypublic Query(IAssetType assettype, boolean historical, IAttributeDefinition parentrelation)
assettype
- - type of asset to queryhistorical
- - indicate if you want a history queryparentrelation
- - attribute to querypublic Query(Oid oid, boolean historical)
oid
- - oid to build queryhistorical
- - do you want a historical querypublic Query(Oid oid)
oid
- - oid to build querypublic boolean isHistorical()
public IAssetType getAssetType()
public Oid getOid()
protected IAttributeDefinition getParentRelation()
public AttributeSelection getSelection()
public void setSelection(AttributeSelection value)
value
- - AttributeSelectionpublic void setFilter(IFilterTerm value)
value
- - IFilterTermpublic IFilterTerm getFilter()
public void setOrderBy(OrderBy value)
value
- - OrderBypublic OrderBy getOrderBy()
public void setPaging(Paging value)
value
- - Pagingpublic Paging getPaging()
public void setAsOf(Date value)
value
- - Datepublic Date getAsOf()
public QueryFind getFind()
public void setFind(QueryFind value)
value
- query find parameterpublic List<QueryVariable> getVariables()
Copyright © 2015 VersionOne, Inc.. All rights reserved.