@Entity(name="nodes") public class NodeEntity extends Object implements Serializable
| Constructor and Description |
|---|
NodeEntity() |
| Modifier and Type | Method and Description |
|---|---|
Collection<NodeEntity> |
get_children()
Returns child nodes
|
int |
get_id()
Returns primary key
|
int |
get_parent_id()
Returns parent primary key
|
int |
getLevel()
Returns depth in graph, starting at 1 for the solitary root node
|
int |
getModel()
Returns model ordinal value
|
String |
getName()
Returns node name
|
NodeEntity |
getParent()
Returns parent node or, if root node, self
|
String |
getTitle()
Returns node title (human readable)
|
void |
set_children(Collection<NodeEntity> _children)
Sets child nodes
|
void |
set_id(int _id)
Set primary key
|
void |
set_parent_id(int _parent_id)
Sets parent primary key
|
void |
setLevel(int level)
Sets depth in graph, starting at 1 for the solitary root node
|
void |
setModel(int model)
Set model ordinal value
|
void |
setName(String name)
Set node name (computer friendly)
|
void |
setParent(NodeEntity parent)
Sets parent node
|
void |
setTitle(String title)
Set node title (human readable)
|
public int get_id()
public void set_id(int _id)
_id - intpublic int getModel()
public void setModel(int model)
model - intpublic String getName()
public void setName(String name)
name - Stringpublic String getTitle()
public void setTitle(String title)
title - Stringpublic int getLevel()
public void setLevel(int level)
level - intpublic NodeEntity getParent()
public void setParent(NodeEntity parent)
parent - NodeEntitypublic Collection<NodeEntity> get_children()
public void set_children(Collection<NodeEntity> _children)
_children - Collection<NodeEntity>public int get_parent_id()
public void set_parent_id(int _parent_id)
_parent_id - intThis documentation is licensed by Andrew Bowley under the GPLv3 License.