IStatement Interface
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.
The object used for executing a static SQL statement and returning the results it produces.
[Android.Runtime.Register("java/sql/Statement", "", "Java.Sql.IStatementInvoker")]
public interface IStatement : IDisposable, Java.Interop.IJavaPeerable, Java.Sql.IWrapper
[<Android.Runtime.Register("java/sql/Statement", "", "Java.Sql.IStatementInvoker")>]
type IStatement = interface
interface IWrapper
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
The object used for executing a static SQL statement and returning the results it produces.
By default, only one ResultSet
object per Statement
object can be open at the same time. Therefore, if the reading of one ResultSet
object is interleaved with the reading of another, each must have been generated by different Statement
objects. All execution methods in the Statement
interface implicitly close a statment's current ResultSet
object if an open one exists.
Java documentation for java.sql.Statement
.
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
CloseAllResults |
The constant indicating that all |
CloseCurrentResult |
The constant indicating that the current |
ExecuteFailed |
The constant indicating that an error occured while executing a batch statement. |
KeepCurrentResult |
The constant indicating that the current |
NoGeneratedKeys |
The constant indicating that generated keys should not be made available for retrieval. |
ReturnGeneratedKeys |
The constant indicating that generated keys should be made available for retrieval. |
SuccessNoInfo |
The constant indicating that a batch statement executed successfully but that no count of the number of rows it affected is available. |
Properties
Connection |
Gets the |
FetchDirection |
Gets the default direction for fetching rows for |
FetchSize |
Gets the default number of rows for a fetch for the |
GeneratedKeys |
Returns auto generated keys created by executing this statement. |
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
IsClosed |
Returns true if this statement has been closed, false otherwise. |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
MaxFieldSize |
Gets the maximum number of bytes which can be returned as values from
character and binary type columns in a |
MaxRows |
Gets the maximum number of rows that a |
MoreResults |
Moves to this statement's next result. |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Poolable |
Returns true if this statement is poolable, false otherwise. |
QueryTimeout |
Gets the timeout value for the statement's execution time. |
ResultSet |
Gets the current result. |
ResultSetConcurrency |
Gets the concurrency setting for |
ResultSetHoldability |
Gets the cursor hold setting for |
ResultSetType |
Gets the |
UpdateCount |
Gets an update count for the current result if it is not a |
Warnings |
Retrieves the first |
Methods
AddBatch(String) |
Adds the given SQL command to the current list of commmands for this
|
Cancel() |
Cancels this |
ClearBatch() |
Empties this |
ClearWarnings() |
Clears all the warnings reported on this |
Close() |
Releases this |
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Execute(String, Int32) |
Executes the given SQL statement, which may return multiple results, and signals the driver that any auto-generated keys should be made available for retrieval. |
Execute(String, Int32[]) |
Executes the given SQL statement, which may return multiple results, and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
Execute(String, String[]) |
Executes the given SQL statement, which may return multiple results, and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
Execute(String) |
Executes the given SQL statement, which may return multiple results. |
ExecuteBatch() |
Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. |
ExecuteQuery(String) |
Executes the given SQL statement, which returns a single
|
ExecuteUpdate(String, Int32) |
Executes the given SQL statement and signals the driver with the
given flag about whether the
auto-generated keys produced by this |
ExecuteUpdate(String, Int32[]) |
Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
ExecuteUpdate(String, String[]) |
Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array should be made available for retrieval. |
ExecuteUpdate(String) |
Executes the given SQL statement, which may be an |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
GetMoreResults(Int32) |
Moves to this |
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) |
SetCursorName(String) |
Sets the SQL cursor name to the given |
SetEscapeProcessing(Boolean) |
Sets escape processing on or off. |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
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) |