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