Package org.openremote.model.query
Class AssetQuery
java.lang.Object
org.openremote.model.query.AssetQuery
- All Implemented Interfaces:
Serializable
Encapsulate asset query restriction, projection, and ordering of results.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
String matching optionsstatic enum
Binary operatorsstatic class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess
(AssetQuery.Access access) attributeName
(String attributeName) attributeNames
(String... attributeNames) attributes
(AttributePredicate... attributePredicates) attributes
(LogicGroup<AttributePredicate> attributePredicateGroup) attributeValue
(String name) attributeValue
(String name, boolean b) attributeValue
(String name, double d) attributeValue
(String name, String s) attributeValue
(String name, AssetQuery.Match match, boolean caseSensitive, String s) attributeValue
(String name, AssetQuery.Match match, String s) attributeValue
(String name, AssetQuery.Operator operator, double d) attributeValue
(String name, ValuePredicate valuePredicate) static String[]
getResolvedAssetTypes
(String[] assetTypes) Resolves the concreteAsset
types that are covered by the supplied asset typesnames
(StringPredicate... names) orderBy
(AssetQuery.OrderBy orderBy) parents
(ParentPredicate... parentPredicates) paths
(PathPredicate... pathPredicates) realm
(RealmPredicate realmPredicate) recursive
(boolean recursive) select
(AssetQuery.Select select) toString()
final AssetQuery
final <T extends Asset<?>>
AssetQueryfinal <T extends Asset<?>>
AssetQuerytypes
(AssetDescriptor<T>... types)
-
Field Details
-
recursive
public boolean recursive -
select
-
access
-
ids
-
names
-
parents
-
paths
-
realm
-
userIds
-
types
-
attributes
-
orderBy
-
limit
public int limit
-
-
Constructor Details
-
AssetQuery
public AssetQuery()
-
-
Method Details
-
getResolvedAssetTypes
Resolves the concreteAsset
types that are covered by the supplied asset types -
recursive
-
access
-
select
-
ids
-
names
-
names
-
parents
-
parents
-
paths
-
realm
-
userIds
-
types
-
types
-
types
-
attributes
-
attributes
-
attributeNames
-
attributeName
-
attributeValue
-
attributeValue
-
attributeValue
-
attributeValue
-
attributeValue
-
attributeValue
public AssetQuery attributeValue(String name, AssetQuery.Match match, boolean caseSensitive, String s) -
attributeValue
-
attributeValue
-
orderBy
-
toString
-