Package org.quartz.impl.jdbcjobstore
Class Util
- java.lang.Object
-
- org.quartz.impl.jdbcjobstore.Util
-
public final class Util extends java.lang.ObjectThis class contains utility functions for use in all delegate classes.
- Author:
- Jeffrey Wescott
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseResultSet(java.sql.ResultSet rs)Cleanup helper method that closes the givenResultSetwhile ignoring any errors.static voidcloseStatement(java.sql.Statement statement)Cleanup helper method that closes the givenStatementwhile ignoring any errors.static java.lang.Stringrtp(java.lang.String query, java.lang.String tablePrefix, java.lang.String schedNameLiteral)Replace the table prefix in a query by replacing any occurrences of "{0}" with the table prefix.static voidsetBeanProps(java.lang.Object obj, java.lang.String[] propNames, java.lang.Object[] propValues)
-
-
-
Method Detail
-
rtp
public static java.lang.String rtp(java.lang.String query, java.lang.String tablePrefix, java.lang.String schedNameLiteral)Replace the table prefix in a query by replacing any occurrences of "{0}" with the table prefix.
- Parameters:
query- the unsubstituted querytablePrefix- the table prefix- Returns:
- the query, with proper table prefix substituted
-
closeResultSet
public static void closeResultSet(java.sql.ResultSet rs)
Cleanup helper method that closes the givenResultSetwhile ignoring any errors.
-
closeStatement
public static void closeStatement(java.sql.Statement statement)
Cleanup helper method that closes the givenStatementwhile ignoring any errors.
-
setBeanProps
public static void setBeanProps(java.lang.Object obj, java.lang.String[] propNames, java.lang.Object[] propValues) throws JobPersistenceException- Throws:
JobPersistenceException
-
-