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