Megosztás a következőn keresztül:


ISQLInput Interface

Definition

An input stream that contains a stream of values representing an instance of an SQL structured type or an SQL distinct type.

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

Remarks

An input stream that contains a stream of values representing an instance of an SQL structured type or an SQL distinct type. This interface, used only for custom mapping, is used by the driver behind the scenes, and a programmer never directly invokes SQLInput methods. The reader methods (readLong, readBytes, and so on) provide a way for an implementation of the SQLData interface to read the values in an SQLInput object. And as described in SQLData, calls to reader methods must be made in the order that their corresponding attributes appear in the SQL definition of the type. The method wasNull is used to determine whether the last value read was SQL NULL.

When the method getObject is called with an object of a class implementing the interface SQLData, the JDBC driver calls the method SQLData.getSQLType to determine the SQL type of the user-defined type (UDT) being custom mapped. The driver creates an instance of SQLInput, populating it with the attributes of the UDT. The driver then passes the input stream to the method SQLData.readSQL, which in turn calls the SQLInput reader methods in its implementation for reading the attributes from the input stream.

Added in 1.2.

Java documentation for java.sql.SQLInput.

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)
ReadArray()

Reads an SQL ARRAY value from the stream and returns it as an Array object in the Java programming language.

ReadAsciiStream()

Reads the next attribute in the stream and returns it as a stream of ASCII characters.

ReadBigDecimal()

Reads the next attribute in the stream and returns it as a java.math.BigDecimal object in the Java programming language.

ReadBinaryStream()

Reads the next attribute in the stream and returns it as a stream of uninterpreted bytes.

ReadBlob()

Reads an SQL BLOB value from the stream and returns it as a Blob object in the Java programming language.

ReadBoolean()

Reads the next attribute in the stream and returns it as a boolean in the Java programming language.

ReadByte()

Reads the next attribute in the stream and returns it as a byte in the Java programming language.

ReadBytes()

Reads the next attribute in the stream and returns it as an array of bytes in the Java programming language.

ReadCharacterStream()

Reads the next attribute in the stream and returns it as a stream of Unicode characters.

ReadClob()

Reads an SQL CLOB value from the stream and returns it as a Clob object in the Java programming language.

ReadDate()

Reads the next attribute in the stream and returns it as a java.sql.Date object.

ReadDouble()

Reads the next attribute in the stream and returns it as a double in the Java programming language.

ReadFloat()

Reads the next attribute in the stream and returns it as a float in the Java programming language.

ReadInt()

Reads the next attribute in the stream and returns it as an int in the Java programming language.

ReadLong()

Reads the next attribute in the stream and returns it as a long in the Java programming language.

ReadNClob()

Reads an SQL NCLOB value from the stream and returns it as a NClob object in the Java programming language.

ReadNString()

Reads the next attribute in the stream and returns it as a String in the Java programming language.

ReadObject()

Reads the datum at the head of the stream and returns it as an Object in the Java programming language.

ReadRef()

Reads an SQL REF value from the stream and returns it as a Ref object in the Java programming language.

ReadRowId()

Reads an SQL ROWID value from the stream and returns it as a RowId object in the Java programming language.

ReadShort()

Reads the next attribute in the stream and returns it as a short in the Java programming language.

ReadSQLXML()

Reads an SQL XML value from the stream and returns it as a SQLXML object in the Java programming language.

ReadString()

Reads the next attribute in the stream and returns it as a String in the Java programming language.

ReadTime()

Reads the next attribute in the stream and returns it as a java.sql.Time object.

ReadTimestamp()

Reads the next attribute in the stream and returns it as a java.sql.Timestamp object.

ReadURL()

Reads an SQL DATALINK value from the stream and returns it as a java.net.URL object in the Java programming language.

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)
WasNull()

Retrieves whether the last value read was SQL NULL.

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to