Package system.data.entityclient
Class EntityConnection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.data.common.DbConnection
-
- system.data.entityclient.EntityConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class EntityConnection extends DbConnection
The base .NET class managing System.Data.EntityClient.EntityConnection, System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.EntityClient.EntityConnection
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.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Data.Entitystatic java.lang.String
className
Qualified class name: System.Data.EntityClient.EntityConnectionstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description EntityConnection()
EntityConnection(java.lang.Object instance)
Internal constructor.EntityConnection(java.lang.String connectionString)
EntityConnection(MetadataWorkspace workspace, DbConnection connection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityTransaction
BeginTransactionNewEntityConnection()
EntityTransaction
BeginTransactionNewEntityConnection(IsolationLevel isolationLevel)
static EntityConnection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoEntityConnection
, a cast assert is made to check if types are compatible.void
ChangeDatabase(java.lang.String databaseName)
void
Close()
EntityCommand
CreateCommandNewEntityConnection()
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 TypeMetadataWorkspace
GetMetadataWorkspace()
DbConnection
getStoreConnection()
void
Open()
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.data.common.DbConnection
addStateChange, BeginTransaction, BeginTransaction, CreateCommand, getConnectionString, getConnectionTimeout, getDatabase, getDataSource, GetSchema, GetSchema, GetSchema, GetSchema, 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
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Data.Entity, 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.Entity- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Data.EntityClient.EntityConnection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EntityConnection
public EntityConnection(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
EntityConnection
public EntityConnection() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, FormatException, ArgumentException, InvalidOperationException, MissingManifestResourceException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, ConfigurationErrorsException, NotSupportedException, ConfigurationException, ProviderIncompatibleException, EntityException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
FormatException
ArgumentException
InvalidOperationException
MissingManifestResourceException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
ConfigurationErrorsException
NotSupportedException
ConfigurationException
ProviderIncompatibleException
EntityException
-
EntityConnection
public EntityConnection(MetadataWorkspace workspace, DbConnection connection) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, MappingException, InvalidOperationException, MetadataException
-
EntityConnection
public EntityConnection(java.lang.String connectionString) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, FormatException, ArgumentException, InvalidOperationException, MissingManifestResourceException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, ConfigurationErrorsException, NotImplementedException, NotSupportedException, ConfigurationException, ProviderIncompatibleException, EntityException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
FormatException
ArgumentException
InvalidOperationException
MissingManifestResourceException
IndexOutOfRangeException
ObjectDisposedException
AbandonedMutexException
ConfigurationErrorsException
NotImplementedException
NotSupportedException
ConfigurationException
ProviderIncompatibleException
EntityException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- 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 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 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 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 interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classDbConnection
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static EntityConnection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoEntityConnection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
EntityConnection
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CreateCommandNewEntityConnection
public EntityCommand CreateCommandNewEntityConnection() throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
BeginTransactionNewEntityConnection
public EntityTransaction BeginTransactionNewEntityConnection() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
BeginTransactionNewEntityConnection
public EntityTransaction BeginTransactionNewEntityConnection(IsolationLevel isolationLevel) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetMetadataWorkspace
public MetadataWorkspace GetMetadataWorkspace() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, MappingException, InvalidOperationException, MetadataException, ArgumentException, ObjectDisposedException, AbandonedMutexException, LockRecursionException, SynchronizationLockException, CultureNotFoundException, NotSupportedException, FileNotFoundException, NotImplementedException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
MappingException
InvalidOperationException
MetadataException
ArgumentException
ObjectDisposedException
AbandonedMutexException
LockRecursionException
SynchronizationLockException
CultureNotFoundException
NotSupportedException
FileNotFoundException
NotImplementedException
NullReferenceException
-
ChangeDatabase
public void ChangeDatabase(java.lang.String databaseName) throws java.lang.Throwable, NotSupportedException
- Overrides:
ChangeDatabase
in classDbConnection
- Throws:
java.lang.Throwable
NotSupportedException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, ArgumentException, EntityException
- Overrides:
Close
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
ObjectDisposedException
ArgumentException
EntityException
-
EnlistTransaction
public void EnlistTransaction(Transaction transaction) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, NotSupportedException, ConfigurationErrorsException, TransactionException, EntityException
- Overrides:
EnlistTransaction
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
NotSupportedException
ConfigurationErrorsException
TransactionException
EntityException
-
Open
public void Open() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, EntityException, MetadataException, SynchronizationLockException, LockRecursionException
- Overrides:
Open
in classDbConnection
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
EntityException
MetadataException
SynchronizationLockException
LockRecursionException
-
getStoreConnection
public DbConnection getStoreConnection() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-