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