Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JDBC 2.0 The interface used for the custom mapping of SQL user-defined types. This interface must be implemented by a Java class that is registered in a type mapping. It is expected that this interface will normally be implemented by a tool. The methods in this interface are called by the driver and are never called by a programmer directly.
Method Summary | |
String |
getSQLTypeName()
Returns the fully-qualified name of the SQL user-defined type that this object represents. |
void |
readSQL(SQLInput stream,
String typeName)
Populates this object with data read from the database. |
void |
writeSQL(SQLOutput stream)
Writes this object to the given SQL data stream. |
Method Detail |
public String getSQLTypeName() throws SQLException
public void readSQL(SQLInput stream, String typeName) throws SQLException
readSQL
then
assigns the data to appropriate fields or
elements (of this or other objects).
Specifically, it must call the appropriate SQLInput.readXXX
method(s) to do the following:
for a Distinct Type, read its single data element;
for a Structured Type, read a value for each attribute of the SQL type.
The JDBC driver initializes the input stream with a type map
before calling this method, which is used by the appropriate
SQLInput.readXXX
method on the stream.stream
- the input SQL data streamdescriptor
- the SQL type of the value on the data streamSQLInput
public void writeSQL(SQLOutput stream) throws SQLException
SQLOutput.writeXXX
method(s) to do the following:
for a Distinct Type, write its single data element;
for a Structured Type, write a value for each attribute of the SQL type.stream
- the output SQL data streamSQLOutput
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |