All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skynet.sql.core.EQ Maven / Gradle / Ivy

The newest version!
package com.skynet.sql.core;

public class EQ implements Criteria{

    private String name;
    private Object value;

    public EQ(String pName, Object pValue) {
        name = pName;
        value = pValue;
    }

    @Override
    public String toSql(DBQueryBuilder pDBQueryBuilder) {

        //set parameter
        pDBQueryBuilder.parameter(value);

        //generate sql
        return "(" + pDBQueryBuilder.name(name) + " = ?"  + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy