Package com.logicaldoc.util.sql
Class SqlUtil
java.lang.Object
com.logicaldoc.util.sql.SqlUtil
This class contains methods about SQL handling
- Version:
- 4.5
- Author:
- Marco Meschieri - LogicalDOC
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringdoubleBackslashes(String input) Double the backslashes in a string.static StringdoubleQuotes(String input) Double the quotes in a string.static StringdoubleQuotesAndBackslashes(String input) static DategetColumnDateValue(ResultSet resultSet, int column) Retrieves the date stored in a given column
- 
Method Details- 
doubleQuotesDouble the quotes in a string. This means that each character ' will be replaced with '' (two quote characters)- Parameters:
- input- The incoming string
- Returns:
- A string with doubled quotes
 
- 
doubleBackslashesDouble the backslashes in a string. This means that each character \ will be replaced with \\- Parameters:
- input- The incoming string
- Returns:
- A string with doubled backslashes
 
- 
doubleQuotesAndBackslashes
- 
getColumnDateValueRetrieves the date stored in a given column- Parameters:
- resultSet- The result set to use
- column- The column index
- Returns:
- The date value
- Throws:
- SQLException- Error in the database
 
 
-