Package com.arcadedb.database
Class DetachedDocument
- java.lang.Object
-
- com.arcadedb.database.BaseRecord
-
- com.arcadedb.database.BaseDocument
-
- com.arcadedb.database.ImmutableDocument
-
- com.arcadedb.database.DetachedDocument
-
- All Implemented Interfaces:
Document
,Identifiable
,Record
,Externalizable
,Serializable
public class DetachedDocument extends ImmutableDocument
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.arcadedb.database.BaseDocument
propertiesStartingPosition, type
-
Fields inherited from class com.arcadedb.database.BaseRecord
buffer, database, rid
-
Fields inherited from interface com.arcadedb.database.Document
RECORD_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DetachedDocument(BaseDocument source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String propertyName)
Set<String>
getPropertyNames()
boolean
has(String propertyName)
MutableDocument
modify()
void
reload()
void
setBuffer(Binary buffer)
org.json.JSONObject
toJSON()
Map<String,Object>
toMap()
String
toString()
-
Methods inherited from class com.arcadedb.database.ImmutableDocument
checkForLazyLoading
-
Methods inherited from class com.arcadedb.database.BaseDocument
asDocument, asDocument, detach, getBoolean, getByte, getDate, getDecimal, getDouble, getEmbedded, getFloat, getInteger, getLong, getRecordType, getShort, getString, getType, getTypeName, readExternal, writeExternal
-
Methods inherited from class com.arcadedb.database.BaseRecord
asEdge, asEdge, asVertex, asVertex, delete, equals, getBuffer, getDatabase, getIdentity, getRecord, getRecord, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.arcadedb.database.Identifiable
asEdge, asEdge, asVertex, asVertex, getRecord, getRecord
-
Methods inherited from interface com.arcadedb.database.Record
delete, getDatabase, getIdentity
-
-
-
-
Constructor Detail
-
DetachedDocument
protected DetachedDocument(BaseDocument source)
-
-
Method Detail
-
modify
public MutableDocument modify()
- Specified by:
modify
in interfaceDocument
- Overrides:
modify
in classImmutableDocument
-
toMap
public Map<String,Object> toMap()
- Specified by:
toMap
in interfaceDocument
- Overrides:
toMap
in classImmutableDocument
-
toJSON
public org.json.JSONObject toJSON()
-
has
public boolean has(String propertyName)
- Specified by:
has
in interfaceDocument
- Overrides:
has
in classImmutableDocument
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceDocument
- Overrides:
get
in classImmutableDocument
-
setBuffer
public void setBuffer(Binary buffer)
- Overrides:
setBuffer
in classBaseRecord
-
toString
public String toString()
- Overrides:
toString
in classImmutableDocument
-
getPropertyNames
public Set<String> getPropertyNames()
- Specified by:
getPropertyNames
in interfaceDocument
- Overrides:
getPropertyNames
in classImmutableDocument
-
reload
public void reload()
- Specified by:
reload
in interfaceRecord
- Overrides:
reload
in classBaseDocument
-
-