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