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