Package system.data.objects
Class ObjectStateManager
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.data.objects.ObjectStateManager
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class ObjectStateManager extends NetObject
The base .NET class managing System.Data.Objects.ObjectStateManager, 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.Objects.ObjectStateManager
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.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Data.Entitystatic java.lang.StringclassNameQualified class name: System.Data.Objects.ObjectStateManagerstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ObjectStateManager()ObjectStateManager(java.lang.Object instance)Internal constructor.ObjectStateManager(MetadataWorkspace metadataWorkspace)
-
Method Summary
-
-
-
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.Objects.ObjectStateManager- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectStateManager
public ObjectStateManager(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
ObjectStateManager
public ObjectStateManager() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
ObjectStateManager
public ObjectStateManager(MetadataWorkspace metadataWorkspace) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- 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 interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ObjectStateManager cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoObjectStateManager, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ObjectStateManagerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
TryGetObjectStateEntry
public boolean TryGetObjectStateEntry(EntityKey key, JCORefOut<ObjectStateEntry> entry) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ArgumentException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionArgumentExceptionKeyNotFoundException
-
TryGetObjectStateEntry
public boolean TryGetObjectStateEntry(NetObject entity, JCORefOut<ObjectStateEntry> entry) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionNullReferenceExceptionArgumentExceptionKeyNotFoundException
-
TryGetRelationshipManager
public boolean TryGetRelationshipManager(NetObject entity, JCORefOut<RelationshipManager> relationshipManager) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, LockRecursionException, SynchronizationLockException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionLockRecursionExceptionSynchronizationLockException
-
GetRelationshipManager
public RelationshipManager GetRelationshipManager(NetObject entity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, LockRecursionException, SynchronizationLockException
-
ChangeObjectState
public ObjectStateEntry ChangeObjectState(NetObject entity, EntityState entityState) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, NullReferenceException, KeyNotFoundException, ArgumentOutOfRangeException, MetadataException, MappingException
-
ChangeRelationshipState
public ObjectStateEntry ChangeRelationshipState(NetObject sourceEntity, NetObject targetEntity, java.lang.String navigationProperty, EntityState relationshipState) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, LockRecursionException, SynchronizationLockException, MappingException, MetadataException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionNullReferenceExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionLockRecursionExceptionSynchronizationLockExceptionMappingExceptionMetadataExceptionNotSupportedException
-
ChangeRelationshipState
public ObjectStateEntry ChangeRelationshipState(NetObject sourceEntity, NetObject targetEntity, java.lang.String relationshipName, java.lang.String targetRoleName, EntityState relationshipState) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, LockRecursionException, SynchronizationLockException, MappingException, MetadataException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionNullReferenceExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionLockRecursionExceptionSynchronizationLockExceptionMappingExceptionMetadataExceptionNotSupportedException
-
GetObjectStateEntry
public ObjectStateEntry GetObjectStateEntry(EntityKey key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, KeyNotFoundException, InvalidOperationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionKeyNotFoundExceptionInvalidOperationException
-
GetObjectStateEntry
public ObjectStateEntry GetObjectStateEntry(NetObject entity) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException
-
getMetadataWorkspace
public MetadataWorkspace getMetadataWorkspace() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addObjectStateManagerChanged
public void addObjectStateManagerChanged(CollectionChangeEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeObjectStateManagerChanged
public void removeObjectStateManagerChanged(CollectionChangeEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-