Package com.avoka.core.sql
Class SqlUtils
java.lang.Object
com.avoka.core.sql.SqlUtils
Provides SQL utility functions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(Connection connection) Close a connection.static voidClose a result set.static voidClose a statement.static StringgetValueAsString(ResultSet rs, String column) Get a column data as String type.
-
Constructor Details
-
SqlUtils
public SqlUtils()
-
-
Method Details
-
close
Close a connection.- Parameters:
connection- a connection to be closed
-
close
Close a result set.- Parameters:
rs- result set to be closed
-
close
Close a statement.- Parameters:
statement- a statement to be closed
-
getValueAsString
Get a column data as String type.- Parameters:
rs- result set that contains the datacolumn- column name to get- Returns:
- the string representation of the column data
-