public abstract class OracleElementBase extends java.lang.Object implements OracleElement
OracleElement.FLAG
Constructor and Description |
---|
OracleElementBase() |
OracleElementBase(OraclePropertyGraphBase opg, java.lang.Long id) |
Modifier and Type | Method and Description |
---|---|
void |
clearAddedKeys()
Clears the hash set of the added keys
|
void |
clearDeletedKeys()
Clears the hash set of the deleted keys
|
abstract void |
forceRefresh()
Re-read the attributes about this graph element from the database.
|
java.util.Set<java.lang.String> |
getAddedKeys()
Gets a hash set of the added keys
|
java.lang.String |
getAttributes()
Returns a String of all the Key, Value Pairs.
|
java.util.Set<java.lang.String> |
getDeletedKeys()
Gets a hash set of the deleted keys
|
java.util.List<java.lang.Object> |
getDeletedProperties(java.lang.String key)
Gets the value for the specified deleted keys
|
OracleElement.FLAG |
getFlag() |
OraclePropertyGraphBase |
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.
|
java.util.Set<java.lang.String> |
keys()
Return all the keys associated with the element.
|
abstract <V> OraclePropertyBase<V> |
property(java.lang.String key) |
void |
property(java.lang.String key, java.lang.Object value, boolean skipQueue)
Assign a key/value property to the element.
|
void |
property(java.lang.String key, java.lang.Object value, boolean skipQueue, boolean skipLucene)
Assign a key/value property to the element.
|
void |
propertyCommon(java.lang.String key, java.lang.Object value, boolean skipQueue)
Assign a key/value property to the element.
|
java.lang.Object |
propertyValue(java.lang.String key)
Return the value associated with the provided key.
|
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 |
setCreatedWithOptFlag(boolean bFlag)
Set the flag denoting if the element is created with optimization flag
|
void |
setFlag(OracleElement.FLAG f) |
void |
setGraph(OraclePropertyGraphBase opg)
Sets the property graph instance associated to this element
|
void |
setPartial(boolean partial)
Set a flag to denote if this graph element is only partially constructed.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
label, properties, property, remove
public OracleElementBase()
public OracleElementBase(OraclePropertyGraphBase opg, java.lang.Long id)
public void clearAddedKeys()
public void clearDeletedKeys()
public abstract void forceRefresh() throws java.lang.Exception
java.lang.Exception
public java.util.Set<java.lang.String> getAddedKeys()
public final java.lang.String getAttributes()
public java.util.Set<java.lang.String> getDeletedKeys()
public java.util.List<java.lang.Object> getDeletedProperties(java.lang.String key)
public final OracleElement.FLAG getFlag()
public OraclePropertyGraphBase graph()
OracleElement
graph
in interface OracleElement
OraclePropertyGraphBase
public final java.lang.Object id()
OracleElement
id
in interface OracleElement
public boolean isPartial()
public java.util.Set<java.lang.String> keys()
public abstract <V> OraclePropertyBase<V> property(java.lang.String key)
public final void property(java.lang.String key, java.lang.Object value, boolean skipQueue)
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 final void property(java.lang.String key, java.lang.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 final void propertyCommon(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 java.lang.Object propertyValue(java.lang.String key)
public void refresh()
public final java.lang.Object removeProperty(java.lang.String key)
public void setCreatedWithOptFlag(boolean bFlag)
public final void setFlag(OracleElement.FLAG f)
public final void setGraph(OraclePropertyGraphBase opg)
opg
- a OraclePropertyGraph objectpublic void setPartial(boolean partial)
partial
- true if this graph element is only partially constructed.