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