congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Fastpath.createOIDArg
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: postgresql/postgresql

/**
 * This deletes a large object.
 *
 * @param oid describing object to delete
 * @exception SQLException on error
 */
public void delete(long oid) throws SQLException
{
  FastpathArg args[] = new FastpathArg[1];
  args[0] = Fastpath.createOIDArg(oid);
  fp.fastpath("lo_unlink", false, args);
}
origin: org.postgresql/postgresql

/**
 * This deletes a large object.
 *
 * @param oid describing object to delete
 * @throws SQLException on error
 */
public void delete(long oid) throws SQLException {
 FastpathArg[] args = new FastpathArg[1];
 args[0] = Fastpath.createOIDArg(oid);
 fp.fastpath("lo_unlink", args);
}
origin: postgresql/postgresql

/**
 * This opens a large object.
 *
 * <p>If the object does not exist, then an SQLException is thrown.
 *
 * @param fp FastPath API for the connection to use
 * @param oid of the Large Object to open
 * @param mode Mode of opening the large object
 * (defined in LargeObjectManager)
 * @exception SQLException if a database-access error occurs.
 * @see org.postgresql.largeobject.LargeObjectManager
 */
protected LargeObject(Fastpath fp, long oid, int mode) throws SQLException
{
  this.fp = fp;
  this.oid = oid;
  this.mode = mode;
  FastpathArg args[] = new FastpathArg[2];
  args[0] = Fastpath.createOIDArg(oid);
  args[1] = new FastpathArg(mode);
  this.fd = fp.getInteger("lo_open", args);
}
origin: org.postgresql/postgresql

/**
 * <p>This opens a large object.</p>
 *
 * <p>If the object does not exist, then an SQLException is thrown.</p>
 *
 * @param fp FastPath API for the connection to use
 * @param oid of the Large Object to open
 * @param mode Mode of opening the large object
 * @param conn the connection to the database used to access this LOB
 * @param commitOnClose commit the transaction when this LOB will be closed (defined in
 *        LargeObjectManager)
 * @throws SQLException if a database-access error occurs.
 * @see org.postgresql.largeobject.LargeObjectManager
 */
protected LargeObject(Fastpath fp, long oid, int mode, BaseConnection conn, boolean commitOnClose)
  throws SQLException {
 this.fp = fp;
 this.oid = oid;
 this.mode = mode;
 if (commitOnClose) {
  this.commitOnClose = true;
  this.conn = conn;
 } else {
  this.commitOnClose = false;
 }
 FastpathArg[] args = new FastpathArg[2];
 args[0] = Fastpath.createOIDArg(oid);
 args[1] = new FastpathArg(mode);
 this.fd = fp.getInteger("lo_open", args);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * This deletes a large object.
 *
 * @param oid describing object to delete
 * @exception SQLException on error
 */
public void delete(long oid) throws SQLException
{
  FastpathArg args[] = new FastpathArg[1];
  args[0] = Fastpath.createOIDArg(oid);
  fp.fastpath("lo_unlink", false, args);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * This deletes a large object.
 *
 * @param oid describing object to delete
 * @exception SQLException on error
 */
public void delete(long oid) throws SQLException
{
  FastpathArg args[] = new FastpathArg[1];
  args[0] = Fastpath.createOIDArg(oid);
  fp.fastpath("lo_unlink", false, args);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * This opens a large object.
 *
 * <p>If the object does not exist, then an SQLException is thrown.
 *
 * @param fp FastPath API for the connection to use
 * @param oid of the Large Object to open
 * @param mode Mode of opening the large object
 * (defined in LargeObjectManager)
 * @exception SQLException if a database-access error occurs.
 * @see org.postgresql.largeobject.LargeObjectManager
 */
protected LargeObject(Fastpath fp, long oid, int mode) throws SQLException
{
  this.fp = fp;
  this.oid = oid;
  this.mode = mode;
  FastpathArg args[] = new FastpathArg[2];
  args[0] = Fastpath.createOIDArg(oid);
  args[1] = new FastpathArg(mode);
  this.fd = fp.getInteger("lo_open", args);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * This opens a large object.
 *
 * <p>If the object does not exist, then an SQLException is thrown.
 *
 * @param fp FastPath API for the connection to use
 * @param oid of the Large Object to open
 * @param mode Mode of opening the large object
 * (defined in LargeObjectManager)
 * @exception SQLException if a database-access error occurs.
 * @see org.postgresql.largeobject.LargeObjectManager
 */
protected LargeObject(Fastpath fp, long oid, int mode) throws SQLException
{
  this.fp = fp;
  this.oid = oid;
  this.mode = mode;
  FastpathArg args[] = new FastpathArg[2];
  args[0] = Fastpath.createOIDArg(oid);
  args[1] = new FastpathArg(mode);
  this.fd = fp.getInteger("lo_open", args);
}
org.postgresql.fastpathFastpathcreateOIDArg

Javadoc

Creates a FastpathArg with an oid parameter. This is here instead of a constructor of FastpathArg because the constructor can't tell the difference between an long that's really int8 and a long thats 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
  • 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
  • getOID
    This convenience method assumes that the return value is an oid.
  • getLong
    This convenience method assumes that the return value is a long (bigint).

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Collectors (java.util.stream)
  • JFrame (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now