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