Package com.avoka.core.sql
Class SqlUtils
java.lang.Object
com.avoka.core.sql.SqlUtils
Provides SQL utility functions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(Connection connection) Close a connection.static void
Close a result set.static void
Close a statement.static String
getValueAsString
(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
-