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