congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Fastpath.getOID
Code IndexAdd Tabnine to your IDE (free)

How to use
getOID
method
in
org.postgresql.fastpath.Fastpath

Best Java code snippets using org.postgresql.fastpath.Fastpath.getOID (Showing top 4 results out of 315)

origin: org.postgresql/postgresql

/**
 * This creates a large object, returning its OID.
 *
 * @param mode a bitmask describing different attributes of the new object
 * @return oid of new object
 * @throws SQLException on error
 */
public long createLO(int mode) throws SQLException {
 if (conn.getAutoCommit()) {
  throw new PSQLException(GT.tr("Large Objects may not be used in auto-commit mode."),
    PSQLState.NO_ACTIVE_SQL_TRANSACTION);
 }
 FastpathArg[] args = new FastpathArg[1];
 args[0] = new FastpathArg(mode);
 return fp.getOID("lo_creat", args);
}
origin: postgresql/postgresql

/**
 * This creates a large object, returning its OID
 *
 * @param mode a bitmask describing different attributes of the new object
 * @return oid of new object
 * @exception SQLException on error
 */
public long createLO(int mode) throws SQLException
{
  if (conn.getAutoCommit())
    throw new PSQLException(GT.tr("Large Objects may not be used in auto-commit mode."),
                PSQLState.NO_ACTIVE_SQL_TRANSACTION);
  FastpathArg args[] = new FastpathArg[1];
  args[0] = new FastpathArg(mode);
  return fp.getOID("lo_creat", args);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * This creates a large object, returning its OID
 *
 * @param mode a bitmask describing different attributes of the new object
 * @return oid of new object
 * @exception SQLException on error
 */
public long createLO(int mode) throws SQLException
{
  if (conn.getAutoCommit())
    throw new PSQLException(GT.tr("Large Objects may not be used in auto-commit mode."),
                PSQLState.NO_ACTIVE_SQL_TRANSACTION);
  FastpathArg args[] = new FastpathArg[1];
  args[0] = new FastpathArg(mode);
  return fp.getOID("lo_creat", args);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * This creates a large object, returning its OID
 *
 * @param mode a bitmask describing different attributes of the new object
 * @return oid of new object
 * @exception SQLException on error
 */
public long createLO(int mode) throws SQLException
{
  if (conn.getAutoCommit())
    throw new PSQLException(GT.tr("Large Objects may not be used in auto-commit mode."),
                PSQLState.NO_ACTIVE_SQL_TRANSACTION);
  FastpathArg args[] = new FastpathArg[1];
  args[0] = new FastpathArg(mode);
  return fp.getOID("lo_creat", args);
}
org.postgresql.fastpathFastpathgetOID

Javadoc

This convenience method assumes that the return value is an oid.

Popular methods of Fastpath

  • <init>
    Initialises the fastpath system
  • addFunctions
    This takes a ResultSet containing two columns. Column 1 contains the function name, Column 2 the oid
  • createOIDArg
    Creates a FastpathArg with an oid parameter. This is here instead of a constructor of FastpathArg be
  • fastpath
    Send a function call to the PostgreSQL backend by name. Note: the mapping for the procedure name to
  • getData
    This convenience method assumes that the return value is not an Integer
  • getID
    This returns the function id associated by its name.If addFunction() or addFunctions() have not been
  • getInteger
    This convenience method assumes that the return value is an Integer
  • getLong
    This convenience method assumes that the return value is a long (bigint).

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Notification (javax.management)
  • JOptionPane (javax.swing)
  • Best plugins for Eclipse
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