org.mentabean.sql.param.ParamSubQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-bean Show documentation
Show all versions of menta-bean Show documentation
An query helper and simple CRUD ORM.
package org.mentabean.sql.param;
import org.mentabean.jdbc.QueryBuilder.Query;
public class ParamSubQuery implements Param {
private Query query;
public ParamSubQuery(Query query) {
this.query = query;
}
@Override
public String paramInQuery() {
return "("+query.getSQL()+")";
}
@Override
public Object[] values() {
return query.getParamValues().toArray();
}
}