📄 jdbc.sgml
字号:
Variables public PGpoint point[] These are the two points.Constructors public PGlseg(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 PGlseg(PGpoint p1, PGpoint p2) Parameters: p1 - first point p2 - second point public PGlseg(String s) throws SQLException Parameters: s - Definition of the line segment in <productname>PostgreSQL</productname>'s syntax. Throws: SQLException on conversion failure public PGlseg() 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 line segments 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 PGlseg in the syntax expected by <productname>PostgreSQL</productname> Overrides: getValue in class PGobject<!-- **************************************************************** -->Class org.postgresql.geometric.PGpath java.lang.Object | +----org.postgresql.util.PGobject | +----org.postgresql.geometric.PGpath public class PGpath extends PGobject implements Serializable, Cloneable This implements a path (a multiply segmented line, which may be closed) Variables public boolean open True if the path is open, false if closed public PGpoint points[] The points defining this pathConstructors public PGpath(PGpoint points[], boolean open) Parameters: points - the PGpoints that define the path open - True if the path is open, false if closed public PGpath() Required by the driver public PGpath(String s) throws SQLException Parameters: s - definition of the path in <productname>PostgreSQL</productname>'s syntax. Throws: SQLException on conversion failureMethods public void setValue(String s) throws SQLException Parameters: s - Definition of the path 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 pathes 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() This returns the path in the syntax expected by <productname>PostgreSQL</productname> Overrides: getValue in class PGobject public boolean isOpen() This returns true if the path is open public boolean isClosed() This returns true if the path is closed public void closePath() Marks the path as closed public void openPath() Marks the path as open<!-- **************************************************************** -->Class org.postgresql.geometric.PGpoint java.lang.Object | +----org.postgresql.util.PGobject | +----org.postgresql.geometric.PGpoint public class PGpoint extends PGobject implements Serializable, Cloneable This implements a version of java.awt.Point, except it uses double to represent the coordinates. It maps to the point data type in <productname>PostgreSQL</productname>.Variables public double x The X coordinate of the point public double y The Y coordinate of the pointConstructors public PGpoint(double x, double y) Parameters: x - coordinate y - coordinate public PGpoint(String value) throws SQLException This is called mainly from the other geometric types, when a point is embedded within their definition. Parameters: value - Definition of this point in <productname>PostgreSQL</productname>'s syntax public PGpoint() Required by the driverMethods public void setValue(String s) throws SQLException Parameters: s - Definition of this point 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 points 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 PGpoint in the syntax expected by <productname>PostgreSQL</productname> Overrides: getValue in class PGobject public void translate(int x, int y) Translate the point with the supplied amount. Parameters: x - integer amount to add on the x axis y - integer amount to add on the y axis public void translate(double x, double y) Translate the point with the supplied amount. Parameters: x - double amount to add on the x axis y - double amount to add on the y axis public void move(int x, int y) Moves the point to the supplied coordinates. Parameters: x - integer coordinate y - integer coordinatepublic void move(double x, double y) Moves the point to the supplied coordinates. Parameters: x - double coordinate y - double coordinate public void setLocation(int x, int y) Moves the point to the supplied coordinates. refer to java.awt.Point for description of this Parameters: x - integer coordinate y - integer coordinate See Also: Point public void setLocation(Point p) Moves the point to the supplied java.awt.Point refer to java.awt.Point for description of this Parameters: p - Point to move to See Also: Point<!-- **************************************************************** -->Class org.postgresql.geometric.PGpolygon java.lang.Object | +----org.postgresql.util.PGobject | +----org.postgresql.geometric.PGpolygon public class PGpolygon extends PGobject implements Serializable, Cloneable This implements the polygon data type within <productname>PostgreSQL</productname>.Variables public PGpoint points[] The points defining the polygon Constructors public PGpolygon(PGpoint points[]) Creates a polygon using an array of PGpoints Parameters: points - the points defining the polygon public PGpolygon(String s) throws SQLException Parameters: s - definition of the polygon in <productname>PostgreSQL</productname>'s syntax. Throws: SQLException on conversion failure public PGpolygon() Required by the driverMethods public void setValue(String s) throws SQLException Parameters: s - Definition of the polygon 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 polygons 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 PGpolygon in the syntax expected by <productname>PostgreSQL</productname> Overrides: getValue in class PGobject</programlisting> </sect2> <sect2> <title>Large Objects</title> <para> Large objects are supported in the standard <acronym>JDBC</acronym> specification. However, that interface is limited, and the <acronym>API</acronym> provided by <productname>PostgreSQL</productname> allows for random access to the objects contents, as if it was a local file. </para> <para> The org.postgresql.largeobject package provides to Java the <application>libpq</application> C interface's large object <acronym>API</acronym>. It consists of two classes, <classname>LargeObjectManager</classname>, which deals with creating, opening and deleting large objects, and <classname>LargeObject</classname> which deals with an individual object. </para> <sect3> <title>Class <classname>org.postgresql.largeobject.LargeObject</classname></title><synopsis>public class LargeObject extends Objectjava.lang.Object | +----org.postgresql.largeobject.LargeObject</synopsis> <para> This class implements the large object interface to <productname>PostgreSQL</productname>. </para> <para> It provides the basic methods required to ru
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -