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