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