|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_5.impl.ChangeWriter
public class ChangeWriter
Writes changes to a database.
Constructor Summary | |
---|---|
ChangeWriter(DatabaseLoginCredentials loginCredentials)
Creates a new instance. |
Method Summary | |
---|---|
void |
complete()
Flushes all changes to the database. |
void |
release()
Releases all database resources. |
void |
write(Node node,
ChangeAction action)
Writes the specified node change to the database. |
void |
write(Relation relation,
ChangeAction action)
Writes the specified relation change to the database. |
void |
write(Way way,
ChangeAction action)
Writes the specified way change to the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeWriter(DatabaseLoginCredentials loginCredentials)
loginCredentials
- Contains all information required to connect to the database.Method Detail |
---|
public void write(Node node, ChangeAction action)
node
- The node to be written.action
- The change to be applied.public void write(Way way, ChangeAction action)
way
- The way to be written.action
- The change to be applied.public void write(Relation relation, ChangeAction action)
relation
- The relation to be written.action
- The change to be applied.public void complete()
public void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |