public class ServerVersionColumnUpgrader extends Object
| Constructor and Description |
|---|
ServerVersionColumnUpgrader() |
| Modifier and Type | Method and Description |
|---|---|
int |
setVersionForAllServers(Connection connection,
String version) |
int |
setVersionForServerWithName(Connection connection,
String version,
String name) |
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 setVersionForServerWithName(Connection connection, String version, String name) throws SQLException
connection - a connection to the DB (won't be closed by this method)version - the version to set for server with the specified namename - server nameSQLExceptionpublic int setVersionForAllServers(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 serversSQLExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.