public class ObservedValueJpaMapper extends AbstractJpaMapper<ObservedValue>
BATCH_SIZE| Constructor and Description |
|---|
ObservedValueJpaMapper(Database db) |
| Modifier and Type | Method and Description |
|---|---|
ObservedValue |
create() |
void |
create(ObservedValue 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<ObservedValue> |
createList(int size)
Return EMPTY list of given allocated size
|
void |
destroy(ObservedValue observedValue) |
void |
edit(ObservedValue observedValue) |
int |
executeAdd(List<? extends ObservedValue> entities) |
int |
executeRemove(List<? extends ObservedValue> entities) |
int |
executeUpdate(List<? extends ObservedValue> entities) |
FieldType |
getFieldType(String fieldName) |
String |
getTableFieldName(String fieldName) |
void |
prepareFileAttachements(List<ObservedValue> entities,
File baseDir) |
void |
resolveForeignKeys(List<ObservedValue> entities) |
boolean |
saveFileAttachements(List<ObservedValue> entities,
File baseDir) |
count, find, findById, getEntityClass, getEntityManager, removeMrefs, storeMrefsadd, add, getDatabase, remove, remove, update, updatepublic ObservedValueJpaMapper(Database db)
public String createFindSqlInclRules(QueryRule[] rules) throws DatabaseException
createFindSqlInclRules in interface Mapper<ObservedValue>createFindSqlInclRules in class AbstractJpaMapper<ObservedValue>DatabaseExceptionpublic void create(ObservedValue entity) throws DatabaseException
DatabaseExceptionpublic void destroy(ObservedValue observedValue) throws DatabaseException
DatabaseExceptionpublic void edit(ObservedValue observedValue) throws DatabaseException
DatabaseExceptionpublic int executeAdd(List<? extends ObservedValue> entities) throws DatabaseException
executeAdd in interface Mapper<ObservedValue>executeAdd in class AbstractMapper<ObservedValue>DatabaseExceptionpublic int executeUpdate(List<? extends ObservedValue> entities) throws DatabaseException
executeUpdate in interface Mapper<ObservedValue>executeUpdate in class AbstractMapper<ObservedValue>DatabaseExceptionpublic int executeRemove(List<? extends ObservedValue> entities) throws DatabaseException
executeRemove in interface Mapper<ObservedValue>executeRemove in class AbstractMapper<ObservedValue>DatabaseExceptionpublic String getTableFieldName(String fieldName)
getTableFieldName in interface Mapper<ObservedValue>getTableFieldName in class AbstractJpaMapper<ObservedValue>public List<ObservedValue> createList(int size)
createList in interface Mapper<ObservedValue>createList in class AbstractMapper<ObservedValue>i - initial capacity of returned EMPTY listpublic ObservedValue create()
create in interface Mapper<ObservedValue>create in class AbstractJpaMapper<ObservedValue>public void resolveForeignKeys(List<ObservedValue> entities) throws DatabaseException, ParseException
resolveForeignKeys in interface Mapper<ObservedValue>resolveForeignKeys in class AbstractJpaMapper<ObservedValue>DatabaseExceptionParseExceptionpublic FieldType getFieldType(String fieldName)
getFieldType in interface Mapper<ObservedValue>getFieldType in class AbstractJpaMapper<ObservedValue>public void prepareFileAttachements(List<ObservedValue> entities, File baseDir) throws IOException
prepareFileAttachements in class AbstractMapper<ObservedValue>IOExceptionpublic boolean saveFileAttachements(List<ObservedValue> entities, File baseDir) throws IOException
saveFileAttachements in class AbstractMapper<ObservedValue>IOExceptionCopyright © 2013. All Rights Reserved.