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