Code example for Connection

Methods: createStatement

0
	public void clean() { 
		Connection connection = null;
		try { 
			connection = getConnection();
 
			Statement statement = connection.createStatement();
			statement.executeUpdate("truncate keyvalues");
			statement.close();
 
		} catch (SQLException e) {
			throw new OperationException(e);
		} finally { 
			if (connection != null) {
				releaseConnection(connection);
			} 
 
		} 
 
	} 
 
	@Override