Package org.openbravo.scheduling.quartz
Class OpenbravoJDBCPersistenceSupport
- java.lang.Object
-
- org.openbravo.scheduling.quartz.OpenbravoJDBCPersistenceSupport
-
public class OpenbravoJDBCPersistenceSupport extends Object
Provides utility methods related with the JDBC persistence
-
-
Field Summary
Fields Modifier and Type Field Description static String
FALSE_STRING
static String
TRUE_STRING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getBooleanValue(ResultSet rs, int columnIndex)
Given a ResultSet and a column index, returns a boolean after replacing the string contained in the ResultSet by its boolean representationstatic boolean
getBooleanValue(ResultSet rs, String columnName)
Given a ResultSet and a columnName, returns a boolean after replacing the string contained in the ResultSet by its boolean representationstatic void
setBooleanValue(PreparedStatement ps, int index, boolean val)
Sets the designated parameter to the given JavaString
value, after replacing a boolean with its String representation
-
-
-
Field Detail
-
TRUE_STRING
public static final String TRUE_STRING
- See Also:
- Constant Field Values
-
FALSE_STRING
public static final String FALSE_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBooleanValue
public static void setBooleanValue(PreparedStatement ps, int index, boolean val) throws SQLException
Sets the designated parameter to the given JavaString
value, after replacing a boolean with its String representation- Throws:
SQLException
-
getBooleanValue
public static boolean getBooleanValue(ResultSet rs, String columnName) throws SQLException
Given a ResultSet and a columnName, returns a boolean after replacing the string contained in the ResultSet by its boolean representation- Throws:
SQLException
-
getBooleanValue
public static boolean getBooleanValue(ResultSet rs, int columnIndex) throws SQLException
Given a ResultSet and a column index, returns a boolean after replacing the string contained in the ResultSet by its boolean representation- Throws:
SQLException
-
-