com.todoroo.andlib.sql
Class Functions

java.lang.Object
  extended by com.todoroo.andlib.sql.Functions

public final class Functions
extends java.lang.Object


Constructor Summary
Functions()
           
 
Method Summary
static java.lang.String caseStatement(Criterion when, java.lang.Object ifTrue, java.lang.Object ifFalse)
           
static Field cast(Field field, java.lang.String newType)
           
static Field count()
           
static Field fromNow(long millis)
           
static Field length(Property.StringProperty field)
           
static Field max(Field field)
           
static Field now()
           
static Field upper(Field title)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions

public Functions()
Method Detail

caseStatement

public static java.lang.String caseStatement(Criterion when,
                                             java.lang.Object ifTrue,
                                             java.lang.Object ifFalse)

upper

public static Field upper(Field title)

now

public static Field now()
Returns:
SQL now (in milliseconds)

fromNow

public static Field fromNow(long millis)

cast

public static Field cast(Field field,
                         java.lang.String newType)

max

public static Field max(Field field)

count

public static Field count()

length

public static Field length(Property.StringProperty field)