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