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