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