public abstract class EntityFilter extends Object
createDateUtc
or changeDateUtc
.
When Entity date and filtering date differs less then
one second, the results are undefined. E.g. when
filtering by ChangeDateUTC>'2009-02-17 14:45:30.182'
an Asset with ChangeDateUTC='2009-02-17T14:45:30.183' |
is not returning.
When trying to filter out Assets by ChangeDateUTC
GreaterThan some Asset's ChangeDateUTC, result may
includes this Asset.
(Like in case of using GreaterThanOrEqual).
So better not to differ GreaterThan and
GreaterThanOrEqual or LessThan and LessThanOrEqual.
The same situation with createDateUtc.Modifier and Type | Class and Description |
---|---|
static class |
EntityFilter.StringSearcher
Specifies a string to search for and an optional set of fields to search
in.
|
Modifier and Type | Field and Description |
---|---|
DateSearcher |
changeDateUtc
Filtering conditions that restrict modification date of Entity.
|
DateSearcher |
createDateUtc
Filtering conditions that restrict creation date of Entity.
|
EntityFilter.StringSearcher |
find
Specify the fields to search in.
|
List<String> |
orderBy
Add the names of the properties you wish to sort on.
|
Constructor and Description |
---|
EntityFilter() |
Modifier and Type | Method and Description |
---|---|
com.versionone.apiclient.IFilterTerm |
buildFilter(com.versionone.apiclient.IAssetType assetType,
V1Instance instance)
Create representation one filter term on a query.
|
com.versionone.apiclient.QueryFind |
buildFind(com.versionone.apiclient.IAssetType assetType)
Create
QueryFind by assetType and EntityFilter.find . |
com.versionone.apiclient.OrderBy |
buildOrderBy(com.versionone.apiclient.IAssetType assetType,
com.versionone.apiclient.IAttributeDefinition defaultOrderBy)
Create
OrderBy object with information about ordering. |
abstract Class<? extends Entity> |
getEntityType()
Used by the filtering code to know what types of entities to return when
applying the filter.
|
protected static <T> List<T> |
newList() |
public final List<String> orderBy
public final EntityFilter.StringSearcher find
public final DateSearcher createDateUtc
public final DateSearcher changeDateUtc
protected static <T> List<T> newList()
public abstract Class<? extends Entity> getEntityType()
public com.versionone.apiclient.IFilterTerm buildFilter(com.versionone.apiclient.IAssetType assetType, V1Instance instance)
assetType
- information about Asset type.instance
- The type this filter belongs to.IFilterTerm
.public com.versionone.apiclient.OrderBy buildOrderBy(com.versionone.apiclient.IAssetType assetType, com.versionone.apiclient.IAttributeDefinition defaultOrderBy)
OrderBy
object with information about ordering.assetType
- information about Asset type.defaultOrderBy
- defines methods for the definition of a VersionOne Attribute.OrderBy
.public com.versionone.apiclient.QueryFind buildFind(com.versionone.apiclient.IAssetType assetType)
QueryFind
by assetType
and EntityFilter.find
.assetType
- information about Asset type.QueryFind
.Copyright © 2013 Version One, Inc.. All rights reserved.