org.postgresql.pljava.example
Class ComplexScalar
java.lang.Object
org.postgresql.pljava.example.ComplexScalar
- All Implemented Interfaces:
- SQLData
public class ComplexScalar
- extends Object
- implements SQLData
ComplexScalar
public ComplexScalar()
ComplexScalar
public ComplexScalar(double x,
double y,
String typeName)
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)