Tabnine Logo
Fastpath.getInteger
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: postgresql/postgresql

/**
 * This convenience method assumes that the return value is an oid.
 * @param name Function name
 * @param args Function arguments
 * @exception SQLException if a database-access error occurs or no result
 */
public long getOID(String name, FastpathArg[] args) throws SQLException
{
  long oid = getInteger(name, args);
  if (oid < 0)
    oid += NUM_OIDS;
  return oid;
}
origin: org.postgresql/postgresql

/**
 * This convenience method assumes that the return value is an oid.
 *
 * @param name Function name
 * @param args Function arguments
 * @return oid of the given call
 * @throws SQLException if a database-access error occurs or no result
 */
public long getOID(String name, FastpathArg[] args) throws SQLException {
 long oid = getInteger(name, args);
 if (oid < 0) {
  oid += NUM_OIDS;
 }
 return oid;
}
origin: org.postgresql/postgresql

/**
 * @return the current position within the object
 * @throws SQLException if a database-access error occurs.
 */
public int tell() throws SQLException {
 FastpathArg[] args = new FastpathArg[1];
 args[0] = new FastpathArg(fd);
 return fp.getInteger("lo_tell", args);
}
origin: postgresql/postgresql

/**
 * @return the current position within the object
 * @exception SQLException if a database-access error occurs.
 */
public int tell() throws SQLException
{
  FastpathArg args[] = new FastpathArg[1];
  args[0] = new FastpathArg(fd);
  return fp.getInteger("lo_tell", args);
}
origin: org.postgresql/postgresql

/**
 * Truncates the large object to the given length in bytes. If the number of bytes is larger than
 * the current large object length, the large object will be filled with zero bytes. This method
 * does not modify the current file offset.
 *
 * @param len given length in bytes
 * @throws SQLException if something goes wrong
 */
public void truncate64(long len) throws SQLException {
 FastpathArg[] args = new FastpathArg[2];
 args[0] = new FastpathArg(fd);
 args[1] = new FastpathArg(len);
 fp.getInteger("lo_truncate64", args);
}
origin: org.postgresql/postgresql

/**
 * Truncates the large object to the given length in bytes. If the number of bytes is larger than
 * the current large object length, the large object will be filled with zero bytes. This method
 * does not modify the current file offset.
 *
 * @param len given length in bytes
 * @throws SQLException if something goes wrong
 */
public void truncate(int len) throws SQLException {
 FastpathArg[] args = new FastpathArg[2];
 args[0] = new FastpathArg(fd);
 args[1] = new FastpathArg(len);
 fp.getInteger("lo_truncate", args);
}
origin: postgresql/postgresql

/**
 * Truncates the large object to the given length in bytes.
 * If the number of bytes is larger than the current large
 * object length, the large object will be filled with zero
 * bytes.  This method does not modify the current file offset.
 */
public void truncate(int len) throws SQLException
{
  FastpathArg args[] = new FastpathArg[2];
  args[0] = new FastpathArg(fd);
  args[1] = new FastpathArg(len);
  fp.getInteger("lo_truncate", 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 convenience method assumes that the return value is an oid.
 * @param name Function name
 * @param args Function arguments
 * @exception SQLException if a database-access error occurs or no result
 */
public long getOID(String name, FastpathArg[] args) throws SQLException
{
  long oid = getInteger(name, args);
  if (oid < 0)
    oid += NUM_OIDS;
  return oid;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * This convenience method assumes that the return value is an oid.
 * @param name Function name
 * @param args Function arguments
 * @exception SQLException if a database-access error occurs or no result
 */
public long getOID(String name, FastpathArg[] args) throws SQLException
{
  long oid = getInteger(name, args);
  if (oid < 0)
    oid += NUM_OIDS;
  return oid;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * @return the current position within the object
 * @exception SQLException if a database-access error occurs.
 */
public int tell() throws SQLException
{
  FastpathArg args[] = new FastpathArg[1];
  args[0] = new FastpathArg(fd);
  return fp.getInteger("lo_tell", args);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * @return the current position within the object
 * @exception SQLException if a database-access error occurs.
 */
public int tell() throws SQLException
{
  FastpathArg args[] = new FastpathArg[1];
  args[0] = new FastpathArg(fd);
  return fp.getInteger("lo_tell", args);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Truncates the large object to the given length in bytes.
 * If the number of bytes is larger than the current large
 * object length, the large object will be filled with zero
 * bytes.  This method does not modify the current file offset.
 */
public void truncate(int len) throws SQLException
{
  FastpathArg args[] = new FastpathArg[2];
  args[0] = new FastpathArg(fd);
  args[1] = new FastpathArg(len);
  fp.getInteger("lo_truncate", args);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Truncates the large object to the given length in bytes.
 * If the number of bytes is larger than the current large
 * object length, the large object will be filled with zero
 * bytes.  This method does not modify the current file offset.
 */
public void truncate(int len) throws SQLException
{
  FastpathArg args[] = new FastpathArg[2];
  args[0] = new FastpathArg(fd);
  args[1] = new FastpathArg(len);
  fp.getInteger("lo_truncate", 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.fastpathFastpathgetInteger

Javadoc

This convenience method assumes that the return value is an Integer

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
  • 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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Sublime Text for Python
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