org.postgresql.pljava.example
Class ComplexScalar

java.lang.Object
  extended by org.postgresql.pljava.example.ComplexScalar
All Implemented Interfaces:
SQLData

public class ComplexScalar
extends Object
implements SQLData


Constructor Summary
ComplexScalar()
           
ComplexScalar(double x, double y, String typeName)
           
 
Method Summary
 String getSQLTypeName()
           
static ComplexScalar logAndReturn(ComplexScalar cpl)
           
static ComplexScalar parse(String input, String typeName)
           
 void readSQL(SQLInput stream, String typeName)
           
 String toString()
           
 void writeSQL(SQLOutput stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexScalar

public ComplexScalar()

ComplexScalar

public ComplexScalar(double x,
                     double y,
                     String typeName)
Method Detail

parse

public static ComplexScalar parse(String input,
                                  String typeName)
                           throws SQLException
Throws:
SQLException

getSQLTypeName

public String getSQLTypeName()
Specified by:
getSQLTypeName in interface SQLData

readSQL

public void readSQL(SQLInput stream,
                    String typeName)
             throws SQLException
Specified by:
readSQL in interface SQLData
Throws:
SQLException

writeSQL

public void writeSQL(SQLOutput stream)
              throws SQLException
Specified by:
writeSQL in interface SQLData
Throws:
SQLException

toString

public String toString()
Overrides:
toString in class Object

logAndReturn

public static ComplexScalar logAndReturn(ComplexScalar cpl)