public class Property<ENTITY>
extends java.lang.Object
implements java.io.Serializable
Query conditions
using QueryBuilder.
Access properties using the generated underscore class of an entity (e.g. Example_.id).| Modifier and Type | Field and Description |
|---|---|
java.lang.Class<? extends io.objectbox.converter.PropertyConverter<?,?>> |
converterClass |
java.lang.Class<?> |
customType
Type, which is converted to a type supported by the DB.
|
java.lang.String |
dbName |
EntityInfo<ENTITY> |
entity |
int |
id |
boolean |
isId |
boolean |
isVirtual |
java.lang.String |
name |
int |
ordinal |
java.lang.Class<?> |
type
One of the supported types to be mapped to the DB.
|
| Constructor and Description |
|---|
Property(EntityInfo<ENTITY> entity,
int ordinal,
int id,
java.lang.Class<?> type,
java.lang.String name) |
Property(EntityInfo<ENTITY> entity,
int ordinal,
int id,
java.lang.Class<?> type,
java.lang.String name,
boolean isVirtual) |
Property(EntityInfo<ENTITY> entity,
int ordinal,
int id,
java.lang.Class<?> type,
java.lang.String name,
boolean isId,
boolean isVirtual,
java.lang.String dbName,
java.lang.Class<? extends io.objectbox.converter.PropertyConverter<?,?>> converterClass,
java.lang.Class<?> customType) |
Property(EntityInfo<ENTITY> entity,
int ordinal,
int id,
java.lang.Class<?> type,
java.lang.String name,
boolean isId,
java.lang.String dbName) |
Property(EntityInfo<ENTITY> entity,
int ordinal,
int id,
java.lang.Class<?> type,
java.lang.String name,
boolean isId,
java.lang.String dbName,
java.lang.Class<? extends io.objectbox.converter.PropertyConverter<?,?>> converterClass,
java.lang.Class<?> customType) |
| Modifier and Type | Method and Description |
|---|---|
QueryCondition |
between(java.lang.Object value1,
java.lang.Object value2)
Creates an "BETWEEN ...
|
QueryCondition |
contains(java.lang.String value) |
QueryCondition |
endsWith(java.lang.String value) |
QueryCondition |
eq(java.lang.Object value)
Creates an "equal ('=')" condition for this property.
|
int |
getEntityId() |
int |
getId() |
QueryCondition |
gt(java.lang.Object value)
Creates an "greater than ('>')" condition for this property.
|
QueryCondition |
in(java.util.Collection<?> inValues)
Creates an "IN (..., ..., ...)" condition for this property.
|
QueryCondition |
in(java.lang.Object... inValues)
Creates an "IN (..., ..., ...)" condition for this property.
|
QueryCondition |
isNotNull()
Creates an "IS NOT NULL" condition for this property.
|
QueryCondition |
isNull()
Creates an "IS NULL" condition for this property.
|
QueryCondition |
lt(java.lang.Object value)
Creates an "less than ('<')" condition for this property.
|
QueryCondition |
notEq(java.lang.Object value)
Creates an "not equal ('<>')" condition for this property.
|
QueryCondition |
startsWith(java.lang.String value) |
java.lang.String |
toString() |
public final EntityInfo<ENTITY> entity
public final int ordinal
public final int id
public final java.lang.Class<?> type
public final java.lang.String name
public final boolean isId
public final boolean isVirtual
public final java.lang.String dbName
public final java.lang.Class<? extends io.objectbox.converter.PropertyConverter<?,?>> converterClass
public final java.lang.Class<?> customType
public Property(EntityInfo<ENTITY> entity, int ordinal, int id, java.lang.Class<?> type, java.lang.String name)
public Property(EntityInfo<ENTITY> entity, int ordinal, int id, java.lang.Class<?> type, java.lang.String name, boolean isVirtual)
public Property(EntityInfo<ENTITY> entity, int ordinal, int id, java.lang.Class<?> type, java.lang.String name, boolean isId, @Nullable java.lang.String dbName)
public Property(EntityInfo<ENTITY> entity, int ordinal, int id, java.lang.Class<?> type, java.lang.String name, boolean isId, @Nullable java.lang.String dbName, @Nullable java.lang.Class<? extends io.objectbox.converter.PropertyConverter<?,?>> converterClass, @Nullable java.lang.Class<?> customType)
public Property(EntityInfo<ENTITY> entity, int ordinal, int id, java.lang.Class<?> type, java.lang.String name, boolean isId, boolean isVirtual, @Nullable java.lang.String dbName, @Nullable java.lang.Class<? extends io.objectbox.converter.PropertyConverter<?,?>> converterClass, @Nullable java.lang.Class<?> customType)
public QueryCondition eq(java.lang.Object value)
public QueryCondition notEq(java.lang.Object value)
public QueryCondition between(java.lang.Object value1, java.lang.Object value2)
public QueryCondition in(java.lang.Object... inValues)
public QueryCondition in(java.util.Collection<?> inValues)
public QueryCondition gt(java.lang.Object value)
public QueryCondition lt(java.lang.Object value)
public QueryCondition isNull()
public QueryCondition isNotNull()
public QueryCondition contains(java.lang.String value)
QueryBuilder.contains(Property, String)public QueryCondition startsWith(java.lang.String value)
public QueryCondition endsWith(java.lang.String value)
QueryBuilder.endsWith(Property, String)@Internal public int getEntityId()
@Internal public int getId()
public java.lang.String toString()
toString in class java.lang.Object