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