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