Package com.arcadedb.query.sql.executor
Class UpdatableResult
- java.lang.Object
-
- com.arcadedb.query.sql.executor.ResultInternal
-
- com.arcadedb.query.sql.executor.UpdatableResult
-
- All Implemented Interfaces:
Result
public class UpdatableResult extends ResultInternal
- Author:
- Luigi Dell'Aquila (luigi.dellaquila-(at)-gmail.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected ResultInternal
previousValue
-
Fields inherited from class com.arcadedb.query.sql.executor.ResultInternal
content, metadata, temporaryContent
-
-
Constructor Summary
Constructors Constructor Description UpdatableResult(MutableDocument element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Document>
getElement()
<T> T
getProperty(String name)
returns a property from the resultSet<String>
getPropertyNames()
boolean
hasProperty(String propName)
boolean
isElement()
void
removeProperty(String name)
void
setProperty(String name, Object value)
Document
toElement()
-
Methods inherited from class com.arcadedb.query.sql.executor.ResultInternal
addMetadata, clearMetadata, equals, getElementProperty, getIdentity, getMetadata, getMetadataKeys, getRecord, getTemporaryProperties, getTemporaryProperty, hashCode, isProjection, removeMetadata, setElement, setMetadata, setPropertiesFromMap, setTemporaryProperty, toMap, toString
-
-
-
-
Field Detail
-
previousValue
protected ResultInternal previousValue
-
-
Constructor Detail
-
UpdatableResult
public UpdatableResult(MutableDocument element)
-
-
Method Detail
-
getProperty
public <T> T getProperty(String name)
Description copied from interface:Result
returns a property from the result- Specified by:
getProperty
in interfaceResult
- Overrides:
getProperty
in classResultInternal
- Parameters:
name
- the property name- Returns:
- the property value. If the property value is a persistent record, it only returns the RID. See also
Result.getElementProperty(String)
-
getPropertyNames
public Set<String> getPropertyNames()
- Specified by:
getPropertyNames
in interfaceResult
- Overrides:
getPropertyNames
in classResultInternal
-
hasProperty
public boolean hasProperty(String propName)
- Specified by:
hasProperty
in interfaceResult
- Overrides:
hasProperty
in classResultInternal
-
isElement
public boolean isElement()
- Specified by:
isElement
in interfaceResult
- Overrides:
isElement
in classResultInternal
-
getElement
public Optional<Document> getElement()
- Specified by:
getElement
in interfaceResult
- Overrides:
getElement
in classResultInternal
-
toElement
public Document toElement()
- Specified by:
toElement
in interfaceResult
- Overrides:
toElement
in classResultInternal
-
setProperty
public void setProperty(String name, Object value)
- Overrides:
setProperty
in classResultInternal
-
removeProperty
public void removeProperty(String name)
- Overrides:
removeProperty
in classResultInternal
-
-