Class OResultInternal
java.lang.Object
com.orientechnologies.orient.core.sql.executor.OResultInternal
- All Implemented Interfaces:
OResult,Comparable<OResultInternal>
- Direct Known Subclasses:
OTraverseResult,OUpdatableResult
Created by luigidellaquila on 06/07/16.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(Map<String, Object> values) voidvoidintbooleangetBlob()getBlobProperty(String name) returns an OBlob property from the resultgetEdgeProperty(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 resultgetTemporaryProperty(String name) getVertexProperty(String name) returns an OVertex property from the resultinthashCode()booleanhasProperty(String propName) booleanisBlob()booleanbooleanvoidvoidremoveMetadata(String key) voidremoveProperty(String name) voidsetElement(OIdentifiable element) voidsetMetadata(String key, Object value) voidsetProperty(String name, Object value) voidsetTemporaryProperty(String name, Object value) toString()
-
Field Details
-
-
temporaryContent
-
metadata
-
element
-
-
Constructor Details
-
OResultInternal
public OResultInternal() -
OResultInternal
-
OResultInternal
-
-
Method Details
-
setProperty
-
setTemporaryProperty
-
getTemporaryProperty
-
getTemporaryProperties
-
removeProperty
-
getProperty
Description copied from interface:OResultreturns a property from the result- Specified by:
getPropertyin interfaceOResult- 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
OResult.getElementProperty(String)OResult.getVertexProperty(String)OResult.getEdgeProperty(String)OResult.getBlobProperty(String)
-
getElementProperty
Description copied from interface:OResultreturns an OElement property from the result- Specified by:
getElementPropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OElement
-
getVertexProperty
Description copied from interface:OResultreturns an OVertex property from the result- Specified by:
getVertexPropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OVertex
-
getEdgeProperty
Description copied from interface:OResultreturns an OEdge property from the result- Specified by:
getEdgePropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OEdge
-
getBlobProperty
Description copied from interface:OResultreturns an OBlob property from the result- Specified by:
getBlobPropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OBlob
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceOResult
-
hasProperty
- Specified by:
hasPropertyin interfaceOResult
-
isElement
public boolean isElement() -
getElement
- Specified by:
getElementin interfaceOResult
-
toElement
-
getIdentity
- Specified by:
getIdentityin interfaceOResult
-
isProjection
public boolean isProjection()- Specified by:
isProjectionin interfaceOResult
-
getRecord
-
isBlob
public boolean isBlob() -
getBlob
-
getMetadata
Description copied from interface:OResultreturn metadata related to current result given a key- Specified by:
getMetadatain interfaceOResult- Parameters:
key- the metadata key- Returns:
- metadata related to current result given a key
-
setMetadata
-
clearMetadata
public void clearMetadata() -
removeMetadata
-
addMetadata
-
getMetadataKeys
Description copied from interface:OResultreturn all the metadata keys available- Specified by:
getMetadataKeysin interfaceOResult- Returns:
- all the metadata keys available
-
loadElement
public void loadElement() -
setElement
-
toString
-
equals
-
hashCode
public int hashCode() -
bindToCache
-
compareTo
- Specified by:
compareToin interfaceComparable<OResultInternal>
-