Tabnine Logo
ParameterList.copy
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: postgresql/postgresql

public void addBatch() throws SQLException
{
  checkClosed();
  if (batchStatements == null)
  {
    batchStatements = new ArrayList();
    batchParameters = new ArrayList();
  }
  // we need to create copies of our parameters, otherwise the values can be changed
  batchStatements.add(preparedQuery);
  batchParameters.add(preparedParameters.copy());
}
origin: org.postgresql/postgresql

public void addBatch() throws SQLException {
 checkClosed();
 if (batchStatements == null) {
  batchStatements = new ArrayList<Query>();
  batchParameters = new ArrayList<ParameterList>();
 }
 // we need to create copies of our parameters, otherwise the values can be changed
 batchParameters.add(preparedParameters.copy());
 Query query = preparedQuery.query;
 if (!(query instanceof BatchedQuery) || batchStatements.isEmpty()) {
  batchStatements.add(query);
 }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public void addBatch() throws SQLException
{
  checkClosed();
  if (batchStatements == null)
  {
    batchStatements = new ArrayList();
    batchParameters = new ArrayList();
  }
  // we need to create copies of our parameters, otherwise the values can be changed
  batchStatements.add(preparedQuery);
  batchParameters.add(preparedParameters.copy());
}
origin: org.ancoron.postgresql/org.postgresql

public void addBatch() throws SQLException
{
  checkClosed();
  if (batchStatements == null)
  {
    batchStatements = new ArrayList();
    batchParameters = new ArrayList();
  }
  // we need to create copies of our parameters, otherwise the values can be changed
  batchStatements.add(preparedQuery);
  batchParameters.add(preparedParameters.copy());
}
org.postgresql.coreParameterListcopy

Javadoc

Perform a shallow copy of this ParameterList, returning a new instance (still suitable for passing to the owning Query). If this ParameterList is immutable, copy() may return the same immutable object.

Popular methods of ParameterList

  • clear
    Unbind all parameter values bound in this list.
  • 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
  • setLiteralParameter
    Binds a String value that is an unquoted literal to the server's query parser (for example, a bare i
  • 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

  • Start an intent from android
  • getSystemService (Context)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ImageIO (javax.imageio)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now