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