⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jdbc.sgml

📁 PostgreSQL7.4.6 for Linux
💻 SGML
📖 第 1 页 / 共 5 页
字号:
       <formalpara>        <title>See Also:</title>        <para>         <classname>LargeObjectManager</classname>        </para>       </formalpara>      </listitem>      <listitem><synopsis>public int getID(String name) throws SQLException</synopsis>       <para>        This returns the function id associated by its name If        <function>addFunction()</function> or <function>addFunctions()</function> have not been called for this        name, then an <classname>SQLException</classname> is thrown.       </para>      </listitem>     </itemizedlist>    </sect4>   </sect3>   <sect3>    <title>Class <classname>org.postgresql.fastpath.FastpathArg</classname></title><synopsis>public class FastpathArg extends Objectjava.lang.Object   |   +----org.postgresql.fastpath.FastpathArg</synopsis>    <para>     Each fast-path call requires an array of arguments, the number and     type dependent on the function being called.  This class     implements methods needed to provide this capability.    </para>    <para>     For an example on how to use this, refer to the     <classname>org.postgresql.LargeObject</classname> package.    </para>    <formalpara>     <title>See Also:</title>     <para>      <classname>Fastpath</classname>, <classname>LargeObjectManager</classname>, <classname>LargeObject</classname>     </para>    </formalpara>    <sect4>     <title>Constructors</title>     <itemizedlist>      <listitem><synopsis>public FastpathArg(int value)</synopsis>       <para>        Constructs an argument that consists of an integer value       </para>       <formalpara>        <title>Parameters:</title>        <para>         value - int value to set        </para>       </formalpara>      </listitem>      <listitem><synopsis>public FastpathArg(byte bytes[])</synopsis>       <para>        Constructs an argument that consists of an array of bytes       </para>       <formalpara>        <title>Parameters:</title>        <para>         bytes - array to store        </para>       </formalpara>      </listitem>      <listitem><synopsis>public FastpathArg(byte buf[],                   int off,                   int len)</synopsis>       <para>        Constructs an argument that consists of part of a byte array       </para>       <formalpara>        <title>Parameters:</title>        <para>         <variablelist>          <varlistentry>           <term><parameter>buf</></term>           <listitem>            <simpara>source array</simpara>           </listitem>          </varlistentry>          <varlistentry>           <term><parameter>off</parameter></term>           <listitem>            <simpara>offset within array</simpara>           </listitem>          </varlistentry>          <varlistentry>           <term><parameter>len</parameter></term>           <listitem>            <simpara>length of data to include</simpara>           </listitem>          </varlistentry>         </variablelist>        </para>       </formalpara>      </listitem>      <listitem><synopsis>public FastpathArg(String s)</synopsis>       <para>        Constructs an argument that consists of a String.       </para>      </listitem>     </itemizedlist>    </sect4>   </sect3>  </sect2>  <sect2>   <title>Geometric Data Types</title>   <para>    <productname>PostgreSQL</productname> has a set of data types that    can store geometric features into a table. These include single    points, lines, and polygons.  We support these types in Java with    the org.postgresql.geometric package.  It contains classes that    extend the org.postgresql.util.PGobject class.  Refer to that    class for details on how to implement your own data type handlers.   </para><programlisting>Class org.postgresql.geometric.PGboxjava.lang.Object   |   +----org.postgresql.util.PGobject           |           +----org.postgresql.geometric.PGbox   public class PGbox extends PGobject implements Serializable, Cloneable   This represents the box data type within <productname>PostgreSQL</productname>.Variables public PGpoint point[]          These are the two corner points of the box.Constructors public PGbox(double x1,              double y1,              double x2,              double y2)        Parameters:                x1 - first x coordinate                y1 - first y coordinate                x2 - second x coordinate                y2 - second y coordinate public PGbox(PGpoint p1,              PGpoint p2)        Parameters:                p1 - first point                p2 - second point public PGbox(String s) throws SQLException                                    Parameters:                s - Box definition in <productname>PostgreSQL</productname> syntax        Throws: SQLException                if definition is invalid                 public PGbox()          Required constructor              Methods public void setValue(String value) throws SQLException                          This method sets the value of this object. It should be overridden, but still called by subclasses.                                    Parameters:                value - a string representation of the value of the object        Throws: SQLException                thrown if value is invalid for this type        Overrides:                setValue in class PGobject public boolean equals(Object obj)        Parameters:                obj - Object to compare with                        Returns:                true if the two boxes are identical                  Overrides:                equals in class PGobject public Object clone()                  This must be overridden to allow the object to be cloned        Overrides:                clone in class PGobject    public String getValue()                Returns:                the PGbox in the syntax expected by <productname>PostgreSQL</productname>        Overrides:                getValue in class PGobject<!-- **************************************************************** -->Class org.postgresql.geometric.PGcirclejava.lang.Object   |   +----org.postgresql.util.PGobject           |           +----org.postgresql.geometric.PGcircle           public class PGcircle extends PGobject implements Serializable, Cloneable                  This represents <productname>PostgreSQL</productname>'s circle data type, consisting of a point and a radiusVariables public PGpoint center                     This is the center point  double radius                     This is the radius   Constructors    public PGcircle(double x,                 double y,                 double r)                  Parameters:               x - coordinate of center                y - coordinate of center                r - radius of circle public PGcircle(PGpoint c,                 double r)                  Parameters:                c - PGpoint describing the circle's center                r - radius of circle public PGcircle(String s) throws SQLException        Parameters:                s - definition of the circle in <productname>PostgreSQL</productname>'s syntax.        Throws: SQLException                on conversion failure public PGcircle()          This constructor is used by the driver.            Methods    public void setValue(String s) throws SQLException        Parameters:                s - definition of the circle in <productname>PostgreSQL</productname>'s syntax.        Throws: SQLException                on conversion failure        Overrides:                setValue in class PGobject public boolean equals(Object obj)        Parameters:                obj - Object to compare with                    Returns:                true if the two circles are identical        Overrides:                equals in class PGobject public Object clone()          This must be overridden to allow the object to be cloned        Overrides:                clone in class PGobject public String getValue()        Returns:                the PGcircle in the syntax expected by <productname>PostgreSQL</productname>                Overrides:                getValue in class PGobject<!-- **************************************************************** -->Class org.postgresql.geometric.PGlinejava.lang.Object   |   +----org.postgresql.util.PGobject           |           +----org.postgresql.geometric.PGline   public class PGline extends PGobject implements Serializable, Cloneable   This implements a line consisting of two points. Currently line is not yet implemented in the server, but this class ensures that when it's done were ready for it.Variables    public PGpoint point[]               These are the two points.Constructors public PGline(double x1,               double y1,               double x2,               double y2)        Parameters:                x1 - coordinate for first point                y1 - coordinate for first point                x2 - coordinate for second point                y2 - coordinate for second point public PGline(PGpoint p1,               PGpoint p2)             Parameters:                p1 - first point                p2 - second point public PGline(String s) throws SQLException                       Parameters:                s - definition of the line in <productname>PostgreSQL</productname>'s syntax.        Throws: SQLException                on conversion failure public PGline()          required by the driver               Methods public void setValue(String s) throws SQLException        Parameters:                s - Definition of the line segment in <productname>PostgreSQL</productname>'s syntax        Throws: SQLException                on conversion failure        Overrides:                setValue in class PGobject                 public boolean equals(Object obj)        Parameters:                obj - Object to compare with                       Returns:                true if the two lines are identical           Overrides:                equals in class PGobject public Object clone()                  This must be overridden to allow the object to be cloned        Overrides:                clone in class PGobject public String getValue()           Returns:                the PGline in the syntax expected by <productname>PostgreSQL</productname>                Overrides:                getValue in class PGobject<!-- **************************************************************** -->Class org.postgresql.geometric.PGlseg             java.lang.Object   |   +----org.postgresql.util.PGobject           |           +----org.postgresql.geometric.PGlseg             public class PGlseg extends PGobject implements Serializable, Cloneable    This implements a lseg (line segment) consisting of two points

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -