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