public class StorageNodeVersionColumnUpgrader extends Object
| Constructor and Description |
|---|
StorageNodeVersionColumnUpgrader() |
| Modifier and Type | Method and Description |
|---|---|
int |
setVersionForAllNodes(Connection connection,
String version) |
int |
setVersionForNodeWithAddress(Connection connection,
String version,
String address) |
boolean |
upgrade(Connection connection,
String version) |
public boolean upgrade(Connection connection, String version) throws Exception
connection - a connection to the DB (won't be closed by this method)version - the version to set for all rowsExceptionpublic int setVersionForNodeWithAddress(Connection connection, String version, String address) throws SQLException
connection - a connection to the DB (won't be closed by this method)version - the version to set for node with the specified addressaddress - storage node addressSQLExceptionpublic int setVersionForAllNodes(Connection connection, String version) throws SQLException
connection - a connection to the DB (won't be closed by this method)version - the version to set for all nodesSQLExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.