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