Annotation Interface GcPersistableClass
Metadata about class objects that can be stored to the database.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionWhether the default behavior for fields in this class should be to persist or to not persist, default is to persist.boolean
If should try to update, and if error then insertboolean
There is no primary key for this object - saving through DbAccess always results in a new row.The name of the table that this object maps to in the database.
-
Element Details
-
tableName
String tableNameThe name of the table that this object maps to in the database.- Returns:
- the table name.
- Default:
- ""
-
defaultFieldPersist
GcPersist defaultFieldPersistWhether the default behavior for fields in this class should be to persist or to not persist, default is to persist.- Returns:
- true if so.
- Default:
- doPersist
-
hasNoPrimaryKey
boolean hasNoPrimaryKeyThere is no primary key for this object - saving through DbAccess always results in a new row.- Returns:
- true if so.
- Default:
- false
-
defaultUpdate
boolean defaultUpdateIf should try to update, and if error then insert- Returns:
- true if so.
- Default:
- false
-