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