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