public class PersistentEntity extends java.lang.Object implements jetbrains.exodus.entitystore.Entity, TxnProvider
| Constructor and Description |
|---|
PersistentEntity(@NotNull PersistentEntityStoreImpl store,
@NotNull PersistentEntityId id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLink(@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.Entity target) |
boolean |
addLink(@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.EntityId targetId) |
protected void |
assertWritable() |
int |
compareTo(@NotNull jetbrains.exodus.entitystore.Entity o) |
boolean |
delete() |
boolean |
deleteBlob(@NotNull java.lang.String blobName) |
boolean |
deleteLink(@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.Entity target) |
boolean |
deleteLink(@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.EntityId targetId) |
void |
deleteLinks(@NotNull java.lang.String linkName) |
boolean |
deleteProperty(@NotNull java.lang.String propertyName) |
boolean |
equals(java.lang.Object obj) |
@Nullable java.io.InputStream |
getBlob(@NotNull java.lang.String blobName) |
@NotNull java.util.List<java.lang.String> |
getBlobNames() |
long |
getBlobSize(@NotNull java.lang.String blobName) |
@Nullable java.lang.String |
getBlobString(@NotNull java.lang.String blobName) |
@NotNull PersistentEntityId |
getId() |
@Nullable jetbrains.exodus.entitystore.Entity |
getLink(@NotNull java.lang.String linkName) |
@NotNull java.util.List<java.lang.String> |
getLinkNames() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
getLinks(@NotNull java.util.Collection<java.lang.String> linkNames) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
getLinks(@NotNull java.lang.String linkName) |
@Nullable java.lang.Comparable |
getProperty(@NotNull java.lang.String propertyName) |
@NotNull java.util.List<java.lang.String> |
getPropertyNames() |
@Nullable jetbrains.exodus.ByteIterable |
getRawProperty(@NotNull java.lang.String propertyName) |
ReadOnlyPersistentEntity |
getSnapshot(@NotNull PersistentStoreTransaction txn) |
@NotNull jetbrains.exodus.entitystore.EntityStore |
getStore() |
@NotNull PersistentStoreTransaction |
getTransaction() |
@NotNull java.lang.String |
getType() |
boolean |
hasBlob(@NotNull java.lang.String blobName) |
int |
hashCode() |
void |
setBlob(@NotNull java.lang.String blobName,
@NotNull java.io.File file) |
void |
setBlob(@NotNull java.lang.String blobName,
@NotNull java.io.InputStream blob) |
boolean |
setBlobString(@NotNull java.lang.String blobName,
@NotNull java.lang.String blobString) |
boolean |
setLink(@NotNull java.lang.String linkName,
@Nullable jetbrains.exodus.entitystore.Entity target) |
boolean |
setLink(@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.EntityId targetId) |
boolean |
setProperty(@NotNull java.lang.String propertyName,
@NotNull java.lang.Comparable value) |
@NotNull java.lang.String |
toIdString() |
java.lang.String |
toString() |
public PersistentEntity(@NotNull
@NotNull PersistentEntityStoreImpl store,
@NotNull
@NotNull PersistentEntityId id)
public ReadOnlyPersistentEntity getSnapshot(@NotNull @NotNull PersistentStoreTransaction txn)
@NotNull public @NotNull PersistentStoreTransaction getTransaction()
getTransaction in interface TxnProviderprotected void assertWritable()
public java.lang.String toString()
toString in class java.lang.Object@NotNull public @NotNull jetbrains.exodus.entitystore.EntityStore getStore()
getStore in interface jetbrains.exodus.entitystore.Entity@NotNull public @NotNull PersistentEntityId getId()
getId in interface jetbrains.exodus.entitystore.Entity@NotNull public @NotNull java.lang.String toIdString()
toIdString in interface jetbrains.exodus.entitystore.Entity@NotNull public @NotNull java.lang.String getType()
getType in interface jetbrains.exodus.entitystore.Entitypublic boolean delete()
delete in interface jetbrains.exodus.entitystore.Entity@Nullable
public @Nullable jetbrains.exodus.ByteIterable getRawProperty(@NotNull
@NotNull java.lang.String propertyName)
getRawProperty in interface jetbrains.exodus.entitystore.Entity@Nullable
public @Nullable java.lang.Comparable getProperty(@NotNull
@NotNull java.lang.String propertyName)
getProperty in interface jetbrains.exodus.entitystore.Entitypublic boolean setProperty(@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull java.lang.Comparable value)
setProperty in interface jetbrains.exodus.entitystore.Entitypublic boolean deleteProperty(@NotNull
@NotNull java.lang.String propertyName)
deleteProperty in interface jetbrains.exodus.entitystore.Entity@NotNull public @NotNull java.util.List<java.lang.String> getPropertyNames()
getPropertyNames in interface jetbrains.exodus.entitystore.Entitypublic boolean hasBlob(@NotNull
@NotNull java.lang.String blobName)
@Nullable
public @Nullable java.io.InputStream getBlob(@NotNull
@NotNull java.lang.String blobName)
getBlob in interface jetbrains.exodus.entitystore.Entitypublic long getBlobSize(@NotNull
@NotNull java.lang.String blobName)
getBlobSize in interface jetbrains.exodus.entitystore.Entity@Nullable
public @Nullable java.lang.String getBlobString(@NotNull
@NotNull java.lang.String blobName)
getBlobString in interface jetbrains.exodus.entitystore.Entitypublic void setBlob(@NotNull
@NotNull java.lang.String blobName,
@NotNull
@NotNull java.io.InputStream blob)
setBlob in interface jetbrains.exodus.entitystore.Entitypublic void setBlob(@NotNull
@NotNull java.lang.String blobName,
@NotNull
@NotNull java.io.File file)
setBlob in interface jetbrains.exodus.entitystore.Entitypublic boolean setBlobString(@NotNull
@NotNull java.lang.String blobName,
@NotNull
@NotNull java.lang.String blobString)
setBlobString in interface jetbrains.exodus.entitystore.Entitypublic boolean deleteBlob(@NotNull
@NotNull java.lang.String blobName)
deleteBlob in interface jetbrains.exodus.entitystore.Entity@NotNull public @NotNull java.util.List<java.lang.String> getBlobNames()
getBlobNames in interface jetbrains.exodus.entitystore.Entitypublic boolean addLink(@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity target)
addLink in interface jetbrains.exodus.entitystore.Entitypublic boolean addLink(@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId targetId)
addLink in interface jetbrains.exodus.entitystore.Entity@Nullable
public @Nullable jetbrains.exodus.entitystore.Entity getLink(@NotNull
@NotNull java.lang.String linkName)
getLink in interface jetbrains.exodus.entitystore.Entitypublic boolean setLink(@NotNull
@NotNull java.lang.String linkName,
@Nullable
@Nullable jetbrains.exodus.entitystore.Entity target)
setLink in interface jetbrains.exodus.entitystore.Entitypublic boolean setLink(@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId targetId)
setLink in interface jetbrains.exodus.entitystore.Entity@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable getLinks(@NotNull
@NotNull java.lang.String linkName)
getLinks in interface jetbrains.exodus.entitystore.Entity@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable getLinks(@NotNull
@NotNull java.util.Collection<java.lang.String> linkNames)
getLinks in interface jetbrains.exodus.entitystore.Entitypublic boolean deleteLink(@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity target)
deleteLink in interface jetbrains.exodus.entitystore.Entitypublic boolean deleteLink(@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId targetId)
deleteLink in interface jetbrains.exodus.entitystore.Entitypublic void deleteLinks(@NotNull
@NotNull java.lang.String linkName)
deleteLinks in interface jetbrains.exodus.entitystore.Entity@NotNull public @NotNull java.util.List<java.lang.String> getLinkNames()
getLinkNames in interface jetbrains.exodus.entitystore.Entitypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(@NotNull
@NotNull jetbrains.exodus.entitystore.Entity o)
compareTo in interface java.lang.Comparable<jetbrains.exodus.entitystore.Entity>