|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.i18n.util.OraSQLUtil
OraSQLUtil
is a Oracle SQL Utility class.
The following functionality is available in this class:
Method Summary | |
static String |
escapeUNISTR(String str, String dbCharset) escapes the string into UNISTR form if the character is not supported by the database character set |
static boolean |
isValidIdentifier(String srcstr, String dbCharset) checks if the string is valid in the database character set |
static boolean |
synchronizeLocale(Locale locale, Connection con) Synchronizes the session NLS parameters with the locale. |
static boolean |
synchronizeLocale(String oralanguage, String oraterritory, Connection con) Synchronizes the database session NLS parameters with Oracle language and territory names. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean isValidIdentifier(String srcstr, String dbCharset) throws UnsupportedEncodingException
srcstr
- a string to be examined.dbCharset
- Oracle database character set nameUnsupportedEncodingException
- if dbCharset
is invalidpublic static String escapeUNISTR(String str, String dbCharset) throws UnsupportedEncodingException
str
- a string to be examined.dbCharset
- Oracle database character set nameUnsupportedEncodingException
- if dbCharset
is invalidpublic static boolean synchronizeLocale(Locale locale, Connection con) throws SQLException
This executes ALTER SESSION
SQL commands to set NLS session parameters to synchronize the locale and attributes in this object. The following session parameters will be updated:
locale
- Java locale objectcon
- Database connectionSQLException
- if SQL exception occurspublic static boolean synchronizeLocale(String oralanguage, String oraterritory, Connection con) throws SQLException
This executes ALTER SESSION
SQL commands to set NLS session parameters to synchronize the locale and attributes in this object. The following session parameters will be updated:
oralanguage
- Oracle language nameoraterritory
- Oracle territory namecon
- Database connectionSQLException
- if SQL exception occurs
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |