共用方式為


ISQLOutput Interface

Definition

The output stream for writing the attributes of a user-defined type back to the database.

[Android.Runtime.Register("java/sql/SQLOutput", "", "Java.Sql.ISQLOutputInvoker")]
public interface ISQLOutput : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("java/sql/SQLOutput", "", "Java.Sql.ISQLOutputInvoker")>]
type ISQLOutput = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

The output stream for writing the attributes of a user-defined type back to the database. This interface, used only for custom mapping, is used by the driver, and its methods are never directly invoked by a programmer.

When an object of a class implementing the interface SQLData is passed as an argument to an SQL statement, the JDBC driver calls the method SQLData.getSQLType to determine the kind of SQL datum being passed to the database. The driver then creates an instance of SQLOutput and passes it to the method SQLData.writeSQL. The method writeSQL in turn calls the appropriate SQLOutputwriter methods writeBoolean, writeCharacterStream, and so on) to write data from the SQLData object to the SQLOutput output stream as the representation of an SQL user-defined type.

Added in 1.2.

Java documentation for java.sql.SQLOutput.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)
WriteArray(IArray)

Writes an SQL ARRAY value to the stream.

WriteAsciiStream(Stream)

Writes the next attribute to the stream as a stream of ASCII characters.

WriteBigDecimal(BigDecimal)

Writes the next attribute to the stream as a java.

WriteBinaryStream(Stream)

Writes the next attribute to the stream as a stream of uninterpreted bytes.

WriteBlob(IBlob)

Writes an SQL BLOB value to the stream.

WriteBoolean(Boolean)

Writes the next attribute to the stream as a Java boolean.

WriteByte(SByte)

Writes the next attribute to the stream as a Java byte.

WriteBytes(Byte[])

Writes the next attribute to the stream as an array of bytes.

WriteCharacterStream(Reader)

Writes the next attribute to the stream as a stream of Unicode characters.

WriteClob(IClob)

Writes an SQL CLOB value to the stream.

WriteDate(Date)

Writes the next attribute to the stream as a java.

WriteDouble(Double)

Writes the next attribute to the stream as a Java double.

WriteFloat(Single)

Writes the next attribute to the stream as a Java float.

WriteInt(Int32)

Writes the next attribute to the stream as a Java int.

WriteLong(Int64)

Writes the next attribute to the stream as a Java long.

WriteNClob(INClob)

Writes an SQL NCLOB value to the stream.

WriteNString(String)

Writes the next attribute to the stream as a String in the Java programming language.

WriteObject(ISQLData)

Writes to the stream the data contained in the given SQLData object.

WriteRef(IRef)

Writes an SQL REF value to the stream.

WriteRowId(IRowId)

Writes an SQL ROWID value to the stream.

WriteShort(Int16)

Writes the next attribute to the stream as a Java short.

WriteSQLXML(ISQLXML)

Writes an SQL XML value to the stream.

WriteString(String)

Writes the next attribute to the stream as a String in the Java programming language.

WriteStruct(IStruct)

Writes an SQL structured type value to the stream.

WriteTime(Time)

Writes the next attribute to the stream as a java.

WriteTimestamp(Timestamp)

Writes the next attribute to the stream as a java.

WriteURL(URL)

Writes a SQL DATALINK value to the stream.

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to