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

How to use
setLiteralParameter
method
in
org.postgresql.core.ParameterList

Best Java code snippets using org.postgresql.core.ParameterList.setLiteralParameter (Showing top 4 results out of 315)

  • Common ways to obtain ParameterList
private void myMethod () {
ParameterList p =
  • Codota IconSimpleParameterList[] subparams;new CompositeParameterList(subparams, offsets)
  • Codota IconQueryExecutor queryExecutor;queryExecutor.createFastpathParameters(count)
  • Codota Iconnew FastpathParameterList(paramCount)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

/**
 * Note if s is a String it should be escaped by the caller to avoid SQL injection attacks. It is
 * not done here for efficiency reasons as most calls to this method do not require escaping as
 * the source of the string is known safe (i.e. {@code Integer.toString()})
 *
 * @param paramIndex parameter index
 * @param s value (the value should already be escaped)
 * @param oid type oid
 * @throws SQLException if something goes wrong
 */
protected void bindLiteral(int paramIndex, String s, int oid) throws SQLException {
 preparedParameters.setLiteralParameter(paramIndex, s, oid);
}
origin: postgresql/postgresql

protected void bindLiteral(int paramIndex, String s, int oid) throws SQLException
{
  if(adjustIndex)
    paramIndex--;
  preparedParameters.setLiteralParameter(paramIndex, s, oid);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

protected void bindLiteral(int paramIndex, String s, int oid) throws SQLException
{
  if(adjustIndex)
    paramIndex--;
  preparedParameters.setLiteralParameter(paramIndex, s, oid);
}
origin: org.ancoron.postgresql/org.postgresql

protected void bindLiteral(int paramIndex, String s, int oid) throws SQLException
{
  if(adjustIndex)
    paramIndex--;
  preparedParameters.setLiteralParameter(paramIndex, s, oid);
}
org.postgresql.coreParameterListsetLiteralParameter

Javadoc

Binds a String value that is an unquoted literal to the server's query parser (for example, a bare integer) to a parameter. Associated with the parameter is a typename for the parameter that should correspond to an entry in pg_types.

Popular methods of ParameterList

  • clear
    Unbind all parameter values bound in this list.
  • copy
    Perform a shallow copy of this ParameterList, returning a new instance (still suitable for passing t
  • getInParameterCount
    Get the number of IN parameters in this list.
  • getOutParameterCount
    Get the number of OUT parameters in this list.
  • getParameterCount
    Get the number of parameters in this list. This value never changes for a particular instance, and m
  • getTypeOIDs
    Return the oids of the parameters in this list. May be null for a ParameterList that does not suppor
  • registerOutParameter
  • setBytea
    Binds a binary bytea value stored as a bytearray to a parameter. The parameter's type is implicitly
  • setNull
    Binds a SQL NULL value to a parameter. Associated with the parameter is a typename for the parameter
  • setStringParameter
    Binds a String value that needs to be quoted for the server's parser to understand (for example, a t
  • toString
    Return a human-readable representation of a particular parameter in this ParameterList. If the param
  • appendAll
    Use this operation to append more parameters to the current list.
  • toString,
  • appendAll,
  • setBinaryParameter,
  • setText

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
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