de.greenrobot.dao
Class Property

java.lang.Object
  extended by de.greenrobot.dao.Property

public class Property
extends java.lang.Object

    

Meta data describing a property mapped to a database column; used to create WhereCondition object used by the query builder.


Field Summary
 java.lang.String columnName
           
 java.lang.String name
           
 int oridinal
           
 boolean primaryKey
           
 java.lang.Class type
           
 
Constructor Summary
Property(int oridinal, java.lang.Class type, java.lang.String name, boolean primaryKey, java.lang.String columnName)
           
 
Method Summary
 WhereCondition between(java.lang.Object value1, java.lang.Object value2)
          Creates an "BETWEEN ...
 WhereCondition eq(java.lang.Object value)
          Creates an "equal ('=')" condition for this property.
 WhereCondition ge(java.lang.Object value)
          Creates an "greater or equal ('>=')" condition for this property.
 WhereCondition gt(java.lang.Object value)
          Creates an "greater than ('>')" condition for this property.
 WhereCondition in(java.util.Collection inValues)
          Creates an "IN (..., ..., ...)" condition for this property.
 WhereCondition in(java.lang.Object... inValues)
          Creates an "IN (..., ..., ...)" condition for this property.
 WhereCondition isNotNull()
          Creates an "IS NOT NULL" condition for this property.
 WhereCondition isNull()
          Creates an "IS NULL" condition for this property.
 WhereCondition le(java.lang.Object value)
          Creates an "less or equal ('<=')" condition for this property.
 WhereCondition like(java.lang.String value)
          Creates an "LIKE" condition for this property.
 WhereCondition lt(java.lang.Object value)
          Creates an "less than ('<')" condition for this property.
 WhereCondition notEq(java.lang.Object value)
          Creates an "not equal ('<>')" condition for this property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oridinal

public final int oridinal

type

public final java.lang.Class type

name

public final java.lang.String name

primaryKey

public final boolean primaryKey

columnName

public final java.lang.String columnName
Constructor Detail

Property

public Property(int oridinal,
                java.lang.Class type,
                java.lang.String name,
                boolean primaryKey,
                java.lang.String columnName)
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.


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.



Copyright © 2011-2012 greenrobot.de. All Rights Reserved.