IPreparedStatement.MetaData Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a ResultSetMetaData describing the ResultSet that would be produced by execution of the PreparedStatement.
public Java.Sql.IResultSetMetaData? MetaData { [Android.Runtime.Register("getMetaData", "()Ljava/sql/ResultSetMetaData;", "GetGetMetaDataHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getMetaData", "()Ljava/sql/ResultSetMetaData;", "GetGetMetaDataHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.MetaData : Java.Sql.IResultSetMetaData
Property Value
the description of a ResultSet object's columns or null if the driver cannot return a ResultSetMetaData object
- Attributes
Exceptions
if there is a database error.
Remarks
Retrieves a ResultSetMetaData object that contains information about the columns of the ResultSet object that will be returned when this PreparedStatement object is executed. Because a PreparedStatement object is precompiled, it is possible to know about the ResultSet object that it will return without having to execute it. Consequently, it is possible to invoke the method getMetaData on a PreparedStatement object rather than waiting to execute it and then invoking the ResultSet.getMetaData method on the ResultSet object that is returned. NOTE: Using this method may be expensive for some drivers due to the lack of underlying DBMS support.
Java reference for java.sql.PreparedStatement.getMetaData.
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.