Package org.greenrobot.greendao
Class Property
- java.lang.Object
-
- org.greenrobot.greendao.Property
-
public class Property extends java.lang.ObjectMeta data describing a property mapped to a database column; used to create WhereCondition object used by the query builder.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcolumnNamejava.lang.StringnameintordinalbooleanprimaryKeyjava.lang.Class<?>type
-
Constructor Summary
Constructors Constructor Description Property(int ordinal, java.lang.Class<?> type, java.lang.String name, boolean primaryKey, java.lang.String columnName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WhereConditionbetween(java.lang.Object value1, java.lang.Object value2)Creates an "BETWEEN ...WhereConditioneq(java.lang.Object value)Creates an "equal ('=')" condition for this property.WhereConditionge(java.lang.Object value)Creates an "greater or equal ('>=')" condition for this property.WhereConditiongt(java.lang.Object value)Creates an "greater than ('>')" condition for this property.WhereConditionin(java.lang.Object... inValues)Creates an "IN (..., ..., ...)" condition for this property.WhereConditionin(java.util.Collection<?> inValues)Creates an "IN (..., ..., ...)" condition for this property.WhereConditionisNotNull()Creates an "IS NOT NULL" condition for this property.WhereConditionisNull()Creates an "IS NULL" condition for this property.WhereConditionle(java.lang.Object value)Creates an "less or equal ('<=')" condition for this property.WhereConditionlike(java.lang.String value)Creates an "LIKE" condition for this property.WhereConditionlt(java.lang.Object value)Creates an "less than ('<')" condition for this property.WhereConditionnotEq(java.lang.Object value)Creates an "not equal ('<>')" condition for this property.WhereConditionnotIn(java.lang.Object... notInValues)Creates an "NOT IN (..., ..., ...)" condition for this property.WhereConditionnotIn(java.util.Collection<?> notInValues)Creates an "NOT IN (..., ..., ...)" condition for this property.
-
-
-
Method Detail
-
eq
public WhereCondition eq(java.lang.Object value)
Creates an "equal ('=')" condition for this property.
-
notEq
public WhereCondition notEq(java.lang.Object value)
Creates an "not equal ('<>')" condition for this property.
-
like
public WhereCondition like(java.lang.String value)
Creates an "LIKE" condition for this property.
-
between
public WhereCondition between(java.lang.Object value1, java.lang.Object value2)
Creates an "BETWEEN ... AND ..." condition for this property.
-
in
public WhereCondition in(java.lang.Object... inValues)
Creates an "IN (..., ..., ...)" condition for this property.
-
in
public WhereCondition in(java.util.Collection<?> inValues)
Creates an "IN (..., ..., ...)" condition for this property.
-
notIn
public WhereCondition notIn(java.lang.Object... notInValues)
Creates an "NOT IN (..., ..., ...)" condition for this property.
-
notIn
public WhereCondition notIn(java.util.Collection<?> notInValues)
Creates an "NOT IN (..., ..., ...)" condition for this property.
-
gt
public WhereCondition gt(java.lang.Object value)
Creates an "greater than ('>')" condition for this property.
-
lt
public WhereCondition lt(java.lang.Object value)
Creates an "less than ('<')" condition for this property.
-
ge
public WhereCondition ge(java.lang.Object value)
Creates an "greater or equal ('>=')" condition for this property.
-
le
public WhereCondition le(java.lang.Object value)
Creates an "less or equal ('<=')" condition for this property.
-
isNull
public WhereCondition isNull()
Creates an "IS NULL" condition for this property.
-
isNotNull
public WhereCondition isNotNull()
Creates an "IS NOT NULL" condition for this property.
-
-