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