Codota Logo
AbstractJdbc4Connection.getTypeInfo
Code IndexAdd Codota to your IDE (free)

How to use
getTypeInfo
method
in
org.postgresql.jdbc4.AbstractJdbc4Connection

Best Java code snippets using org.postgresql.jdbc4.AbstractJdbc4Connection.getTypeInfo (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

public AbstractJdbc4Connection(String host, int port, String user, String database, Properties info, String url) throws SQLException {
  super(host, port, user, database, info, url);
  TypeInfo types = getTypeInfo();
  if (haveMinimumServerVersion("8.3")) {
    types.addCoreType("xml", Oid.XML, java.sql.Types.SQLXML, "java.sql.SQLXML", Oid.XML_ARRAY);
  }
  _clientInfo = new Properties();
  if (haveMinimumServerVersion("9.0")) {
    String appName = info.getProperty("ApplicationName");
    if (appName == null) {
      appName = "";
    }
    _clientInfo.put("ApplicationName", appName);
  }
}
origin: postgresql/postgresql

public Array createArrayOf(String typeName, Object[] elements) throws SQLException
{
  checkClosed();
  int oid = getTypeInfo().getPGArrayType(typeName);
  if (oid == Oid.UNSPECIFIED)
    throw new PSQLException(GT.tr("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME);
  StringBuffer sb = new StringBuffer();
  appendArray(sb, elements);
  // This will not work once we have a JDBC 5,
  // but it'll do for now.
  return new Jdbc4Array(this, oid, sb.toString());
}
origin: org.ancoron.postgresql/org.postgresql

public AbstractJdbc4Connection(String host, int port, String user, String database, Properties info, String url) throws SQLException {
  super(host, port, user, database, info, url);
  TypeInfo types = getTypeInfo();
  if (haveMinimumServerVersion("8.3")) {
    types.addCoreType("xml", Oid.XML, java.sql.Types.SQLXML, "java.sql.SQLXML", Oid.XML_ARRAY);
  }
  _clientInfo = new Properties();
  if (haveMinimumServerVersion("9.0")) {
    String appName = info.getProperty("ApplicationName");
    if (appName == null) {
      appName = "";
    }
    _clientInfo.put("ApplicationName", appName);
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public AbstractJdbc4Connection(String host, int port, String user, String database, Properties info, String url) throws SQLException {
  super(host, port, user, database, info, url);
  TypeInfo types = getTypeInfo();
  if (haveMinimumServerVersion("8.3")) {
    types.addCoreType("xml", Oid.XML, java.sql.Types.SQLXML, "java.sql.SQLXML", Oid.XML_ARRAY);
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public Array createArrayOf(String typeName, Object[] elements) throws SQLException
{
  int oid = getTypeInfo().getPGArrayType(typeName);
  if (oid == Oid.UNSPECIFIED)
    throw new PSQLException(GT.tr("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME);
  StringBuffer sb = new StringBuffer();
  appendArray(sb, elements);
  // This will not work once we have a JDBC 5,
  // but it'll do for now.
  return new Jdbc4Array(this, oid, sb.toString());
}
origin: org.ancoron.postgresql/org.postgresql

public Array createArrayOf(String typeName, Object[] elements) throws SQLException
{
  checkClosed();
  int oid = getTypeInfo().getPGArrayType(typeName);
  if (oid == Oid.UNSPECIFIED)
    throw new PSQLException(GT.tr("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME);
  StringBuffer sb = new StringBuffer();
  appendArray(sb, elements);
  // This will not work once we have a JDBC 5,
  // but it'll do for now.
  return new Jdbc4Array(this, oid, sb.toString());
}
org.postgresql.jdbc4AbstractJdbc4ConnectiongetTypeInfo

Popular methods of AbstractJdbc4Connection

  • appendArray
  • haveMinimumServerVersion
  • checkClosed
  • execSQLUpdate
  • getStandardConformingStrings
  • setClientInfo

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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