|
|||||||||
| Home >> All >> nectar >> [ record overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
nectar.record
Class IdTree

java.lang.Objectnectar.record.IdTree
- public class IdTree
- extends java.lang.Object
A Record ID - Record type Tree Structure.
| Field Summary | |
private java.util.List |
children
|
private java.lang.Long |
id
|
private java.lang.String |
type
|
| Constructor Summary | |
IdTree()
Create a new empty IdTree instance. |
|
IdTree(java.lang.Long id)
Create an IdTree instance whose root ID number is set. |
|
IdTree(java.lang.Long id,
java.lang.String type)
Construct a new IdTree whose root ID and root type are set. |
|
| Method Summary | |
void |
addChild(IdTree id)
Append a child IdTree to this IdTree. |
java.util.Collection |
getAllIds()
Fetches all the ID numbers of an IdTree and it's children. |
private void |
getAllIdsRecurse(java.util.List list)
|
java.util.HashMap |
getAllIdsTypes()
iterates through the tree, compiling a hashMap of format [recordType] => List[id]. |
private void |
getAllIdsTypesRecurse(java.util.HashMap map)
|
java.util.List |
getChildren()
Returns the java.util.List of IdTrees which are linked as children to this IdTree. |
int |
getCount()
|
java.lang.Long |
getId()
Return the root ID number. |
java.lang.String |
getType()
Returns the root type. |
void |
setId(java.lang.Long id)
Set the Id number of the root. |
void |
setType(java.lang.String type)
Set the type of the root Record. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
id
private java.lang.Long id
type
private java.lang.String type
children
private java.util.List children
| Constructor Detail |
IdTree
public IdTree()
- Create a new empty IdTree instance.
IdTree
public IdTree(java.lang.Long id)
- Create an IdTree instance whose root ID number is set.
IdTree
public IdTree(java.lang.Long id, java.lang.String type)
- Construct a new IdTree whose root ID and root type are set.
| Method Detail |
setId
public void setId(java.lang.Long id)
- Set the Id number of the root.
getId
public java.lang.Long getId()
- Return the root ID number.
setType
public void setType(java.lang.String type)
- Set the type of the root Record.
getType
public java.lang.String getType()
- Returns the root type.
getChildren
public java.util.List getChildren()
- Returns the
java.util.ListofIdTrees which are linked as children to thisIdTree.
addChild
public void addChild(IdTree id)
- Append a child IdTree to this IdTree.
getAllIds
public java.util.Collection getAllIds()
- Fetches all the ID numbers of an IdTree and it's children.
getAllIdsRecurse
private void getAllIdsRecurse(java.util.List list)
getAllIdsTypes
public java.util.HashMap getAllIdsTypes()
- iterates through the tree, compiling a hashMap of format [recordType] => List[id].
getAllIdsTypesRecurse
private void getAllIdsTypesRecurse(java.util.HashMap map)
getCount
public int getCount()
|
|||||||||
| Home >> All >> nectar >> [ record overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
nectar.record.IdTree