Package com.javaeye.jert.domain.query.impl

Source Code of com.javaeye.jert.domain.query.impl.SimpleParameterQuery

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();
    }


}
TOP

Related Classes of com.javaeye.jert.domain.query.impl.SimpleParameterQuery

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.