org.molgenis.omx.ngs.db
Class CapturingKitJpaMapper
java.lang.Object
org.molgenis.framework.db.AbstractMapper<E>
org.molgenis.framework.db.jpa.AbstractJpaMapper<CapturingKit>
org.molgenis.omx.ngs.db.CapturingKitJpaMapper
- All Implemented Interfaces:
- Mapper<CapturingKit>
public class CapturingKitJpaMapper
- extends AbstractJpaMapper<CapturingKit>
| Methods inherited from class org.molgenis.framework.db.AbstractMapper |
add, add, add, find, getDatabase, remove, remove, remove, toList, update, update, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapturingKitJpaMapper
public CapturingKitJpaMapper(Database db)
createFindSqlInclRules
public String createFindSqlInclRules(QueryRule[] rules)
throws DatabaseException
- Specified by:
createFindSqlInclRules in interface Mapper<CapturingKit>- Specified by:
createFindSqlInclRules in class AbstractJpaMapper<CapturingKit>
- Throws:
DatabaseException
create
public void create(CapturingKit entity)
throws DatabaseException
- 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
- Throws:
DatabaseException
destroy
public void destroy(CapturingKit capturingKit)
throws DatabaseException
- Throws:
DatabaseException
edit
public void edit(CapturingKit capturingKit)
throws DatabaseException
- Throws:
DatabaseException
executeAdd
public int executeAdd(List<? extends CapturingKit> entities)
throws DatabaseException
- Specified by:
executeAdd in interface Mapper<CapturingKit>- Specified by:
executeAdd in class AbstractMapper<CapturingKit>
- Throws:
DatabaseException
executeUpdate
public int executeUpdate(List<? extends CapturingKit> entities)
throws DatabaseException
- Specified by:
executeUpdate in interface Mapper<CapturingKit>- Specified by:
executeUpdate in class AbstractMapper<CapturingKit>
- Throws:
DatabaseException
executeRemove
public int executeRemove(List<? extends CapturingKit> entities)
throws DatabaseException
- Specified by:
executeRemove in interface Mapper<CapturingKit>- Specified by:
executeRemove in class AbstractMapper<CapturingKit>
- Throws:
DatabaseException
getTableFieldName
public String getTableFieldName(String fieldName)
- Specified by:
getTableFieldName in interface Mapper<CapturingKit>- Specified by:
getTableFieldName in class AbstractJpaMapper<CapturingKit>
createList
public List<CapturingKit> createList(int size)
- Return EMPTY list of given allocated size
- Specified by:
createList in interface Mapper<CapturingKit>- Specified by:
createList in class AbstractMapper<CapturingKit>
- Parameters:
i - initial capacity of returned EMPTY list
- Returns:
- an EMPTY list with initial capacity given by size
create
public CapturingKit create()
- Specified by:
create in interface Mapper<CapturingKit>- Specified by:
create in class AbstractJpaMapper<CapturingKit>
resolveForeignKeys
public void resolveForeignKeys(List<CapturingKit> entities)
throws DatabaseException,
ParseException
- Specified by:
resolveForeignKeys in interface Mapper<CapturingKit>- Specified by:
resolveForeignKeys in class AbstractJpaMapper<CapturingKit>
- Throws:
DatabaseException
ParseException
getFieldType
public FieldType getFieldType(String fieldName)
- Specified by:
getFieldType in interface Mapper<CapturingKit>- Specified by:
getFieldType in class AbstractJpaMapper<CapturingKit>
prepareFileAttachements
public void prepareFileAttachements(List<CapturingKit> entities,
File baseDir)
throws IOException
- Specified by:
prepareFileAttachements in class AbstractMapper<CapturingKit>
- Throws:
IOException
saveFileAttachements
public boolean saveFileAttachements(List<CapturingKit> entities,
File baseDir)
throws IOException
- Specified by:
saveFileAttachements in class AbstractMapper<CapturingKit>
- Throws:
IOException
Copyright © 2013. All Rights Reserved.