|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.todoroo.andlib.sql.DBObject<Field>
com.todoroo.andlib.sql.Field
com.todoroo.andlib.data.Property<TYPE>
TYPE
- a database supported type, such as String or Integerpublic abstract class Property<TYPE>
Property represents a typed column in a database. Within a given database row, the parameter may not exist, in which case the value is null, it may be of an incorrect type, in which case an exception is thrown, or the correct type, in which case the value is returned.
Nested Class Summary | |
---|---|
static class |
Property.CountProperty
Counting in aggregated tables. |
static class |
Property.DoubleProperty
Double property type. |
static class |
Property.IntegerFunctionProperty
Runs a SQL function and returns the result as a string |
static class |
Property.IntegerProperty
Integer property type. |
static class |
Property.LongProperty
Long property type. |
static interface |
Property.PropertyVisitor<RETURN,PARAMETER>
Visitor interface for property classes |
static class |
Property.StringFunctionProperty
Runs a SQL function and returns the result as a string |
static class |
Property.StringProperty
String property type. |
Field Summary | |
---|---|
java.lang.String |
name
The database column name for this property |
Table |
table
The database table name this property |
Method Summary | ||
---|---|---|
abstract
|
accept(Property.PropertyVisitor<RETURN,PARAMETER> visitor,
PARAMETER data)
Accept a visitor |
|
Property<TYPE> |
clone()
Return a clone of this property |
Methods inherited from class com.todoroo.andlib.sql.Field |
---|
between, eq, eqCaseInsensitive, field, gt, in, in, isNotNull, isNull, like, like, lt, lte, neq |
Methods inherited from class com.todoroo.andlib.sql.DBObject |
---|
as, equals, hasAlias, hashCode, toString, toStringInSelect |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Table table
public final java.lang.String name
Method Detail |
---|
public abstract <RETURN,PARAMETER> RETURN accept(Property.PropertyVisitor<RETURN,PARAMETER> visitor, PARAMETER data)
public Property<TYPE> clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |