io.github.wycst.wast.jdbc.executer.SubOqlQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wast Show documentation
Show all versions of wast Show documentation
Wast is a high-performance Java toolset library package that includes JSON, YAML, CSV, HttpClient, JDBC and EL engines
package io.github.wycst.wast.jdbc.executer;
/**
* 子查询支持(where)
*
* @param
*/
public class SubOqlQuery extends OqlQuery {
private final Class subClass;
SubOqlQuery(Class subClass) {
EntityManagementFactory.defaultManagementFactory().checkEntityClass(subClass);
this.subClass = subClass;
}
public static SubOqlQuery create(Class subClass) {
return new SubOqlQuery(subClass);
}
public EntitySqlMapping getSubEntitySqlMapping() {
return EntityManagementFactory.defaultManagementFactory().getEntitySqlMapping(subClass);
}
}