public class KiWiVersioningPersistence extends Object
Constructor and Description |
---|
KiWiVersioningPersistence(KiWiPersistence persistence) |
Modifier and Type | Method and Description |
---|---|
void |
dropDatabase()
Drop the versioning tables; this method must be called before the dropDatabase method of the underlying
KiWiPersistence is called.
|
KiWiVersioningConnection |
getConnection()
Return a connection from the connection pool which already has the auto-commit disabled.
|
KiWiDialect |
getDialect() |
void |
initDatabase()
Initialise the database, creating or upgrading tables if they do not exist or are of the wrong version.
|
public KiWiVersioningPersistence(KiWiPersistence persistence)
public void initDatabase() throws SQLException
SQLException
public void dropDatabase() throws SQLException
SQLException
public KiWiVersioningConnection getConnection() throws SQLException
SQLException
- in case a new connection could not be establishedpublic KiWiDialect getDialect()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.