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