|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.mysql.v0_5.impl.EntityHistory<T>
T - The type of entity that this class stores history for.public class EntityHistory<T extends Storeable>
A data class representing a history record.
| Constructor Summary | |
|---|---|
EntityHistory(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
|
EntityHistory(T entity,
int version,
boolean visible)
Creates a new instance. |
|
| Method Summary | |
|---|---|
T |
getEntity()
Gets the contained entity. |
int |
getVersion()
Gets the version. |
boolean |
isVisible()
Gets the visible flag. |
void |
store(StoreWriter sw,
StoreClassRegister scr)
Stores all state to the specified store writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityHistory(T entity,
int version,
boolean visible)
entity - The contained entity.version - The version of the history element.visible - The visible field.
public EntityHistory(StoreReader sr,
StoreClassRegister scr)
sr - The store to read state from.scr - Maintains the mapping between classes and their identifiers
within the store.| Method Detail |
|---|
public void store(StoreWriter sw,
StoreClassRegister scr)
store in interface Storeablesw - The writer that persists data to an underlying store.scr - Maintains the mapping between classes and their identifiers
within the store.public T getEntity()
public int getVersion()
public boolean isVisible()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||