Codota Logo
SimpleQuery.setStatementDescribed
Code IndexAdd Codota to your IDE (free)

How to use
setStatementDescribed
method
in
org.postgresql.core.v3.SimpleQuery

Best Java code snippets using org.postgresql.core.v3.SimpleQuery.setStatementDescribed (Showing top 5 results out of 315)

  • Common ways to obtain SimpleQuery
private void myMethod () {
SimpleQuery s =
  • Codota IconArrayList arrayList;(SimpleQuery) arrayList.get(describePortalIndex++)
  • Codota IconString[] fragments;ProtocolConnectionImpl protoConnection;new SimpleQuery(fragments, protoConnection)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

private void sendDescribeStatement(SimpleQuery query, SimpleParameterList params,
  boolean describeOnly) throws IOException {
 // Send Statement Describe
 LOGGER.log(Level.FINEST, " FE=> Describe(statement={0})", query.getStatementName());
 byte[] encodedStatementName = query.getEncodedStatementName();
 // Total size = 4 (size field) + 1 (describe type, 'S') + N + 1 (portal name)
 int encodedSize = 4 + 1 + (encodedStatementName == null ? 0 : encodedStatementName.length) + 1;
 pgStream.sendChar('D'); // Describe
 pgStream.sendInteger4(encodedSize); // Message size
 pgStream.sendChar('S'); // Describe (Statement);
 if (encodedStatementName != null) {
  pgStream.send(encodedStatementName); // Statement name
 }
 pgStream.sendChar(0); // end message
 // Note: statement name can change over time for the same query object
 // Thus we take a snapshot of the query name
 pendingDescribeStatementQueue.add(
   new DescribeRequest(query, params, describeOnly, query.getStatementName()));
 pendingDescribePortalQueue.add(query);
 query.setStatementDescribed(true);
 query.setPortalDescribed(true);
}
origin: postgresql/postgresql

private void sendDescribeStatement(SimpleQuery query, SimpleParameterList params, boolean describeOnly) throws IOException {
  // Send Statement Describe
  if (logger.logDebug())
  {
    logger.debug(" FE=> Describe(statement=" + query.getStatementName()+")");
  }
  byte[] encodedStatementName = query.getEncodedStatementName();
  // Total size = 4 (size field) + 1 (describe type, 'S') + N + 1 (portal name)
  int encodedSize = 4 + 1 + (encodedStatementName == null ? 0 : encodedStatementName.length) + 1;
  pgStream.SendChar('D');                     // Describe
  pgStream.SendInteger4(encodedSize);         // Message size
  pgStream.SendChar('S');                     // Describe (Statement);
  if (encodedStatementName != null)
    pgStream.Send(encodedStatementName);    // Statement name
  pgStream.SendChar(0);                       // end message
  pendingDescribeStatementQueue.add(new Object[]{query, params, new Boolean(describeOnly), query.getStatementName()});
  pendingDescribePortalQueue.add(query);
  query.setStatementDescribed(true);
  query.setPortalDescribed(true);
}
origin: org.postgresql/postgresql

DescribeRequest request = pendingDescribeStatementQueue.removeFirst();
LOGGER.log(Level.FINEST, " FE marking setStatementDescribed(false) for query {0}", request.query);
request.query.setStatementDescribed(false);
origin: org.ancoron.postgresql/org.postgresql

private void sendDescribeStatement(SimpleQuery query, SimpleParameterList params, boolean describeOnly) throws IOException {
  // Send Statement Describe
  if (logger.logDebug())
  {
    logger.debug(" FE=> Describe(statement=" + query.getStatementName()+")");
  }
  byte[] encodedStatementName = query.getEncodedStatementName();
  // Total size = 4 (size field) + 1 (describe type, 'S') + N + 1 (portal name)
  int encodedSize = 4 + 1 + (encodedStatementName == null ? 0 : encodedStatementName.length) + 1;
  pgStream.SendChar('D');                     // Describe
  pgStream.SendInteger4(encodedSize);         // Message size
  pgStream.SendChar('S');                     // Describe (Statement);
  if (encodedStatementName != null)
    pgStream.Send(encodedStatementName);    // Statement name
  pgStream.SendChar(0);                       // end message
  pendingDescribeStatementQueue.add(new Object[]{query, params, new Boolean(describeOnly), query.getStatementName()});
  pendingDescribePortalQueue.add(query);
  query.setStatementDescribed(true);
  query.setPortalDescribed(true);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private void sendDescribeStatement(SimpleQuery query, SimpleParameterList params, boolean describeOnly) throws IOException {
  // Send Statement Describe
  if (logger.logDebug())
  {
    logger.debug(" FE=> Describe(statement=" + query.getStatementName()+")");
  }
  byte[] encodedStatementName = query.getEncodedStatementName();
  // Total size = 4 (size field) + 1 (describe type, 'S') + N + 1 (portal name)
  int encodedSize = 4 + 1 + (encodedStatementName == null ? 0 : encodedStatementName.length) + 1;
  pgStream.SendChar('D');                     // Describe
  pgStream.SendInteger4(encodedSize);         // Message size
  pgStream.SendChar('S');                     // Describe (Statement);
  if (encodedStatementName != null)
    pgStream.Send(encodedStatementName);    // Statement name
  pgStream.SendChar(0);                       // end message
  pendingDescribeStatementQueue.add(new Object[]{query, params, new Boolean(describeOnly), query.getStatementName()});
  pendingDescribePortalQueue.add(query);
  query.setStatementDescribed(true);
  query.setPortalDescribed(true);
}
org.postgresql.core.v3SimpleQuerysetStatementDescribed

Popular methods of SimpleQuery

  • <init>
  • close
  • createParameterList
  • getEncodedStatementName
  • getFields
    Returns the fields that this query will return. If the result set fields are not known returns null.
  • getStatementName
  • hasUnresolvedTypes
  • isPortalDescribed
  • isPreparedFor
  • isStatementDescribed
  • setCleanupRef
  • setFields
    Sets the fields that this query will return.
  • setCleanupRef,
  • setFields,
  • setPortalDescribed,
  • setStatementName,
  • toString,
  • unprepare,
  • getFragments,
  • getStatementTypes,
  • setStatementTypes

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JOptionPane (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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