public abstract class OracleElement extends java.lang.Object implements OracleElementBase
Element.Exceptions
Constructor and Description |
---|
OracleElement() |
Modifier and Type | Method and Description |
---|---|
abstract void |
forceRefresh()
Re-read the attributes about this graph element from the database.
|
java.lang.String |
getAttributes()
Returns a String of all the Key, Value Pairs.
|
java.lang.Long |
getId()
Return the identifier of this element.
|
java.lang.Object |
getProperty(java.lang.String key)
Return the value associated with the provided key.
|
OraclePropertyGraph |
getPropertyGraph()
Gets the property graph instance associated to this element
|
java.util.Set<java.lang.String> |
getPropertyKeys()
Return all the keys associated with the element.
|
com.tinkerpop.blueprints.Graph |
graph()
Gets the property graph instance associated to this object.
|
java.lang.Object |
id()
Returns an identifier of this element that is unique to its inheriting
class.
|
boolean |
isPartial()
Returns TRUE if this object is partially constructured.
|
void |
refresh()
Re-read the attributes about this graph element from the database if
this element is only partially constructed.
|
java.lang.Object |
removeProperty(java.lang.String key)
Un-assigns a key/value property from the element.
|
void |
setPartial(boolean partial)
Set a flag to denote if this graph element is only partially constructed.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Assign a key/value property to the element.
|
void |
setProperty(java.lang.String key,
java.lang.Object value,
boolean skipQueue)
Assign a key/value property to the element.
|
void |
setProperty(java.lang.String key,
java.lang.Object value,
boolean skipQueue,
boolean skipLucene)
Assign a key/value property to the element.
|
void |
setPropertyCommon(java.lang.String key,
java.lang.Object value,
boolean skipQueue)
Assign a key/value property to the element.
|
void |
setPropertyGraph(OraclePropertyGraphBase opg)
Sets the property graph instance associated to this element
|
public abstract void forceRefresh() throws java.lang.Exception
forceRefresh
in interface OracleElementBase
java.lang.Exception
public java.lang.String getAttributes()
getAttributes
in interface OracleElementBase
public java.lang.Long getId()
public java.lang.Object getProperty(java.lang.String key)
public OraclePropertyGraph getPropertyGraph()
public java.util.Set<java.lang.String> getPropertyKeys()
public com.tinkerpop.blueprints.Graph graph()
graph
in interface Element
OraclePropertyGraph
public java.lang.Object id()
public boolean isPartial()
public void refresh()
public java.lang.Object removeProperty(java.lang.String key)
public void setPartial(boolean partial)
setPartial
in interface OracleElementBase
partial
- true if this graph element is only partially constructed.public void setProperty(java.lang.String key, java.lang.Object value)
public void setProperty(java.lang.String key, java.lang.Object value, boolean skipQueue)
setProperty
in interface OracleElementBase
key
- key of the attribute (K/V)value
- value of the attribute (K/V)skipQueue
- when true, then this K/V pair change will not
cause this Element to be put in the update queue.public void setProperty(java.lang.String key, java.lang.Object value, boolean skipQueue, boolean skipLucene)
setProperty
in interface OracleElementBase
key
- key of the attribute (K/V)value
- value of the attribute (K/V)skipQueue
- when true, then this K/V pair change will not
cause this Element to be put in the update queue.skipLucene
- when true, then this K/V pair will not be indexedpublic void setPropertyCommon(java.lang.String key, java.lang.Object value, boolean skipQueue)
key
- key of an attribute (K/V pair)value
- value of an attribute (K/V pair)skipQueue
- when true, then this K/V pair change will not
cause this Element to be put in the update queye.public void setPropertyGraph(OraclePropertyGraphBase opg)
setPropertyGraph
in interface OracleElementBase
opg
- a OraclePropertyGraph objectCopyright © 2015, 2019, Oracle and/or its afflilates. All Rights Reserved.