public abstract class OracleElement extends Object implements OracleElementBase
Constructor and Description |
---|
OracleElement() |
Modifier and Type | Method and Description |
---|---|
abstract void |
forceRefresh()
Re-read the attributes about this graph element from the database.
|
String |
getAttributes()
Returns a String of all the Key, Value Pairs.
|
Long |
getId()
Return the identifier of this element.
|
Object |
getProperty(String key)
Return the value associated with the provided key.
|
OraclePropertyGraph |
getPropertyGraph()
Gets the property graph instance associated to this element
|
Set<String> |
getPropertyKeys()
Return all the keys associated with the element.
|
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.
|
Object |
removeProperty(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(String key, Object value)
Assign a key/value property to the element.
|
void |
setProperty(String key, Object value, boolean skipQueue)
Assign a key/value property to the element.
|
void |
setProperty(String key, Object value, boolean skipQueue, boolean skipLucene)
Assign a key/value property to the element.
|
void |
setPropertyCommon(String key, Object value, boolean skipQueue)
Assign a key/value property to the element.
|
public abstract void forceRefresh() throws Exception
forceRefresh
in interface OracleElementBase
Exception
public String getAttributes()
public Long getId()
public Object getProperty(String key)
getProperty
in interface Element
public OraclePropertyGraph getPropertyGraph()
public Set<String> getPropertyKeys()
getPropertyKeys
in interface Element
public boolean isPartial()
public void refresh()
public Object removeProperty(String key)
removeProperty
in interface Element
public void setPartial(boolean partial)
setPartial
in interface OracleElementBase
partial
- true if this graph element is only partially constructed.public void setProperty(String key, Object value)
setProperty
in interface Element
public void setProperty(String key, 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(String key, Object value, boolean skipQueue, boolean skipLucene)
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(String key, 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.Copyright © 2015 Oracle and/or its afflilates. All Rights Reserved.