Class JournalJooqHelper
-
- All Implemented Interfaces:
public class JournalJooqHelper extends JournalJdbcHelper- Since:
2020-08-11
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringCOL_CREATE_DTpublic final static StringCOL_MODIFY_DTpublic final static StringCOL_MODIFY_TMpublic final static StringCOL_DELETE_DTpublic final static StringCOL_IS_DELETEDpublic final static StringCOL_COMMIT_ID
-
Constructor Summary
Constructors Constructor Description JournalJooqHelper()
-
Method Summary
Modifier and Type Method Description static StringgetJournalDateColumn(DSLContext dsl, String table)static StringgetJournalDateColumn(Table<out Record> table)static intdeleteByIds(DAOImpl<out UpdatableRecord<out Object>, out Object, out Object> dao, JournalService.Journal commit, Array<Long> ids)static intdeleteByIds(DAOImpl<out UpdatableRecord<out Object>, out Object, out Object> dao, JournalService.Journal commit, Collection<Long> ids)static intdeleteByIds(DSLContext dsl, Table<out Record> table, JournalService.Journal commit, Array<Long> ids)static intdeleteByIds(DSLContext dsl, Table<out Record> table, JournalService.Journal commit, Collection<Long> ids)static intdeleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, Array<Long> ids)static intdeleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, Collection<Long> ids)static intdeleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, LocalDateTime now, Array<Long> ids)static intdeleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, LocalDateTime now, Collection<Long> ids)static intdeleteWhere(DAOImpl<out UpdatableRecord<out Object>, out Object, out Object> dao, JournalService.Journal commit, Condition where)static intdeleteWhere(DSLContext dsl, Table<out Record> table, JournalService.Journal commit, Condition where)static intdeleteWhere(DSLContext dsl, Table<out Record> table, Long commitId, Condition where)static intdeleteWhere(DSLContext dsl, Table<out Record> table, Long commitId, LocalDateTime now, Condition where)static Array<String>extractColumn(Array<Field<out Object>> fields, Array<String> name)static Array<Field<out Object>>extractField(Array<Field<out Object>> fields, Array<String> name)static <T extends Table<out Object>> voidcreate(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter)static <T extends Table<out Object>> voidmodify(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter)static <T extends Table<out Object>> voiddelete(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter)static <T extends Table<out Object>> voidcommit(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter, Array<String> field)static voidcommit(@NotNull() JournalService.Journal journal, @Nullable() Map<out Object, out Object> setter, Array<Field<out Object>> field)-
Methods inherited from class pro.fessional.wings.faceless.database.helper.JournalJdbcHelper
deleteByIds, deleteWhere, extractColumn, getFieldName, getJournalDateColumn -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getJournalDateColumn
static String getJournalDateColumn(DSLContext dsl, String table)
-
getJournalDateColumn
static String getJournalDateColumn(Table<out Record> table)
-
deleteByIds
static int deleteByIds(DAOImpl<out UpdatableRecord<out Object>, out Object, out Object> dao, JournalService.Journal commit, Array<Long> ids)
-
deleteByIds
static int deleteByIds(DAOImpl<out UpdatableRecord<out Object>, out Object, out Object> dao, JournalService.Journal commit, Collection<Long> ids)
-
deleteByIds
static int deleteByIds(DSLContext dsl, Table<out Record> table, JournalService.Journal commit, Array<Long> ids)
-
deleteByIds
static int deleteByIds(DSLContext dsl, Table<out Record> table, JournalService.Journal commit, Collection<Long> ids)
-
deleteByIds
static int deleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, Array<Long> ids)
-
deleteByIds
static int deleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, Collection<Long> ids)
-
deleteByIds
static int deleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, LocalDateTime now, Array<Long> ids)
-
deleteByIds
static int deleteByIds(DSLContext dsl, Table<out Record> table, Long commitId, LocalDateTime now, Collection<Long> ids)
-
deleteWhere
static int deleteWhere(DAOImpl<out UpdatableRecord<out Object>, out Object, out Object> dao, JournalService.Journal commit, Condition where)
-
deleteWhere
static int deleteWhere(DSLContext dsl, Table<out Record> table, JournalService.Journal commit, Condition where)
-
deleteWhere
static int deleteWhere(DSLContext dsl, Table<out Record> table, Long commitId, Condition where)
-
deleteWhere
static int deleteWhere(DSLContext dsl, Table<out Record> table, Long commitId, LocalDateTime now, Condition where)
-
extractColumn
static Array<String> extractColumn(Array<Field<out Object>> fields, Array<String> name)
-
extractField
static Array<Field<out Object>> extractField(Array<Field<out Object>> fields, Array<String> name)
-
create
static <T extends Table<out Object>> void create(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter)
-
modify
static <T extends Table<out Object>> void modify(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter)
-
delete
static <T extends Table<out Object>> void delete(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter)
-
commit
static <T extends Table<out Object>> void commit(@NotNull() JournalService.Journal journal, @Nullable() T table, @Nullable() Map<out Object, out Object> setter, Array<String> field)
-
-
-
-