public class DbCommand extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Data.Common.DbCommand
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Data.Common
|
static java.lang.String |
className
Qualified class name: System.Data.Common.DbCommand
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DbCommand() |
DbCommand(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Cancel()
Invokes the .NET member Cancel.
|
static DbCommand |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DbCommand, a cast assert is made to check if types are compatible. |
DbParameter |
CreateParameter()
Invokes the .NET member CreateParameter.
|
ValueTask |
DisposeAsync()
Invokes the .NET member DisposeAsync.
|
int |
ExecuteNonQuery()
Invokes the .NET member ExecuteNonQuery.
|
Task_1 |
ExecuteNonQueryAsync()
Invokes the .NET member ExecuteNonQueryAsync.
|
Task_1 |
ExecuteNonQueryAsync(CancellationToken cancellationToken)
Invokes the .NET member ExecuteNonQueryAsync.
|
DbDataReader |
ExecuteReader()
Invokes the .NET member ExecuteReader.
|
DbDataReader |
ExecuteReader(CommandBehavior behavior)
Invokes the .NET member ExecuteReader.
|
Task_1 |
ExecuteReaderAsync()
Invokes the .NET member ExecuteReaderAsync.
|
Task_1 |
ExecuteReaderAsync(CancellationToken cancellationToken)
Invokes the .NET member ExecuteReaderAsync.
|
Task_1 |
ExecuteReaderAsync(CommandBehavior behavior)
Invokes the .NET member ExecuteReaderAsync.
|
Task_1 |
ExecuteReaderAsync(CommandBehavior behavior,
CancellationToken cancellationToken)
Invokes the .NET member ExecuteReaderAsync.
|
NetObject |
ExecuteScalar()
Invokes the .NET member ExecuteScalar.
|
Task_1 |
ExecuteScalarAsync()
Invokes the .NET member ExecuteScalarAsync.
|
Task_1 |
ExecuteScalarAsync(CancellationToken cancellationToken)
Invokes the .NET member ExecuteScalarAsync.
|
java.lang.String |
getCommandText()
Gets the value of the .NET property CommandText.
|
int |
getCommandTimeout()
Gets the value of the .NET property CommandTimeout.
|
CommandType |
getCommandType()
Gets the value of the .NET property CommandType.
|
DbConnection |
getConnection()
Gets the value of the .NET property Connection.
|
boolean |
getDesignTimeVisible()
Gets the value of the .NET property DesignTimeVisible.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
DbParameterCollection |
getParameters()
Gets the value of the .NET property Parameters.
|
DbTransaction |
getTransaction()
Gets the value of the .NET property Transaction.
|
UpdateRowSource |
getUpdatedRowSource()
Gets the value of the .NET property UpdatedRowSource.
|
void |
Prepare()
Invokes the .NET member Prepare.
|
Task |
PrepareAsync(CancellationToken cancellationToken)
Invokes the .NET member PrepareAsync.
|
void |
setCommandText(java.lang.String CommandText)
Sets the value of the .NET property CommandText.
|
void |
setCommandTimeout(int CommandTimeout)
Sets the value of the .NET property CommandTimeout.
|
void |
setCommandType(CommandType CommandType)
Sets the value of the .NET property CommandType.
|
void |
setConnection(DbConnection Connection)
Sets the value of the .NET property Connection.
|
void |
setDesignTimeVisible(boolean DesignTimeVisible)
Sets the value of the .NET property DesignTimeVisible.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setTransaction(DbTransaction Transaction)
Sets the value of the .NET property Transaction.
|
void |
setUpdatedRowSource(UpdateRowSource UpdatedRowSource)
Sets the value of the .NET property UpdatedRowSource.
|
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public DbCommand()
throws java.lang.Throwable
java.lang.Throwablepublic DbCommand(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void Cancel()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static DbCommand cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DbCommand, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDbCommand instancejava.lang.Throwable - in case of error during cast operationpublic DbParameter CreateParameter() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ValueTask DisposeAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic int ExecuteNonQuery()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task_1 ExecuteNonQueryAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task_1 ExecuteNonQueryAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic DbDataReader ExecuteReader() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic DbDataReader ExecuteReader(CommandBehavior behavior) throws java.lang.Throwable
behavior - the argument of type CommandBehaviorjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task_1 ExecuteReaderAsync() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task_1 ExecuteReaderAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task_1 ExecuteReaderAsync(CommandBehavior behavior) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, IndexOutOfRangeException
behavior - the argument of type CommandBehaviorjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task_1 ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException
behavior - the argument of type CommandBehaviorcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic NetObject ExecuteScalar() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task_1 ExecuteScalarAsync() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task_1 ExecuteScalarAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic java.lang.String getCommandText()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getCommandTimeout()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic CommandType getCommandType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic DbConnection getConnection() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getDesignTimeVisible()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Componentpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Componentpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Componentnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Componentpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Componentpublic DbParameterCollection getParameters() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic DbTransaction getTransaction() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic UpdateRowSource getUpdatedRowSource() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Prepare()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task PrepareAsync(CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
cancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void setCommandText(java.lang.String CommandText)
throws java.lang.Throwable
CommandText - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCommandTimeout(int CommandTimeout)
throws java.lang.Throwable
CommandTimeout - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setCommandType(CommandType CommandType) throws java.lang.Throwable
CommandType - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setConnection(DbConnection Connection) throws java.lang.Throwable
Connection - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDesignTimeVisible(boolean DesignTimeVisible)
throws java.lang.Throwable
DesignTimeVisible - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Componentinstance - the new underlying objectpublic void setTransaction(DbTransaction Transaction) throws java.lang.Throwable
Transaction - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setUpdatedRowSource(UpdateRowSource UpdatedRowSource) throws java.lang.Throwable
UpdatedRowSource - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR