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