Codota Logo
SimpleParameterList.setLiteralParameter
Code IndexAdd Codota to your IDE (free)

How to use
setLiteralParameter
method
in
org.postgresql.core.v2.SimpleParameterList

Best Java code snippets using org.postgresql.core.v2.SimpleParameterList.setLiteralParameter (Showing top 6 results out of 315)

  • Common ways to obtain SimpleParameterList
private void myMethod () {
SimpleParameterList s =
  • Codota IconV2Query v2Query;(SimpleParameterList) v2Query.createParameterList()
  • Codota Iconnew SimpleParameterList(paramCount, useEStringSyntax)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

public void setIntParameter(int index, int value) throws SQLException {
  setLiteralParameter(index, "" + value, Oid.INT4);
}
origin: postgresql/postgresql

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);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void setIntParameter(int index, int value) throws SQLException {
  setLiteralParameter(index, "" + value, Oid.INT4);
}
origin: org.ancoron.postgresql/org.postgresql

public void setIntParameter(int index, int value) throws SQLException {
  setLiteralParameter(index, "" + value, Oid.INT4);
}
origin: org.ancoron.postgresql/org.postgresql

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);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

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);
}
org.postgresql.core.v2SimpleParameterListsetLiteralParameter

Popular methods of SimpleParameterList

  • <init>
  • checkAllParametersSet
  • getParameterCount
  • streamBytea
    Send a streamable bytea encoded as a text representation with an arbitary encoding.
  • writeV2Value

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now