db.sql.api.cmd.executor.method.IFromMethod Maven / Gradle / Ivy
package db.sql.api.cmd.executor.method;
import db.sql.api.cmd.basic.IDataset;
import db.sql.api.cmd.basic.IDatasetField;
import db.sql.api.cmd.basic.ITable;
import db.sql.api.cmd.basic.ITableField;
import java.util.function.Consumer;
public interface IFromMethod, TABLE_FIELD extends ITableField> {
, DATASET_FIELD extends IDatasetField> SELF from(IDataset... tables);
default SELF from(Class... entities) {
return this.from(1, entities);
}
default SELF from(int storey, Class... entities) {
for (Class entity : entities) {
this.from(entity, storey);
}
return (SELF) this;
}
default SELF from(Class entity, int storey) {
return this.from(entity, storey, null);
}
default SELF from(Class entity, Consumer consumer) {
return this.from(entity, 1, consumer);
}
SELF from(Class entity, int storey, Consumer consumer);
/**
* 实体类拦截
*
* @param entity
* @param storey
*/
default void fromEntityIntercept(Class entity, int storey) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy