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