Package system.data.oledb
Class OleDbConnection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.data.common.DbConnection
-
- system.data.oledb.OleDbConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,ICloneable
public class OleDbConnection extends DbConnection implements ICloneable
The base .NET class managing System.Data.OleDb.OleDbConnection, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.OleDb.OleDbConnection
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Datastatic java.lang.StringclassNameQualified class name: System.Data.OleDb.OleDbConnectionstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description OleDbConnection()OleDbConnection(java.lang.Object instance)Internal constructor.OleDbConnection(java.lang.String connectionString)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInfoMessage(OleDbInfoMessageEventHandler handler)OleDbTransactionBeginTransactionNewOleDbConnection()OleDbTransactionBeginTransactionNewOleDbConnection(IsolationLevel isolationLevel)static OleDbConnectioncast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoOleDbConnection, a cast assert is made to check if types are compatible.voidChangeDatabase(java.lang.String value)voidClose()OleDbCommandCreateCommandNewOleDbConnection()voidEnlistDistributedTransaction(ITransaction transaction)voidEnlistTransaction(Transaction transaction)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeDataTableGetOleDbSchemaTable(Guid schema, NetObject[] restrictions)java.lang.StringgetProvider()DataTableGetSchema()DataTableGetSchema(java.lang.String collectionName)DataTableGetSchema(java.lang.String collectionName, java.lang.String[] restrictionValues)DataTableGetSchema(java.lang.String dupParam0, JCORefOut dupParam1)voidOpen()static voidReleaseObjectPool()voidremoveInfoMessage(OleDbInfoMessageEventHandler handler)voidResetState()voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.data.common.DbConnection
addStateChange, BeginTransaction, BeginTransaction, CreateCommand, getConnectionString, getConnectionTimeout, getDatabase, getDataSource, getServerVersion, getState, OpenAsync, OpenAsync, removeStateChange, setConnectionString
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.ICloneable
Clone
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Data- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Data.OleDb.OleDbConnection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OleDbConnection
public OleDbConnection(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
OleDbConnection
public OleDbConnection() throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
OleDbConnection
public OleDbConnection(java.lang.String connectionString) throws java.lang.Throwable, ArgumentNullException- Throws:
java.lang.ThrowableArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceICloneable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classDbConnection- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceICloneable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classDbConnection- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceICloneable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classDbConnection- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceICloneable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classDbConnection- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classDbConnection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceICloneable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classDbConnection- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static OleDbConnection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoOleDbConnection, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
OleDbConnectioninstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetOleDbSchemaTable
public DataTable GetOleDbSchemaTable(Guid schema, NetObject[] restrictions) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, NotSupportedException, NullReferenceException, ConfigurationErrorsException, DataException, OverflowException, InvalidCastException, KeyNotFoundException, IndexOutOfRangeException, AccessViolationException, SecurityException, MissingMethodException, TargetInvocationException, SqlNullValueException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionNullReferenceExceptionConfigurationErrorsExceptionDataExceptionOverflowExceptionInvalidCastExceptionKeyNotFoundExceptionIndexOutOfRangeExceptionAccessViolationExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionSqlNullValueException
-
GetSchema
public DataTable GetSchema() throws java.lang.Throwable, NotSupportedException
- Overrides:
GetSchemain classDbConnection- Throws:
java.lang.ThrowableNotSupportedException
-
GetSchema
public DataTable GetSchema(java.lang.String collectionName) throws java.lang.Throwable, NotSupportedException
- Overrides:
GetSchemain classDbConnection- Throws:
java.lang.ThrowableNotSupportedException
-
GetSchema
public DataTable GetSchema(java.lang.String collectionName, java.lang.String[] restrictionValues) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException
- Overrides:
GetSchemain classDbConnection- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionArgumentNullExceptionCultureNotFoundExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeException
-
GetSchema
public DataTable GetSchema(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException
- Overrides:
GetSchemain classDbConnection- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentOutOfRangeExceptionArgumentNullExceptionCultureNotFoundExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeException
-
CreateCommandNewOleDbConnection
public OleDbCommand CreateCommandNewOleDbConnection() throws java.lang.Throwable, ArgumentNullException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentException
-
BeginTransactionNewOleDbConnection
public OleDbTransaction BeginTransactionNewOleDbConnection() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BeginTransactionNewOleDbConnection
public OleDbTransaction BeginTransactionNewOleDbConnection(IsolationLevel isolationLevel) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ChangeDatabase
public void ChangeDatabase(java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, OutOfMemoryException, IndexOutOfRangeException, AccessViolationException- Overrides:
ChangeDatabasein classDbConnection- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionAccessViolationException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, TransactionException, PlatformNotSupportedException, NotSupportedException, SemaphoreFullException- Overrides:
Closein classDbConnection- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionTransactionExceptionPlatformNotSupportedExceptionNotSupportedExceptionSemaphoreFullException
-
EnlistDistributedTransaction
public void EnlistDistributedTransaction(ITransaction transaction) throws java.lang.Throwable, ArgumentException, NotSupportedException, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidOperationException, MissingMethodException, TargetInvocationException, NullReferenceException, NotImplementedException, MissingManifestResourceException, PlatformNotSupportedException, ConfigurationErrorsException, ConfigurationException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, TransactionException, OverflowException, TransactionManagerCommunicationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNullReferenceExceptionNotImplementedExceptionMissingManifestResourceExceptionPlatformNotSupportedExceptionConfigurationErrorsExceptionConfigurationExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionTransactionExceptionOverflowExceptionTransactionManagerCommunicationException
-
EnlistTransaction
public void EnlistTransaction(Transaction transaction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ConfigurationErrorsException, KeyNotFoundException, IndexOutOfRangeException
- Overrides:
EnlistTransactionin classDbConnection- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionConfigurationErrorsExceptionKeyNotFoundExceptionIndexOutOfRangeException
-
Open
public void Open() throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, NullReferenceException, ConfigurationErrorsException, TransactionPromotionException, TransactionException, TransactionInDoubtException- Overrides:
Openin classDbConnection- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNullReferenceExceptionConfigurationErrorsExceptionTransactionPromotionExceptionTransactionExceptionTransactionInDoubtException
-
ReleaseObjectPool
public static void ReleaseObjectPool() throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException
-
ResetState
public void ResetState() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, OutOfMemoryException, AccessViolationException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ArgumentException
-
getProvider
public java.lang.String getProvider() throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, AbandonedMutexException- Throws:
java.lang.ThrowableArgumentNullExceptionObjectDisposedExceptionAbandonedMutexException
-
addInfoMessage
public void addInfoMessage(OleDbInfoMessageEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeInfoMessage
public void removeInfoMessage(OleDbInfoMessageEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-