public class SpotJpaMapper extends AbstractJpaMapper<Spot>
BATCH_SIZE| Constructor and Description |
|---|
SpotJpaMapper(Database db) |
| Modifier and Type | Method and Description |
|---|---|
Spot |
create() |
void |
create(Spot entity)
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
|
String |
createFindSqlInclRules(QueryRule[] rules) |
List<Spot> |
createList(int size)
Return EMPTY list of given allocated size
|
void |
destroy(Spot spot) |
void |
edit(Spot spot) |
int |
executeAdd(List<? extends Spot> entities) |
int |
executeRemove(List<? extends Spot> entities) |
int |
executeUpdate(List<? extends Spot> entities) |
FieldType |
getFieldType(String fieldName) |
String |
getTableFieldName(String fieldName) |
void |
prepareFileAttachements(List<Spot> entities,
File baseDir) |
void |
resolveForeignKeys(List<Spot> entities) |
boolean |
saveFileAttachements(List<Spot> entities,
File baseDir) |
count, find, findById, getEntityClass, getEntityManager, removeMrefs, storeMrefsadd, add, getDatabase, remove, remove, update, updatepublic SpotJpaMapper(Database db)
public String createFindSqlInclRules(QueryRule[] rules) throws DatabaseException
createFindSqlInclRules in interface Mapper<Spot>createFindSqlInclRules in class AbstractJpaMapper<Spot>DatabaseExceptionpublic void create(Spot entity) throws DatabaseException
DatabaseExceptionpublic void destroy(Spot spot) throws DatabaseException
DatabaseExceptionpublic void edit(Spot spot) throws DatabaseException
DatabaseExceptionpublic int executeAdd(List<? extends Spot> entities) throws DatabaseException
executeAdd in interface Mapper<Spot>executeAdd in class AbstractMapper<Spot>DatabaseExceptionpublic int executeUpdate(List<? extends Spot> entities) throws DatabaseException
executeUpdate in interface Mapper<Spot>executeUpdate in class AbstractMapper<Spot>DatabaseExceptionpublic int executeRemove(List<? extends Spot> entities) throws DatabaseException
executeRemove in interface Mapper<Spot>executeRemove in class AbstractMapper<Spot>DatabaseExceptionpublic String getTableFieldName(String fieldName)
getTableFieldName in interface Mapper<Spot>getTableFieldName in class AbstractJpaMapper<Spot>public List<Spot> createList(int size)
createList in interface Mapper<Spot>createList in class AbstractMapper<Spot>i - initial capacity of returned EMPTY listpublic Spot create()
public void resolveForeignKeys(List<Spot> entities) throws DatabaseException, ParseException
resolveForeignKeys in interface Mapper<Spot>resolveForeignKeys in class AbstractJpaMapper<Spot>DatabaseExceptionParseExceptionpublic FieldType getFieldType(String fieldName)
getFieldType in interface Mapper<Spot>getFieldType in class AbstractJpaMapper<Spot>public void prepareFileAttachements(List<Spot> entities, File baseDir) throws IOException
prepareFileAttachements in class AbstractMapper<Spot>IOExceptionpublic boolean saveFileAttachements(List<Spot> entities, File baseDir) throws IOException
saveFileAttachements in class AbstractMapper<Spot>IOExceptionCopyright © 2013. All Rights Reserved.