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