|
|||||||||
| 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.MysqlWriter
public class MysqlWriter
An OSM data sink for storing all data to a database. This task is intended for writing to an empty database.
| Constructor Summary | |
|---|---|
MysqlWriter(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences,
boolean lockTables,
boolean populateCurrentTables)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
complete()
Writes any buffered data to the database and commits. |
void |
process(BoundContainer boundContainer)
Process the bound. |
void |
process(EntityContainer entityContainer)
Process the entity. |
void |
process(NodeContainer nodeContainer)
Process the node. |
void |
process(RelationContainer relationContainer)
Process the relation. |
void |
process(WayContainer wayContainer)
Process the way. |
void |
release()
Releases all database resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MysqlWriter(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences,
boolean lockTables,
boolean populateCurrentTables)
loginCredentials - Contains all information required to connect to the database.preferences - Contains preferences configuring database behaviour.lockTables - If true, all tables will be locked during loading.populateCurrentTables - If true, the current tables will be populated as well as
history tables.| Method Detail |
|---|
public void complete()
complete in interface Completablepublic void release()
release in interface Releasablepublic void process(EntityContainer entityContainer)
process in interface SinkentityContainer - The entity to be processed.public void process(BoundContainer boundContainer)
process in interface EntityProcessorboundContainer - The bound to be processed.public void process(NodeContainer nodeContainer)
process in interface EntityProcessornodeContainer - The node to be processed.public void process(WayContainer wayContainer)
process in interface EntityProcessorwayContainer - The way to be processed.public void process(RelationContainer relationContainer)
process in interface EntityProcessorrelationContainer - The relation to be processed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||