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