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