public interface PersistentEObject extends InternalEObject
InternalEObject.EStore
EOPPOSITE_FEATURE_BASE
Modifier and Type | Method and Description |
---|---|
static PersistentEObject |
from(Object object)
Returns the given
object as a PersistentEObject . |
Id |
id()
Returns the identifier of this
PersistentEObject . |
void |
id(Id id)
Defines the identifier of this
PersistentEObject . |
boolean |
isMapped()
Returns whether this
PersistentEObject is mapped to an entity stored in a database. |
Resource.Internal |
resource()
Returns the resource that contains this
PersistentEObject . |
void |
resource(Resource.Internal resource)
Defines the resource that contains this
PersistentEObject . |
void |
setMapped(boolean mapped)
Defines whether this
PersistentEObject is mapped to an entity stored in a database. |
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainerFeatureID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eGet, eGet, eInternalContainer, eInternalResource, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSet, eSetClass, eSetProxyURI, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
@Nullable static PersistentEObject from(@Nullable Object object)
object
as a PersistentEObject
.object
- the object to adaptPersistentEObject
, or null
if the object
cannot be
assigned as a PersistentEObject
void id(@Nonnull Id id)
PersistentEObject
.id
- the identifierboolean isMapped()
PersistentEObject
is mapped to an entity stored in a database.true
if this PersistentEObject
is mapped to an entity stored in a databasevoid setMapped(boolean mapped)
PersistentEObject
is mapped to an entity stored in a database.mapped
- true
if this PersistentEObject
is mapped, otherwise false
@Nullable Resource.Internal resource()
PersistentEObject
.void resource(@Nullable Resource.Internal resource)
PersistentEObject
.resource
- the containing resourceCopyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.