public interface DynamicService<E extends Persistable<I>,I extends Serializable,Q extends PageQuery> extends QueryService<E,Q>
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
batchInsert(Iterable<E> entities,
String... columns)
已过时。
|
void |
create(E e) |
int |
create(Iterable<E> entities,
String... columns)
执行INSERT INTO [TABLE] (col1, col2) VALUES (?)
|
E |
delete(IdWrapper<I> w)
Delete entity from sharding table
|
int |
delete(Q q)
执行DELETE FORM [TABLE] WHERE ...
|
E |
fetch(IdWrapper<I> w)
force to get a new entity object from database
|
E |
get(IdWrapper<I> w)
Get origin entity from sharding table
|
default boolean |
isNewEntity(E e) |
int |
patch(E e) |
int |
patch(E e,
Q q)
执行UPDATE [TABLE] SET ...
|
<V> List<V> |
queryColumns(Q query,
Class<V> clazz,
String... columns) |
List<I> |
queryIds(Q query) |
default E |
save(E e) |
int |
update(E e) |
void create(E e)
int update(E e)
default boolean isNewEntity(E e)
int patch(E e)
int create(Iterable<E> entities, String... columns)
EntityAspect.afterCreate(Object)entities - entities to insertcolumns - update columns on duplicate@Deprecated default int batchInsert(Iterable<E> entities, String... columns)
create(Iterable, String[])int patch(E e, Q q)
EntityAspect.afterUpdate(Object, Object)e - entity objectq - query objectint delete(Q q)
EntityAspect.afterDelete(Object)q - query objectE get(IdWrapper<I> w)
w - an entity just contains id and information of sharding tableE fetch(IdWrapper<I> w)
w - entity idCopyright © 2021 DOYToWin. All rights reserved.