Tabnine Logo
SimpleQuery.setPortalDescribed
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.postgresql/postgresql

private void sendDescribePortal(SimpleQuery query, Portal portal) throws IOException {
 //
 // Send Describe.
 //
 LOGGER.log(Level.FINEST, " FE=> Describe(portal={0})", portal);
 byte[] encodedPortalName = (portal == null ? null : portal.getEncodedPortalName());
 // Total size = 4 (size field) + 1 (describe type, 'P') + N + 1 (portal name)
 int encodedSize = 4 + 1 + (encodedPortalName == null ? 0 : encodedPortalName.length) + 1;
 pgStream.sendChar('D'); // Describe
 pgStream.sendInteger4(encodedSize); // message size
 pgStream.sendChar('P'); // Describe (Portal)
 if (encodedPortalName != null) {
  pgStream.send(encodedPortalName); // portal name to close
 }
 pgStream.sendChar(0); // end of portal name
 pendingDescribePortalQueue.add(query);
 query.setPortalDescribed(true);
}
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: postgresql/postgresql

private void sendDescribePortal(SimpleQuery query, Portal portal) throws IOException {
  //
  // Send Describe.
  //
  if (logger.logDebug())
  {
    logger.debug(" FE=> Describe(portal=" + portal + ")");
  }
  byte[] encodedPortalName = (portal == null ? null : portal.getEncodedPortalName());
  // Total size = 4 (size field) + 1 (describe type, 'P') + N + 1 (portal name)
  int encodedSize = 4 + 1 + (encodedPortalName == null ? 0 : encodedPortalName.length) + 1;
  pgStream.SendChar('D');               // Describe
  pgStream.SendInteger4(encodedSize); // message size
  pgStream.SendChar('P');               // Describe (Portal)
  if (encodedPortalName != null)
    pgStream.Send(encodedPortalName); // portal name to close
  pgStream.SendChar(0);                 // end of portal name
  pendingDescribePortalQueue.add(query);
  query.setPortalDescribed(true);
}
origin: org.postgresql/postgresql

SimpleQuery describePortalQuery = pendingDescribePortalQueue.removeFirst();
LOGGER.log(Level.FINEST, " FE marking setPortalDescribed(false) for query {0}", describePortalQuery);
describePortalQuery.setPortalDescribed(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);
}
origin: org.ancoron.postgresql/org.postgresql

private void sendDescribePortal(SimpleQuery query, Portal portal) throws IOException {
  //
  // Send Describe.
  //
  if (logger.logDebug())
  {
    logger.debug(" FE=> Describe(portal=" + portal + ")");
  }
  byte[] encodedPortalName = (portal == null ? null : portal.getEncodedPortalName());
  // Total size = 4 (size field) + 1 (describe type, 'P') + N + 1 (portal name)
  int encodedSize = 4 + 1 + (encodedPortalName == null ? 0 : encodedPortalName.length) + 1;
  pgStream.SendChar('D');               // Describe
  pgStream.SendInteger4(encodedSize); // message size
  pgStream.SendChar('P');               // Describe (Portal)
  if (encodedPortalName != null)
    pgStream.Send(encodedPortalName); // portal name to close
  pgStream.SendChar(0);                 // end of portal name
  pendingDescribePortalQueue.add(query);
  query.setPortalDescribed(true);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private void sendDescribePortal(SimpleQuery query, Portal portal) throws IOException {
  //
  // Send Describe.
  //
  if (logger.logDebug())
  {
    logger.debug(" FE=> Describe(portal=" + portal + ")");
  }
  byte[] encodedPortalName = (portal == null ? null : portal.getEncodedPortalName());
  // Total size = 4 (size field) + 1 (describe type, 'P') + N + 1 (portal name)
  int encodedSize = 4 + 1 + (encodedPortalName == null ? 0 : encodedPortalName.length) + 1;
  pgStream.SendChar('D');               // Describe
  pgStream.SendInteger4(encodedSize); // message size
  pgStream.SendChar('P');               // Describe (Portal)
  if (encodedPortalName != null)
    pgStream.Send(encodedPortalName); // portal name to close
  pgStream.SendChar(0);                 // end of portal name
  pendingDescribePortalQueue.add(query);
  query.setPortalDescribed(true);
}
org.postgresql.core.v3SimpleQuerysetPortalDescribed

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,
  • setStatementDescribed,
  • setStatementName,
  • toString,
  • unprepare,
  • getFragments,
  • getStatementTypes,
  • setStatementTypes

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JComboBox (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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