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