package com.javaeye.jert.domain.query.impl;
import java.util.List;
import com.javaeye.jert.domain.query.Query;
import com.javaeye.jert.domain.query.QueryParameter;
import com.javaeye.jert.domain.query.impl.part.PlainPart;
/**
* @author Quake Wang
* @since 2004-12-26
* @version $Revision: 1.2 $
*/
public class SimpleParameterQuery implements Query {
private PlainPart part;
public SimpleParameterQuery(String sql) {
this.part = new PlainPart(sql);
}
public String getSql(QueryParameter[] parameters) {
return part.getSql(parameters);
}
public List getParameterNames() {
return part.getParameterNames();
}
}