
public interface OElement extends ORecord
ORecordElement.STATUS| Modifier and Type | Method and Description |
|---|---|
Optional<OEdge> |
asEdge()
Returns an instance of OEdge representing current element
|
Optional<OVertex> |
asVertex()
Returns an instance of OVertex representing current element
|
<RET> RET |
getProperty(String name)
Gets a property given its name
|
Set<String> |
getPropertyNames()
Returns all the names of defined properties
|
Optional<OClass> |
getSchemaType()
Returns the type of current element, ie the class in the schema (if any)
|
boolean |
hasProperty(String propertyName)
Check if a property exists in the Element
|
boolean |
isEdge()
return true if the current element is an edge
|
boolean |
isVertex()
return true if the current element is a vertex
|
<RET> RET |
removeProperty(String name)
Remove a property
|
void |
setProperty(String name,
Object value)
Sets a property value
|
void |
setProperty(String name,
Object value,
OType... fieldType)
Sets a property value
|
clear, copy, delete, detach, fromJSON, getDatabase, getIdentity, getInternalStatus, getSize, getVersion, isDirty, load, reload, reload, reset, save, save, save, save, setInternalStatus, toJSON, toJSON, unloadgetOwner, setDirty, setDirtyNoChangedgetRecord, isLocked, lock, lockingStrategy, unlockcompareTocompare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongfromStream, toStreamSet<String> getPropertyNames()
<RET> RET getProperty(String name)
RET - name - the property nameboolean hasProperty(String propertyName)
propertyName - void setProperty(String name, Object value)
name - the property namevalue - the property valuevoid setProperty(String name, Object value, OType... fieldType)
name - the property namevalue - the property valuefieldType - Forced type (not auto-determined)<RET> RET removeProperty(String name)
name - the property nameOptional<OVertex> asVertex()
Optional<OEdge> asEdge()
boolean isVertex()
boolean isEdge()
Copyright © 2009–2025 OrientDB. All rights reserved.