public class ObservationSetJpaMapper extends AbstractJpaMapper<ObservationSet>
BATCH_SIZE| Constructor and Description |
|---|
ObservationSetJpaMapper(Database db) |
| Modifier and Type | Method and Description |
|---|---|
ObservationSet |
create() |
void |
create(ObservationSet entity)
This method first saves the objects that are being refered to by entity,
then the entity itself and
finally the objects that refer to this object
|
String |
createFindSqlInclRules(QueryRule[] rules) |
List<ObservationSet> |
createList(int size)
Return EMPTY list of given allocated size
|
void |
destroy(ObservationSet observationSet) |
void |
edit(ObservationSet observationSet) |
int |
executeAdd(List<? extends ObservationSet> entities) |
int |
executeRemove(List<? extends ObservationSet> entities) |
int |
executeUpdate(List<? extends ObservationSet> entities) |
FieldType |
getFieldType(String fieldName) |
String |
getTableFieldName(String fieldName) |
void |
prepareFileAttachements(List<ObservationSet> entities,
File baseDir) |
void |
resolveForeignKeys(List<ObservationSet> entities) |
boolean |
saveFileAttachements(List<ObservationSet> entities,
File baseDir) |
count, find, findById, getEntityClass, getEntityManager, removeMrefs, storeMrefsadd, add, getDatabase, remove, remove, update, updatepublic ObservationSetJpaMapper(Database db)
public String createFindSqlInclRules(QueryRule[] rules) throws DatabaseException
createFindSqlInclRules in interface Mapper<ObservationSet>createFindSqlInclRules in class AbstractJpaMapper<ObservationSet>DatabaseExceptionpublic void create(ObservationSet entity) throws DatabaseException
DatabaseExceptionpublic void destroy(ObservationSet observationSet) throws DatabaseException
DatabaseExceptionpublic void edit(ObservationSet observationSet) throws DatabaseException
DatabaseExceptionpublic int executeAdd(List<? extends ObservationSet> entities) throws DatabaseException
executeAdd in interface Mapper<ObservationSet>executeAdd in class AbstractMapper<ObservationSet>DatabaseExceptionpublic int executeUpdate(List<? extends ObservationSet> entities) throws DatabaseException
executeUpdate in interface Mapper<ObservationSet>executeUpdate in class AbstractMapper<ObservationSet>DatabaseExceptionpublic int executeRemove(List<? extends ObservationSet> entities) throws DatabaseException
executeRemove in interface Mapper<ObservationSet>executeRemove in class AbstractMapper<ObservationSet>DatabaseExceptionpublic String getTableFieldName(String fieldName)
getTableFieldName in interface Mapper<ObservationSet>getTableFieldName in class AbstractJpaMapper<ObservationSet>public List<ObservationSet> createList(int size)
createList in interface Mapper<ObservationSet>createList in class AbstractMapper<ObservationSet>i - initial capacity of returned EMPTY listpublic ObservationSet create()
create in interface Mapper<ObservationSet>create in class AbstractJpaMapper<ObservationSet>public void resolveForeignKeys(List<ObservationSet> entities) throws DatabaseException, ParseException
resolveForeignKeys in interface Mapper<ObservationSet>resolveForeignKeys in class AbstractJpaMapper<ObservationSet>DatabaseExceptionParseExceptionpublic FieldType getFieldType(String fieldName)
getFieldType in interface Mapper<ObservationSet>getFieldType in class AbstractJpaMapper<ObservationSet>public void prepareFileAttachements(List<ObservationSet> entities, File baseDir) throws IOException
prepareFileAttachements in class AbstractMapper<ObservationSet>IOExceptionpublic boolean saveFileAttachements(List<ObservationSet> entities, File baseDir) throws IOException
saveFileAttachements in class AbstractMapper<ObservationSet>IOExceptionCopyright © 2013. All Rights Reserved.