jhomenet.persistence.util
Class Util

java.lang.Object
  extended by jhomenet.persistence.util.Util

public final class Util
extends java.lang.Object

Collection of simple utility methods.

Author:
Nick Heudecker

Field Summary
static java.lang.String RESOURCE_BUNDLE
          Name of resource bundle file.
static java.lang.String RESOURCE_DIR
          The location of the resource bundle.
 
Method Summary
static java.lang.String getQuery(java.lang.String key)
          Returns an HQL query from the resource bundle.
static java.util.Date parseDate(java.lang.String dateString)
          Utility method to create a Date class from dateString.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_DIR

public static final java.lang.String RESOURCE_DIR
The location of the resource bundle.

See Also:
Constant Field Values

RESOURCE_BUNDLE

public static final java.lang.String RESOURCE_BUNDLE
Name of resource bundle file.

See Also:
Constant Field Values
Method Detail

getQuery

public static java.lang.String getQuery(java.lang.String key)
Returns an HQL query from the resource bundle.

Parameters:
key - the resource key
Returns:
String

parseDate

public static java.util.Date parseDate(java.lang.String dateString)
Utility method to create a Date class from dateString.

Parameters:
dateString -
Returns:
Date
Throws:
java.lang.RuntimeException - is dateString is invalid


Copyright © 2004-2005 David Irwin. All Rights Reserved.