public class DbConnection extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Data.Common.DbConnection
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.DbConnection
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
DbConnection() |
DbConnection(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStateChange(StateChangeEventHandler handler)
Invokes the .NET member addStateChange.
|
DbTransaction |
BeginTransaction()
Invokes the .NET member BeginTransaction.
|
DbTransaction |
BeginTransaction(IsolationLevel isolationLevel)
Invokes the .NET member BeginTransaction.
|
ValueTask_1 |
BeginTransactionAsync(CancellationToken cancellationToken)
Invokes the .NET member BeginTransactionAsync.
|
ValueTask_1 |
BeginTransactionAsync(IsolationLevel isolationLevel,
CancellationToken cancellationToken)
Invokes the .NET member BeginTransactionAsync.
|
static DbConnection |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into DbConnection, a cast assert is made to check if types are compatible. |
void |
ChangeDatabase(java.lang.String databaseName)
Invokes the .NET member ChangeDatabase.
|
Task |
ChangeDatabaseAsync(java.lang.String databaseName,
CancellationToken cancellationToken)
Invokes the .NET member ChangeDatabaseAsync.
|
void |
Close()
Invokes the .NET member Close.
|
Task |
CloseAsync()
Invokes the .NET member CloseAsync.
|
DbBatch |
CreateBatch()
Invokes the .NET member CreateBatch.
|
DbCommand |
CreateCommand()
Invokes the .NET member CreateCommand.
|
ValueTask |
DisposeAsync()
Invokes the .NET member DisposeAsync.
|
void |
EnlistTransaction(Transaction transaction)
Invokes the .NET member EnlistTransaction.
|
boolean |
getCanCreateBatch()
Gets the value of the .NET property CanCreateBatch.
|
java.lang.String |
getConnectionString()
Gets the value of the .NET property ConnectionString.
|
int |
getConnectionTimeout()
Gets the value of the .NET property ConnectionTimeout.
|
java.lang.String |
getDatabase()
Gets the value of the .NET property Database.
|
java.lang.String |
getDataSource()
Gets the value of the .NET property DataSource.
|
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. |
DataTable |
GetSchema()
Invokes the .NET member GetSchema.
|
DataTable |
GetSchema(java.lang.String collectionName)
Invokes the .NET member GetSchema.
|
DataTable |
GetSchema(java.lang.String dupParam0,
JCORefOut dupParam1)
Invokes the .NET member GetSchema.
|
DataTable |
GetSchema(java.lang.String collectionName,
java.lang.String[] restrictionValues)
Invokes the .NET member GetSchema.
|
Task_1 |
GetSchemaAsync(CancellationToken cancellationToken)
Invokes the .NET member GetSchemaAsync.
|
Task_1 |
GetSchemaAsync(java.lang.String collectionName,
CancellationToken cancellationToken)
Invokes the .NET member GetSchemaAsync.
|
Task_1 |
GetSchemaAsync(java.lang.String dupParam0,
JCORefOut dupParam1,
CancellationToken dupParam2)
Invokes the .NET member GetSchemaAsync.
|
Task_1 |
GetSchemaAsync(java.lang.String collectionName,
java.lang.String[] restrictionValues,
CancellationToken cancellationToken)
Invokes the .NET member GetSchemaAsync.
|
java.lang.String |
getServerVersion()
Gets the value of the .NET property ServerVersion.
|
ConnectionState |
getState()
Gets the value of the .NET property State.
|
void |
Open()
Invokes the .NET member Open.
|
Task |
OpenAsync()
Invokes the .NET member OpenAsync.
|
Task |
OpenAsync(CancellationToken cancellationToken)
Invokes the .NET member OpenAsync.
|
void |
removeStateChange(StateChangeEventHandler handler)
Invokes the .NET member removeStateChange.
|
void |
setConnectionString(java.lang.String ConnectionString)
Sets the value of the .NET property ConnectionString.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
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 DbConnection()
throws java.lang.Throwable
java.lang.Throwablepublic DbConnection(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 addStateChange(StateChangeEventHandler handler) throws java.lang.Throwable
handler - the argument of type StateChangeEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic DbTransaction BeginTransaction() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic DbTransaction BeginTransaction(IsolationLevel isolationLevel) throws java.lang.Throwable
isolationLevel - the argument of type IsolationLeveljava.lang.Throwable - if the call fails in the bridge or in the CLRpublic ValueTask_1 BeginTransactionAsync(CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException
cancellationToken - 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 itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic ValueTask_1 BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, IndexOutOfRangeException
isolationLevel - the argument of type IsolationLevelcancellationToken - 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 itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static DbConnection cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into DbConnection, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedDbConnection instancejava.lang.Throwable - in case of error during cast operationpublic void ChangeDatabase(java.lang.String databaseName)
throws java.lang.Throwable
databaseName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task ChangeDatabaseAsync(java.lang.String databaseName, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
databaseName - the argument of type java.lang.StringcancellationToken - 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 Close()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task CloseAsync() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
java.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 DbBatch CreateBatch() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic DbCommand CreateCommand() 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 void EnlistTransaction(Transaction transaction) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, EventSourceException
transaction - the argument of type Transactionjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic boolean getCanCreateBatch()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getConnectionString()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getConnectionTimeout()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getDatabase()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getDataSource()
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 DataTable GetSchema() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic DataTable GetSchema(java.lang.String collectionName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, EventSourceException
collectionName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic DataTable GetSchema(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, EventSourceException
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic DataTable GetSchema(java.lang.String collectionName, java.lang.String[] restrictionValues) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, EventSourceException
collectionName - the argument of type java.lang.StringrestrictionValues - the argument of type java.lang.String[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic Task_1 GetSchemaAsync(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 Task_1 GetSchemaAsync(java.lang.String collectionName, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
collectionName - the argument of type java.lang.StringcancellationToken - 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 Task_1 GetSchemaAsync(java.lang.String dupParam0, JCORefOut dupParam1, CancellationToken dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
dupParam0 - the argument of type java.lang.StringdupParam1 - the argument of type JCORefOutdupParam2 - 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 Task_1 GetSchemaAsync(java.lang.String collectionName, java.lang.String[] restrictionValues, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
collectionName - the argument of type java.lang.StringrestrictionValues - the argument of type java.lang.String[]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 java.lang.String getServerVersion()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ConnectionState getState() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Open()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Task OpenAsync() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException
java.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 itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic Task OpenAsync(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 removeStateChange(StateChangeEventHandler handler) throws java.lang.Throwable
handler - the argument of type StateChangeEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setConnectionString(java.lang.String ConnectionString)
throws java.lang.Throwable
ConnectionString - 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 object