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

How to use
streamBytea
method
in
org.postgresql.core.v3.SimpleParameterList

Best Java code snippets using org.postgresql.core.v3.SimpleParameterList.streamBytea (Showing top 4 results out of 315)

  • Common ways to obtain SimpleParameterList
private void myMethod () {
SimpleParameterList s =
  • Codota Icon(SimpleParameterList) subqueries[i].createParameterList()
  • Codota Icon(SimpleParameterList) subparams[sub].copy()
  • Codota IconProtocolConnectionImpl protoConnection;new SimpleParameterList(paramCount, protoConnection)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

void writeV3Value(int index, PGStream pgStream) throws IOException {
 --index;
 // Null?
 if (paramValues[index] == NULL_OBJECT) {
  throw new IllegalArgumentException("can't writeV3Value() on a null parameter");
 }
 // Directly encoded?
 if (paramValues[index] instanceof byte[]) {
  pgStream.send((byte[]) paramValues[index]);
  return;
 }
 // Binary-format bytea?
 if (paramValues[index] instanceof StreamWrapper) {
  streamBytea(pgStream, (StreamWrapper) paramValues[index]);
  return;
 }
 // Encoded string.
 if (encoded[index] == null) {
  encoded[index] = Utils.encodeUTF8((String) paramValues[index]);
 }
 pgStream.send(encoded[index]);
}
origin: postgresql/postgresql

void writeV3Value(int index, PGStream pgStream) throws IOException {
  --index;
  // Null?
  if (paramValues[index] == NULL_OBJECT)
    throw new IllegalArgumentException("can't writeV3Value() on a null parameter");
  // Directly encoded?
  if (paramValues[index] instanceof byte[])
  {
    pgStream.Send((byte[])paramValues[index]);
    return ;
  }
  // Binary-format bytea?
  if (paramValues[index] instanceof StreamWrapper)
  {
    streamBytea(pgStream, (StreamWrapper)paramValues[index]);
    return ;
  }
  // Encoded string.
  if (encoded[index] == null)
    encoded[index] = Utils.encodeUTF8((String)paramValues[index]);
  pgStream.Send(encoded[index]);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

void writeV3Value(int index, PGStream pgStream) throws IOException {
  --index;
  // Null?
  if (paramValues[index] == NULL_OBJECT)
    throw new IllegalArgumentException("can't writeV3Value() on a null parameter");
  // Directly encoded?
  if (paramValues[index] instanceof byte[])
  {
    pgStream.Send((byte[])paramValues[index]);
    return ;
  }
  // Binary-format bytea?
  if (paramValues[index] instanceof StreamWrapper)
  {
    streamBytea(pgStream, (StreamWrapper)paramValues[index]);
    return ;
  }
  // Encoded string.
  if (encoded[index] == null)
    encoded[index] = Utils.encodeUTF8((String)paramValues[index]);
  pgStream.Send(encoded[index]);
}
origin: org.ancoron.postgresql/org.postgresql

void writeV3Value(int index, PGStream pgStream) throws IOException {
  --index;
  // Null?
  if (paramValues[index] == NULL_OBJECT)
    throw new IllegalArgumentException("can't writeV3Value() on a null parameter");
  // Directly encoded?
  if (paramValues[index] instanceof byte[])
  {
    pgStream.Send((byte[])paramValues[index]);
    return ;
  }
  // Binary-format bytea?
  if (paramValues[index] instanceof StreamWrapper)
  {
    streamBytea(pgStream, (StreamWrapper)paramValues[index]);
    return ;
  }
  // Encoded string.
  if (encoded[index] == null)
    encoded[index] = Utils.encodeUTF8((String)paramValues[index]);
  pgStream.Send(encoded[index]);
}
org.postgresql.core.v3SimpleParameterListstreamBytea

Popular methods of SimpleParameterList

  • <init>
  • bind
  • checkAllParametersSet
  • clear
  • convertFunctionOutParameters
  • copy
  • getInParameterCount
  • getParameterCount
  • getTypeOID
  • getTypeOIDs
  • getV3Length
  • hasUnresolvedTypes
  • getV3Length,
  • hasUnresolvedTypes,
  • isBinary,
  • isNull,
  • setBytea,
  • setIntParameter,
  • setNull,
  • setResolvedType,
  • setStringParameter

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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