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