|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.dao.MyVersionGraph
public class MyVersionGraph
a simple graph structure supporting transfering over network.
| Constructor Summary | |
|---|---|
MyVersionGraph()
default constructor |
|
| Method Summary | |
|---|---|
void |
addOldNewLink(java.lang.Integer oldRecordId,
java.lang.Integer newRecordId)
add a version relation |
void |
addVersion(java.lang.Integer recordId)
add a new version |
java.util.ArrayList |
getDownstreamNodeIdList(java.lang.Integer recordId)
get the list of new version record |
java.util.ArrayList |
getUpstreamNodeIdList(java.lang.Integer recordId)
get the list of old version record |
java.util.Map |
getVersionNodeMap()
|
boolean |
isEmpty()
if there is any history records |
int |
size()
get the node size of the version, to handle if there is not any history record. |
java.lang.String |
toPresentation()
get the stringization of this instance, same as toString() but use different method name to prevent name conflication |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyVersionGraph()
| Method Detail |
|---|
public void addVersion(java.lang.Integer recordId)
recordId - the record id to be addedpublic int size()
public boolean isEmpty()
public void addOldNewLink(java.lang.Integer oldRecordId,
java.lang.Integer newRecordId)
oldRecordId - the record id of old recordnewRecordId - the record id of new recordpublic java.util.ArrayList getDownstreamNodeIdList(java.lang.Integer recordId)
recordId - the record id to be query
public java.util.ArrayList getUpstreamNodeIdList(java.lang.Integer recordId)
recordId - the recordid to be query
public java.lang.String toPresentation()
public java.util.Map getVersionNodeMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||