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