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.String
assemblyFullName
Fully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Datastatic java.lang.String
className
Qualified class name: System.Data.OleDb.OleDbConnectionstatic JCType
classType
The 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 void
addInfoMessage(OleDbInfoMessageEventHandler handler)
OleDbTransaction
BeginTransactionNewOleDbConnection()
OleDbTransaction
BeginTransactionNewOleDbConnection(IsolationLevel isolationLevel)
static OleDbConnection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoOleDbConnection
, a cast assert is made to check if types are compatible.void
ChangeDatabase(java.lang.String value)
void
Close()
OleDbCommand
CreateCommandNewOleDbConnection()
void
EnlistDistributedTransaction(ITransaction transaction)
void
EnlistTransaction(Transaction transaction)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeDataTable
GetOleDbSchemaTable(Guid schema, NetObject[] restrictions)
java.lang.String
getProvider()
DataTable
GetSchema()
DataTable
GetSchema(java.lang.String collectionName)
DataTable
GetSchema(java.lang.String collectionName, java.lang.String[] restrictionValues)
DataTable
GetSchema(java.lang.String dupParam0, JCORefOut dupParam1)
void
Open()
static void
ReleaseObjectPool()
void
removeInfoMessage(OleDbInfoMessageEventHandler handler)
void
ResetState()
void
setJCOInstance(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.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
OleDbConnection
public OleDbConnection() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
OleDbConnection
public OleDbConnection(java.lang.String connectionString) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceICloneable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classDbConnection
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceICloneable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classDbConnection
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceICloneable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classDbConnection
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceICloneable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classDbConnection
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classDbConnection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceICloneable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classDbConnection
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static OleDbConnection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoOleDbConnection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
OleDbConnection
instance- 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.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
NotSupportedException
NullReferenceException
ConfigurationErrorsException
DataException
OverflowException
InvalidCastException
KeyNotFoundException
IndexOutOfRangeException
AccessViolationException
SecurityException
MissingMethodException
TargetInvocationException
SqlNullValueException
-
GetSchema
public DataTable GetSchema() throws java.lang.Throwable, NotSupportedException
- Overrides:
GetSchema
in classDbConnection
- Throws:
java.lang.Throwable
NotSupportedException
-
GetSchema
public DataTable GetSchema(java.lang.String collectionName) throws java.lang.Throwable, NotSupportedException
- Overrides:
GetSchema
in classDbConnection
- Throws:
java.lang.Throwable
NotSupportedException
-
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:
GetSchema
in classDbConnection
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
CultureNotFoundException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
-
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:
GetSchema
in classDbConnection
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
CultureNotFoundException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
-
CreateCommandNewOleDbConnection
public OleDbCommand CreateCommandNewOleDbConnection() throws java.lang.Throwable, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
-
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:
ChangeDatabase
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
OutOfMemoryException
IndexOutOfRangeException
AccessViolationException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, TransactionException, PlatformNotSupportedException, NotSupportedException, SemaphoreFullException
- Overrides:
Close
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
TransactionException
PlatformNotSupportedException
NotSupportedException
SemaphoreFullException
-
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.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
-
EnlistTransaction
public void EnlistTransaction(Transaction transaction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ConfigurationErrorsException, KeyNotFoundException, IndexOutOfRangeException
- Overrides:
EnlistTransaction
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
ConfigurationErrorsException
KeyNotFoundException
IndexOutOfRangeException
-
Open
public void Open() throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, NullReferenceException, ConfigurationErrorsException, TransactionPromotionException, TransactionException, TransactionInDoubtException
- Overrides:
Open
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
NullReferenceException
ConfigurationErrorsException
TransactionPromotionException
TransactionException
TransactionInDoubtException
-
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.Throwable
ArgumentNullException
ObjectDisposedException
AbandonedMutexException
-
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
-
-