다음을 통해 공유


IResultSetMetaData Interface

Definition

An object that can be used to get information about the types and properties of the columns in a ResultSet object.

[Android.Runtime.Register("java/sql/ResultSetMetaData", "", "Java.Sql.IResultSetMetaDataInvoker")]
public interface IResultSetMetaData : IDisposable, Java.Interop.IJavaPeerable, Java.Sql.IWrapper
[<Android.Runtime.Register("java/sql/ResultSetMetaData", "", "Java.Sql.IResultSetMetaDataInvoker")>]
type IResultSetMetaData = interface
    interface IWrapper
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

An object that can be used to get information about the types and properties of the columns in a ResultSet object. The following code fragment creates the ResultSet object rs, creates the ResultSetMetaData object rsmd, and uses rsmd to find out how many columns rs has and whether the first column in rs can be used in a WHERE clause.

ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM TABLE2");
                ResultSetMetaData rsmd = rs.getMetaData();
                int numberOfColumns = rsmd.getColumnCount();
                boolean b = rsmd.isSearchable(1);

Java documentation for java.sql.ResultSetMetaData.

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.

Fields

ColumnNoNulls

The constant indicating that a column does not allow NULL values.

ColumnNullable

The constant indicating that a column allows NULL values.

ColumnNullableUnknown

The constant indicating that the nullability of a column's values is unknown.

Properties

ColumnCount

Returns number of columns contained in the associated result set.

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)
GetCatalogName(Int32)

Gets the designated column's table's catalog name.

GetColumnClassName(Int32)

Returns the fully-qualified name of the Java class whose instances are manufactured if the method ResultSet.getObject is called to retrieve a value from the column.

GetColumnDisplaySize(Int32)

Indicates the designated column's normal maximum width in characters.

GetColumnLabel(Int32)

Gets the designated column's suggested title for use in printouts and displays.

GetColumnName(Int32)

Get the designated column's name.

GetColumnType(Int32)

Retrieves the designated column's SQL type.

GetColumnTypeName(Int32)

Retrieves the designated column's database-specific type name.

GetPrecision(Int32)

Get the designated column's specified column size.

GetScale(Int32)

Gets the designated column's number of digits to right of the decimal point.

GetSchemaName(Int32)

Get the designated column's table's schema.

GetTableName(Int32)

Gets the designated column's table name.

IsAutoIncrement(Int32)

Indicates whether the designated column is automatically numbered.

IsCaseSensitive(Int32)

Indicates whether a column's case matters.

IsCurrency(Int32)

Indicates whether the designated column is a cash value.

IsDefinitelyWritable(Int32)

Indicates whether a write on the designated column will definitely succeed.

IsNullable(Int32)

Indicates the nullability of values in the designated column.

IsReadOnly(Int32)

Indicates whether the designated column is definitely not writable.

IsSearchable(Int32)

Indicates whether the designated column can be used in a where clause.

IsSigned(Int32)

Indicates whether values in the designated column are signed numbers.

IsWrapperFor(Class)

Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.

(Inherited from IWrapper)
IsWritable(Int32)

Indicates whether it is possible for a write on the designated column to succeed.

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)
Unwrap(Class)

Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.

(Inherited from IWrapper)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to