com.arsdigita.persistence.metadata
Class Utilities

java.lang.Object
  extended bycom.arsdigita.persistence.metadata.Utilities

public class Utilities
extends Object

General static utility methods for the metadata classes. These methods are not intended to be used outside of the metadata package.

Since:
2001-04-02
Version:
1.0
Author:
Randy Graebner

Field Summary
static String LINE_BREAK
           
static String versionId
           
 
Method Summary
static StringBuffer getSB(StringBuffer sb)
          This takes a string buffer and returns the same thing that was passed in if the value is not null or creates a StringBuffer to return if the value is null.
static boolean isJDBCType(int type)
          This function returns true if the value type maps to a valid JDBC Type.
static String join(List elements, String sep)
          Deprecated. use StringUtils
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

LINE_BREAK

public static final String LINE_BREAK
Method Detail

getSB

public static final StringBuffer getSB(StringBuffer sb)
This takes a string buffer and returns the same thing that was passed in if the value is not null or creates a StringBuffer to return if the value is null.

Parameters:
sb - The StringBuffer to examine
Returns:
A non-null StringBuffer

isJDBCType

public static boolean isJDBCType(int type)
This function returns true if the value type maps to a valid JDBC Type. Mainly intended for use in precondition statements.

Parameters:
type - The value to check
Returns:
true if type is one of the constants in java.sql.Types

join

public static String join(List elements,
                          String sep)
Deprecated. use StringUtils

"join" a List of Strings into a single string, with each string separated by a defined separator string.

Parameters:
elements - the strings to join together
sep - the separator string
Returns:
the strings joined together


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC