Class UDTScalarIOTest
java.lang.Object
org.postgresql.pljava.example.annotation.UDTScalarIOTest
- All Implemented Interfaces:
SQLData
@SQLAction(requires="udtscalariotest type",
install="SELECT CAST(\'\' AS javatest.udtscalariotest)")
@BaseUDT(schema="javatest",
provides="udtscalariotest type")
public class UDTScalarIOTest
extends Object
implements SQLData
A special user-defined type simply to exercise the I/O routines.
There is only one 'value' of this type. Its text representation is an empty string. Its binary representation is a sequence of fixed values in all the supported JDBC data types, which it writes on output, and reads/verifies on input.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UDTScalarIOTest
public UDTScalarIOTest()
-
-
Method Details
-
parse
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL) public static UDTScalarIOTest parse(String input, String typeName) throws SQLException - Throws:
SQLException
-
toString
-
getSQLTypeName
- Specified by:
getSQLTypeName
in interfaceSQLData
-
writeSQL
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL) public void writeSQL(SQLOutput stream) throws SQLException - Specified by:
writeSQL
in interfaceSQLData
- Throws:
SQLException
-
readSQL
@Function(effects=IMMUTABLE, onNullInput=RETURNS_NULL) public void readSQL(SQLInput stream, String typeName) throws SQLException - Specified by:
readSQL
in interfaceSQLData
- Throws:
SQLException
-