- Common ways to obtain SimpleParameterList
private void myMethod () {SimpleParameterList s =
V2Query v2Query;(SimpleParameterList) v2Query.createParameterList()
new SimpleParameterList(paramCount, useEStringSyntax)
- Smart code suggestions by Codota
}
public void setIntParameter(int index, int value) throws SQLException { setLiteralParameter(index, "" + value, Oid.INT4); }
public void setStringParameter(int index, String value, int oid) throws SQLException { StringBuffer sbuf = new StringBuffer(2 + value.length() * 11 / 10); // Add 10% for escaping. if (useEStringSyntax) sbuf.append(' ').append('E'); sbuf.append('\''); Utils.appendEscapedLiteral(sbuf, value, false); sbuf.append('\''); setLiteralParameter(index, sbuf.toString(), oid); }
public void setIntParameter(int index, int value) throws SQLException { setLiteralParameter(index, "" + value, Oid.INT4); }
public void setIntParameter(int index, int value) throws SQLException { setLiteralParameter(index, "" + value, Oid.INT4); }
public void setStringParameter(int index, String value, int oid) throws SQLException { StringBuffer sbuf = new StringBuffer(2 + value.length() * 11 / 10); // Add 10% for escaping. if (useEStringSyntax) sbuf.append(' ').append('E'); sbuf.append('\''); Utils.appendEscapedLiteral(sbuf, value, false); sbuf.append('\''); setLiteralParameter(index, sbuf.toString(), oid); }
public void setStringParameter(int index, String value, int oid) throws SQLException { StringBuffer sbuf = new StringBuffer(2 + value.length() * 11 / 10); // Add 10% for escaping. if (useEStringSyntax) sbuf.append(' ').append('E'); sbuf.append('\''); Utils.appendEscapedLiteral(sbuf, value, false); sbuf.append('\''); setLiteralParameter(index, sbuf.toString(), oid); }