return doGetNullableByKey(session, key);
}
- public final E getByKey(DbSession session, K key) {
+ public E getByKey(DbSession session, K key) {
E value = doGetNullableByKey(session, key);
if (value == null) {
throw new NotFoundException(String.format("Key '%s' not found", key));
}
@Override
- public final E update(DbSession session, E item) {
+ public E update(DbSession session, E item) {
Date now = new Date(system2.now());
update(session, item, now);
return item;
}
@Override
- public final E update(DbSession session, E item, E... others) {
+ public E update(DbSession session, E item, E... others) {
Date now = new Date(system2.now());
update(session, item, now);
for (E other : others) {
}
@Override
- public final Collection<E> update(DbSession session, Collection<E> items) {
+ public Collection<E> update(DbSession session, Collection<E> items) {
Date now = new Date(system2.now());
for (E item : items) {
update(session, item, now);
}
@Override
- public final E insert(DbSession session, E item) {
+ public E insert(DbSession session, E item) {
insert(session, item, new Date(system2.now()));
return item;
}
@Override
- public final Collection<E> insert(DbSession session, Collection<E> items) {
+ public Collection<E> insert(DbSession session, Collection<E> items) {
Date now = new Date(system2.now());
for (E item : items) {
insert(session, item, now);
}
@Override
- public final E insert(DbSession session, E item, E... others) {
+ public E insert(DbSession session, E item, E... others) {
Date now = new Date(system2.now());
insert(session, item, now);
for (E other : others) {