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.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.Objects.ObjectStateManagerstatic JCType
classType
The 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.Throwable
Internal 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.Throwable
ArgumentOutOfRangeException
ArgumentException
ArgumentNullException
-
-
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 classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ObjectStateManager cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoObjectStateManager
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ObjectStateManager
instance- 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.Throwable
ArgumentNullException
MissingManifestResourceException
ArgumentException
KeyNotFoundException
-
TryGetObjectStateEntry
public boolean TryGetObjectStateEntry(NetObject entity, JCORefOut<ObjectStateEntry> entry) throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentNullException
NullReferenceException
ArgumentException
KeyNotFoundException
-
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.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
LockRecursionException
SynchronizationLockException
-
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.Throwable
ArgumentNullException
NullReferenceException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
LockRecursionException
SynchronizationLockException
MappingException
MetadataException
NotSupportedException
-
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.Throwable
ArgumentNullException
NullReferenceException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
LockRecursionException
SynchronizationLockException
MappingException
MetadataException
NotSupportedException
-
GetObjectStateEntry
public ObjectStateEntry GetObjectStateEntry(EntityKey key) throws java.lang.Throwable, ArgumentNullException, ArgumentException, KeyNotFoundException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
KeyNotFoundException
InvalidOperationException
-
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
-
-