|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.onebusaway.gtfs_transformer.factory.EntityRetentionGraph
public class EntityRetentionGraph
We have the concept of retaining up and retaining down. Retain up: retain things that depend on the target object Retain down: retain things that the target object depends on Usually, we start by retaining some object, which starts as series of "retain up" operations to grab everything that depends on that object. As each object is retained up, it typically at this point also starts a subsequent chain of retain down operations, so that the dependencies of that object are retained as well.
| Constructor Summary | |
|---|---|
EntityRetentionGraph(GtfsRelationalDao dao)
|
|
| Method Summary | |
|---|---|
int |
getSize()
|
boolean |
isRetained(Object object)
|
void |
retain(Object object,
boolean retainUp)
Retain up: retain things that depend on the target object For example, if you retain up on a Route, we would also retain up
on the Trip objects depending on this route
Retain down: retain things that the target object depends on
For example, if you retain down on a Route, we would also retain
down on the route's Agency. |
void |
retainDown(Object object)
Retain down: retain things that the target object depends on For example, if you retain down on a Route, we would also retain
down on the route's Agency. |
void |
retainUp(Object object)
Retain up: retain things that depend on the target object For example, if you retain up on a Route, we would also retain up
on the Trip objects depending on this route |
void |
setRetainAllStopTimesForTrip(boolean retainAllStopTimesForTrip)
|
void |
setRetainBlocks(boolean retainBlocks)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityRetentionGraph(GtfsRelationalDao dao)
| Method Detail |
|---|
public void setRetainBlocks(boolean retainBlocks)
public void setRetainAllStopTimesForTrip(boolean retainAllStopTimesForTrip)
public void retainUp(Object object)
Route, we would also retain up
on the Trip objects depending on this route
object - public void retainDown(Object object)
Route, we would also retain
down on the route's Agency.
object -
public void retain(Object object,
boolean retainUp)
Route, we would also retain up
on the Trip objects depending on this route
Retain down: retain things that the target object depends on
For example, if you retain down on a Route, we would also retain
down on the route's Agency.
object - public boolean isRetained(Object object)
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||