Package com.arcadedb.database
Interface Document
-
- All Superinterfaces:
Identifiable
,Record
- All Known Subinterfaces:
Edge
,EmbeddedDocument
,LightEdge
,Vertex
,VertexInternal
- All Known Implementing Classes:
BaseDocument
,DetachedDocument
,ImmutableDocument
,ImmutableEdge
,ImmutableEmbeddedDocument
,ImmutableLightEdge
,ImmutableVertex
,MutableDocument
,MutableEdge
,MutableEmbeddedDocument
,MutableVertex
public interface Document extends Record
-
-
Field Summary
Fields Modifier and Type Field Description static byte
RECORD_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Document
asDocument()
Returns the document record.default Document
asDocument(boolean loadContent)
Returns the document record.DetachedDocument
detach()
Object
get(String propertyName)
Boolean
getBoolean(String propertyName)
Byte
getByte(String propertyName)
Date
getDate(String propertyName)
BigDecimal
getDecimal(String propertyName)
Double
getDouble(String propertyName)
EmbeddedDocument
getEmbedded(String propertyName)
Float
getFloat(String propertyName)
Integer
getInteger(String propertyName)
Long
getLong(String propertyName)
Set<String>
getPropertyNames()
Short
getShort(String propertyName)
String
getString(String propertyName)
DocumentType
getType()
String
getTypeName()
boolean
has(String propertyName)
MutableDocument
modify()
org.json.JSONObject
toJSON()
Map<String,Object>
toMap()
-
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, getRecordType, reload
-
-
-
-
Field Detail
-
RECORD_TYPE
static final byte RECORD_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
modify
MutableDocument modify()
-
detach
DetachedDocument detach()
-
has
boolean has(String propertyName)
-
getDecimal
BigDecimal getDecimal(String propertyName)
-
getEmbedded
EmbeddedDocument getEmbedded(String propertyName)
-
getType
DocumentType getType()
-
getTypeName
String getTypeName()
-
asDocument
default Document asDocument()
Description copied from interface:Identifiable
Returns the document record. If the record is not a document, a UnsupportedOperationException exception is thrown.- Specified by:
asDocument
in interfaceIdentifiable
- Returns:
- the
Document
-
asDocument
default Document asDocument(boolean loadContent)
Description copied from interface:Identifiable
Returns the document record. If the record is not a document, a UnsupportedOperationException exception is thrown.- Specified by:
asDocument
in interfaceIdentifiable
- Parameters:
loadContent
- specifies if pre-load the record content- Returns:
- the
Document
-
-