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