public class DatabaseWriter extends Object
Constructor and Description |
---|
DatabaseWriter(String cluster) |
DatabaseWriter(String host,
String user,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
execute(String query) |
static String |
formatTimeStamp(long timestamp) |
Connection |
getConnection() |
ResultSet |
query(String query) |
ResultSet |
query(String query,
List<Object> parameters) |
public DatabaseWriter(String cluster)
public void execute(String query) throws SQLException
SQLException
public Connection getConnection()
public ResultSet query(String query, List<Object> parameters) throws SQLException
SQLException
public ResultSet query(String query) throws SQLException
SQLException
public void close()
public static String formatTimeStamp(long timestamp)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.