Package net.bitnine.agensgraph.graph
Class GraphEntity
java.lang.Object
org.postgresql.util.PGobject
net.bitnine.agensgraph.graph.GraphEntity
- All Implemented Interfaces:
Serializable,Cloneable,JsonbObject
public abstract class GraphEntity
extends org.postgresql.util.PGobject
implements JsonbObject, Serializable, Cloneable
This abstract class defines the graph entity.
- See Also:
-
Field Summary
Fields inherited from class org.postgresql.util.PGobject
type, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returns true if the given key is contained.Returns the value stored at the key.booleangetBoolean(String key) Returns the value stored at the key.booleangetBoolean(String key, boolean defaultValue) Returns the value stored at the key.doubleReturns the value stored at the key.doubleReturns the value stored at the key.Returns the value of GraphId.intReturns the value stored at the key.intReturns the value stored at the key.getKeys()Returns a set of keys.getLabel()Returns the value of label.longReturns the value stored at the key.longReturns the value stored at the key.Returns the value stored at the key.Returns the value of Jsonb.Returns the value stored at the key.Returns the value stored at the key.booleanReturns true if the value stored at the key is null.Methods inherited from class org.postgresql.util.PGobject
clone, equals, equals, getType, getValue, hashCode, isNull, setType, setValue, toString
-
Constructor Details
-
GraphEntity
public GraphEntity()
-
-
Method Details
-
getLabel
Returns the value of label.- Returns:
- the value of label
-
getGraphId
Returns the value of GraphId.- Returns:
- the value of GraphId
-
getProperties
Returns the value of Jsonb.- Returns:
- the value of Jsonb
-
getKeys
Description copied from interface:JsonbObjectReturns a set of keys.- Specified by:
getKeysin interfaceJsonbObject- Returns:
- a set of keys
-
containsKey
Description copied from interface:JsonbObjectReturns true if the given key is contained.- Specified by:
containsKeyin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- true if the given key is contained
-
getString
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getStringin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the string value stored at the key
-
getString
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getStringin interfaceJsonbObject- Parameters:
key- the given keydefaultValue- returned the default value if the value stored at the key is null- Returns:
- the string value stored at the key
-
getInt
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getIntin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the int value stored at the key
-
getInt
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getIntin interfaceJsonbObject- Parameters:
key- the given keydefaultValue- returned the default value if the value stored at the key is null- Returns:
- the int value stored at the key
-
getLong
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getLongin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the long value stored at the key
-
getLong
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getLongin interfaceJsonbObject- Parameters:
key- the given keydefaultValue- returned the default value if the value stored at the key is null- Returns:
- the long value stored at the key
-
getDouble
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getDoublein interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the double value stored at the key
-
getDouble
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getDoublein interfaceJsonbObject- Parameters:
key- the given keydefaultValue- returned the default value if the value stored at the key is null- Returns:
- the double value stored at the key
-
getBoolean
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getBooleanin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the boolean value stored at the key
-
getBoolean
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getBooleanin interfaceJsonbObject- Parameters:
key- the given keydefaultValue- returned the default value if the value stored at the key is null- Returns:
- the boolean value stored at the key
-
getArray
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getArrayin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the array value stored at the key
-
getObject
Description copied from interface:JsonbObjectReturns the value stored at the key.- Specified by:
getObjectin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- the object value stored at the key
-
isNull
Description copied from interface:JsonbObjectReturns true if the value stored at the key is null.- Specified by:
isNullin interfaceJsonbObject- Parameters:
key- the given key- Returns:
- true if the value stored at the key is null
-