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