站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

StringHelper (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.util
Class StringHelper

java.lang.Object
  extended bynet.sf.hibernate.util.StringHelper

public final class StringHelper
extends Object


Field Summary
static String CLOSE_PAREN
           
static String COMMA
           
static String COMMA_SPACE
           
static char DOT
           
static String EMPTY_STRING
           
static String OPEN_PAREN
           
static char SINGLE_QUOTE
           
static char UNDERSCORE
           
 
Method Summary
static String[] add(String[] x, String sep, String[] y)
           
static boolean booleanValue(String tfString)
           
static int count(String string, char character)
           
static int countUnquoted(String string, char character)
           
static int firstIndexOfChar(String sqlString, String string, int startindex)
           
static boolean isNotEmpty(String string)
           
static String join(String seperator, Iterator objects)
           
static String join(String seperator, String[] strings)
           
static String[] multiply(String string, Iterator placeholders, Iterator replacements)
           
static String[] prefix(String[] columns, String prefix)
           
static String qualifier(String qualifiedName)
           
static String qualify(String prefix, String name)
           
static String[] qualify(String prefix, String[] names)
           
static String repeat(String string, int times)
           
static String replace(String template, String placeholder, String replacement)
           
static String replace(String template, String placeholder, String replacement, boolean wholeWords)
           
static String replaceOnce(String template, String placeholder, String replacement)
           
static String root(String qualifiedName)
           
static String[] split(String seperators, String list)
           
static String[] split(String seperators, String list, boolean include)
           
static String[] suffix(String[] columns, String suffix)
           
static String suffix(String name, String suffix)
           
static String toLowerCase(String str)
           
static String toString(Object[] array)
           
static String toUpperCase(String str)
           
static String truncate(String string, int length)
           
static String unqualify(String qualifiedName)
           
static String unqualify(String qualifiedName, String seperator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING

public static final String EMPTY_STRING
See Also:
Constant Field Values

DOT

public static final char DOT
See Also:
Constant Field Values

UNDERSCORE

public static final char UNDERSCORE
See Also:
Constant Field Values

COMMA_SPACE

public static final String COMMA_SPACE
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

OPEN_PAREN

public static final String OPEN_PAREN
See Also:
Constant Field Values

CLOSE_PAREN

public static final String CLOSE_PAREN
See Also:
Constant Field Values

SINGLE_QUOTE

public static final char SINGLE_QUOTE
See Also:
Constant Field Values
Method Detail

join

public static String join(String seperator,
                          String[] strings)

join

public static String join(String seperator,
                          Iterator objects)

add

public static String[] add(String[] x,
                           String sep,
                           String[] y)

repeat

public static String repeat(String string,
                            int times)

replace

public static String replace(String template,
                             String placeholder,
                             String replacement)

replace

public static String replace(String template,
                             String placeholder,
                             String replacement,
                             boolean wholeWords)

replaceOnce

public static String replaceOnce(String template,
                                 String placeholder,
                                 String replacement)

split

public static String[] split(String seperators,
                             String list)

split

public static String[] split(String seperators,
                             String list,
                             boolean include)

unqualify

public static String unqualify(String qualifiedName)

unqualify

public static String unqualify(String qualifiedName,
                               String seperator)

qualifier

public static String qualifier(String qualifiedName)

suffix

public static String[] suffix(String[] columns,
                              String suffix)

suffix

public static String suffix(String name,
                            String suffix)

prefix

public static String[] prefix(String[] columns,
                              String prefix)

root

public static String root(String qualifiedName)

booleanValue

public static boolean booleanValue(String tfString)

toString

public static String toString(Object[] array)

multiply

public static String[] multiply(String string,
                                Iterator placeholders,
                                Iterator replacements)

count

public static int count(String string,
                        char character)

countUnquoted

public static int countUnquoted(String string,
                                char character)

isNotEmpty

public static boolean isNotEmpty(String string)

qualify

public static String qualify(String prefix,
                             String name)

qualify

public static String[] qualify(String prefix,
                               String[] names)

firstIndexOfChar

public static int firstIndexOfChar(String sqlString,
                                   String string,
                                   int startindex)

truncate

public static String truncate(String string,
                              int length)

toUpperCase

public static String toUpperCase(String str)

toLowerCase

public static String toLowerCase(String str)