org.molgenis.omx.ngs.db
Class FlowcellJpaMapper
java.lang.Object
org.molgenis.framework.db.AbstractMapper<E>
org.molgenis.framework.db.jpa.AbstractJpaMapper<Flowcell>
org.molgenis.omx.ngs.db.FlowcellJpaMapper
- All Implemented Interfaces:
- Mapper<Flowcell>
public class FlowcellJpaMapper
- extends AbstractJpaMapper<Flowcell>
| 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 |
FlowcellJpaMapper
public FlowcellJpaMapper(Database db)
createFindSqlInclRules
public String createFindSqlInclRules(QueryRule[] rules)
throws DatabaseException
- Specified by:
createFindSqlInclRules in interface Mapper<Flowcell>- Specified by:
createFindSqlInclRules in class AbstractJpaMapper<Flowcell>
- Throws:
DatabaseException
create
public void create(Flowcell 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(Flowcell flowcell)
throws DatabaseException
- Throws:
DatabaseException
edit
public void edit(Flowcell flowcell)
throws DatabaseException
- Throws:
DatabaseException
executeAdd
public int executeAdd(List<? extends Flowcell> entities)
throws DatabaseException
- Specified by:
executeAdd in interface Mapper<Flowcell>- Specified by:
executeAdd in class AbstractMapper<Flowcell>
- Throws:
DatabaseException
executeUpdate
public int executeUpdate(List<? extends Flowcell> entities)
throws DatabaseException
- Specified by:
executeUpdate in interface Mapper<Flowcell>- Specified by:
executeUpdate in class AbstractMapper<Flowcell>
- Throws:
DatabaseException
executeRemove
public int executeRemove(List<? extends Flowcell> entities)
throws DatabaseException
- Specified by:
executeRemove in interface Mapper<Flowcell>- Specified by:
executeRemove in class AbstractMapper<Flowcell>
- Throws:
DatabaseException
getTableFieldName
public String getTableFieldName(String fieldName)
- Specified by:
getTableFieldName in interface Mapper<Flowcell>- Specified by:
getTableFieldName in class AbstractJpaMapper<Flowcell>
createList
public List<Flowcell> createList(int size)
- Return EMPTY list of given allocated size
- Specified by:
createList in interface Mapper<Flowcell>- Specified by:
createList in class AbstractMapper<Flowcell>
- Parameters:
i - initial capacity of returned EMPTY list
- Returns:
- an EMPTY list with initial capacity given by size
create
public Flowcell create()
- Specified by:
create in interface Mapper<Flowcell>- Specified by:
create in class AbstractJpaMapper<Flowcell>
resolveForeignKeys
public void resolveForeignKeys(List<Flowcell> entities)
throws DatabaseException,
ParseException
- Specified by:
resolveForeignKeys in interface Mapper<Flowcell>- Specified by:
resolveForeignKeys in class AbstractJpaMapper<Flowcell>
- Throws:
DatabaseException
ParseException
getFieldType
public FieldType getFieldType(String fieldName)
- Specified by:
getFieldType in interface Mapper<Flowcell>- Specified by:
getFieldType in class AbstractJpaMapper<Flowcell>
prepareFileAttachements
public void prepareFileAttachements(List<Flowcell> entities,
File baseDir)
throws IOException
- Specified by:
prepareFileAttachements in class AbstractMapper<Flowcell>
- Throws:
IOException
saveFileAttachements
public boolean saveFileAttachements(List<Flowcell> entities,
File baseDir)
throws IOException
- Specified by:
saveFileAttachements in class AbstractMapper<Flowcell>
- Throws:
IOException
Copyright © 2013. All Rights Reserved.