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