com.j256.ormlite.field
Annotation Type DatabaseFieldSimple


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface DatabaseFieldSimple

This can be used instead of DatabaseField. It has fewer fields which can give a performance boost on some architectures -- namely Android. Other fields can be specified with the other @DatabaseField... annotations.

NOTE: If you use @DatabaseField then you should not use this @DatabaseFieldSimple annotation or any of the other @DatabaseField... annotations. They will be ignored.

Author:
graywatson

Optional Element Summary
 boolean canBeNull
           
 String columnName
           
 String defaultValue
           
 int width
           
 

columnName

public abstract String columnName
See Also:
DatabaseField.columnName()
Default:
""

defaultValue

public abstract String defaultValue
See Also:
DatabaseField.defaultValue()
Default:
"__ormlite__ no default value string was specified"

width

public abstract int width
See Also:
DatabaseField.width()
Default:
0

canBeNull

public abstract boolean canBeNull
See Also:
DatabaseField.canBeNull()
Default:
true


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.