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