com.todoroo.astrid.api
Class PermaSql

java.lang.Object
  extended by com.todoroo.astrid.api.PermaSql

public final class PermaSql
extends java.lang.Object

PermaSql allows for creating SQL statements that can be saved and used later without dates getting stale. It also allows these values to be used in

Author:
Tim Su

Field Summary
static java.lang.String VALUE_EOD
          value to be replaced by end of day as long
static java.lang.String VALUE_EOD_DAY_AFTER
          value to be replaced by end of day day after tomorrow as long
static java.lang.String VALUE_EOD_NEXT_MONTH
          value to be replaced by approximate end of day next month as long
static java.lang.String VALUE_EOD_NEXT_WEEK
          value to be replaced by end of day next week as long
static java.lang.String VALUE_EOD_TOMORROW
          value to be replaced by end of day tomorrow as long
static java.lang.String VALUE_EOD_YESTERDAY
          value to be replaced by end of day yesterday as long
static java.lang.String VALUE_NOW
          value to be replaced with the current time as long
 
Constructor Summary
PermaSql()
           
 
Method Summary
static java.lang.String replacePlaceholders(java.lang.String value)
          Replace placeholder strings with actual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_NOW

public static final java.lang.String VALUE_NOW
value to be replaced with the current time as long

See Also:
Constant Field Values

VALUE_EOD

public static final java.lang.String VALUE_EOD
value to be replaced by end of day as long

See Also:
Constant Field Values

VALUE_EOD_YESTERDAY

public static final java.lang.String VALUE_EOD_YESTERDAY
value to be replaced by end of day yesterday as long

See Also:
Constant Field Values

VALUE_EOD_TOMORROW

public static final java.lang.String VALUE_EOD_TOMORROW
value to be replaced by end of day tomorrow as long

See Also:
Constant Field Values

VALUE_EOD_DAY_AFTER

public static final java.lang.String VALUE_EOD_DAY_AFTER
value to be replaced by end of day day after tomorrow as long

See Also:
Constant Field Values

VALUE_EOD_NEXT_WEEK

public static final java.lang.String VALUE_EOD_NEXT_WEEK
value to be replaced by end of day next week as long

See Also:
Constant Field Values

VALUE_EOD_NEXT_MONTH

public static final java.lang.String VALUE_EOD_NEXT_MONTH
value to be replaced by approximate end of day next month as long

See Also:
Constant Field Values
Constructor Detail

PermaSql

public PermaSql()
Method Detail

replacePlaceholders

public static java.lang.String replacePlaceholders(java.lang.String value)
Replace placeholder strings with actual