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

📄 jdbc.sgml

📁 关系型数据库 Postgresql 6.5.2
💻 SGML
📖 第 1 页 / 共 5 页
字号:
   +----postgresql.util.PGobject           |           +----postgresql.geometric.PGcircle           public class PGcircle extends PGobject implements Serializable, Cloneable                  This represents postgresql's circle datatype, consisting of a point and a radiusVariables public PGpoint center                     This is the centre point public double radius                     This is the radius   Constructors    public PGcircle(double x,                 double y,                 double r)                  Parameters:               x - coordinate of centre                y - coordinate of centre                r - radius of circle public PGcircle(PGpoint c,                 double r)                  Parameters:                c - PGpoint describing the circle's centre                r - radius of circle public PGcircle(String s) throws SQLException        Parameters:                s - definition of the circle in PostgreSQL'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 PostgreSQL'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 boxes are identical        Overrides:                equals in class PGobject public Object clone()          This must be overidden to allow the object to be cloned        Overrides:                clone in class PGobject public String getValue()        Returns:                the PGcircle in the syntax expected by postgresql                Overrides:                getValue in class PGobjectClass postgresql.geometric.PGlinejava.lang.Object   |   +----postgresql.util.PGobject           |           +----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 backend, 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 circle in PostgreSQL's syntax.        Throws: SQLException                on conversion failure public PGline()          reuired by the driver               Methods public void setValue(String s) throws SQLException        Parameters:                s - Definition of the line segment in PostgreSQL'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 boxes are identical           Overrides:                equals in class PGobject public Object clone()                  This must be overidden to allow the object to be cloned        Overrides:                clone in class PGobject public String getValue()           Returns:                the PGline in the syntax expected by postgresql                Overrides:                getValue in class PGobjectClass postgresql.geometric.PGlseg             java.lang.Object   |   +----postgresql.util.PGobject           |           +----postgresql.geometric.PGlseg             public class PGlseg extends PGobject implements Serializable, Cloneable    This implements a lseg (line segment) consisting of two pointsVariables 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 circle in PostgreSQL's syntax.        Throws: SQLException                on conversion failure public PGlseg()          reuired by the driver               Methods        public void setValue(String s) throws SQLException           Parameters:                s - Definition of the line segment in PostgreSQL'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 boxes are identical           Overrides:                equals in class PGobject    public Object clone()          This must be overidden to allow the object to be cloned        Overrides:               clone in class PGobject public String getValue()        Returns:                the PGlseg in the syntax expected by postgresql                Overrides:                getValue in class PGobjectClass postgresql.geometric.PGpath                                java.lang.Object   |   +----postgresql.util.PGobject           |           +----postgresql.geometric.PGpath             public class PGpath extends PGobject implements Serializable, Cloneable                  This implements a path (a multiple 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 circle in PostgreSQL's syntax.        Throws: SQLException                on conversion failureMethods public void setValue(String s) throws SQLException           Parameters:                s - Definition of the path in PostgreSQL'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 boxes are identical        Overrides:                equals in class PGobject public Object clone()          This must be overidden to allow the object to be cloned        Overrides:                clone in class PGobject public String getValue()          This returns the polygon in the syntax expected by postgresql        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 openClass postgresql.geometric.PGpoint                                java.lang.Object   |   +----postgresql.util.PGobject           |           +----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 datatype in postgresql.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 imbeded within their definition.                     Parameters:                value - Definition of this point in PostgreSQL's syntax    public PGpoint()                    Required by the driverMethods public void setValue(String s) throws SQLException        Parameters:                s - Definition of this point in PostgreSQL'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 boxes are identical        Overrides:                equals in class PGobject public Object clone()                          This must be overidden to allow the object to be cloned        Overrides:                clone in class PGobject           public String getValue()                   Returns:                the PGpoint in the syntax expected by postgresql        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.

⌨️ 快捷键说明

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