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