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