public final class Util extends Object
This class contains utility functions for use in all delegate classes.
Modifier and Type | Method and Description |
---|---|
static void |
closeResultSet(ResultSet rs)
Cleanup helper method that closes the given
ResultSet
while ignoring any errors. |
static void |
closeStatement(Statement statement)
Cleanup helper method that closes the given
Statement
while ignoring any errors. |
static String |
rtp(String query,
String tablePrefix,
String schedNameLiteral)
Replace the table prefix in a query by replacing any occurrences of
"{0}" with the table prefix.
|
static void |
setBeanProps(Object obj,
String[] propNames,
Object[] propValues) |
public static String rtp(String query, String tablePrefix, String schedNameLiteral)
Replace the table prefix in a query by replacing any occurrences of "{0}" with the table prefix.
query
- the unsubstitued querytablePrefix
- the table prefixpublic static void closeResultSet(ResultSet rs)
ResultSet
while ignoring any errors.public static void closeStatement(Statement statement)
Statement
while ignoring any errors.public static void setBeanProps(Object obj, String[] propNames, Object[] propValues) throws JobPersistenceException
JobPersistenceException
Copyright 2001-2019, Terracotta, Inc.