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