Interface OResult
- All Known Implementing Classes:
OResultBinary,OResultInternal,OTraverseResult,OUpdatableResult
public interface OResult
Created by luigidellaquila on 21/07/16.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetBlob()getBlobProperty(String name) returns an OBlob property from the resultgetEdge()getEdgeProperty(String name) returns an OEdge property from the resultgetElementProperty(String name) returns an OElement property from the resultgetMetadata(String key) return metadata related to current result given a keyreturn all the metadata keys available<T> TgetProperty(String name) returns a property from the resultgetVertexProperty(String name) returns an OVertex property from the resultbooleanhasProperty(String varName) booleanisBlob()default booleanisEdge()booleanbooleandefault booleanisRecord()default booleanisVertex()default Stringdefault StringtoJSON()
-
Method Details
-
getProperty
returns a property from the result- Type Parameters:
T-- Parameters:
name- the property name- Returns:
- the property value. If the property value is a persistent record, it only returns the
RID. See also
getElementProperty(String)getVertexProperty(String)getEdgeProperty(String)getBlobProperty(String)
-
getElementProperty
returns an OElement property from the result- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OElement
-
getVertexProperty
returns an OVertex property from the result- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OVertex
-
getEdgeProperty
returns an OEdge property from the result- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OEdge
-
getBlobProperty
returns an OBlob property from the result- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OBlob
-
getPropertyNames
-
getIdentity
-
isElement
boolean isElement() -
getElement
-
toElement
OElement toElement() -
isVertex
default boolean isVertex() -
getVertex
-
isEdge
default boolean isEdge() -
getEdge
-
isBlob
boolean isBlob() -
getBlob
-
getRecord
-
isRecord
default boolean isRecord() -
isProjection
boolean isProjection() -
getMetadata
return metadata related to current result given a key- Parameters:
key- the metadata key- Returns:
- metadata related to current result given a key
-
getMetadataKeys
return all the metadata keys available- Returns:
- all the metadata keys available
-
toJSON
-
toJson
-
encode
-
hasProperty
-