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