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