|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.server.util.Canonizer
public class Canonizer
This class provides functions to help test harnesses coerce Strings into various canonical forms.
Field Summary | |
---|---|
static java.lang.String |
CANONIZED
|
static int |
JDBC_TIMESTAMP
|
static int |
ORACLE_DDMONYY
|
Method Summary | |
---|---|
static void |
addClassNameTransform(java.lang.String canonicalClassName,
java.lang.String[][] productClassNames)
|
static void |
addMessageTransform(int id,
java.lang.String canonicalMessage,
java.lang.String[][] productMessages)
adds a message transformation to the list, messages which are not for the SQLBuilder currently in force are ignored so the caller can write: aMT("drop table error", new String[][] { {SQLBuilder.OLITE, "POL-123 dropped table", "drop table error"}, {SQLBuilder.ORACLE, "ORA-456 droop the tibble", "drop table error"} }); |
static void |
addStandardCanonizers()
|
static void |
addTypeNameTransform(java.lang.String canonicalTypeName,
java.lang.String[][] productTypeNames)
|
static java.lang.String |
canonizeExceptionClassName(java.lang.Exception ex)
|
static java.lang.String |
canonizeMessage(java.lang.String productMessage,
boolean doMassage,
boolean appendRest)
this method searches through the list of registered messages, and transforms the message if a match is found. |
static int |
canonizeSqlType(int sqlType)
Converts standard JDBC SQL types to Oracle-compliant types to support Kava tests. |
static java.lang.String |
canonizeString(java.lang.Object data)
An attempt to insulate the Kava test from the format vagaries of different JDBC drivers. |
static java.lang.String |
canonizeWhereClause(java.lang.String where)
|
static int |
getDateFormat()
|
static java.lang.String |
massageExceptionMsg(java.lang.String s)
as the name suggests, removes random irregularities from exception messages - different versions of JDBC drivers have slightly different line terminating strategies...sigh Tnis converts all line separators to \r\n and always returms \r\n at the end of a message TODO: retval should be a StringBuffer for efficiency |
static java.lang.String |
productTypeName(java.lang.String canonTypeName)
|
static void |
removeClassNameTransforms()
|
static void |
removeMessageTransforms()
|
static void |
removeTypeNameTransforms()
|
static void |
setDateFormat(int format)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CANONIZED
public static final int JDBC_TIMESTAMP
public static final int ORACLE_DDMONYY
Method Detail |
---|
public static void setDateFormat(int format)
public static int getDateFormat()
public static void addMessageTransform(int id, java.lang.String canonicalMessage, java.lang.String[][] productMessages)
public static void addClassNameTransform(java.lang.String canonicalClassName, java.lang.String[][] productClassNames)
public static void addTypeNameTransform(java.lang.String canonicalTypeName, java.lang.String[][] productTypeNames)
public static void removeMessageTransforms()
public static void removeClassNameTransforms()
public static void removeTypeNameTransforms()
public static java.lang.String canonizeMessage(java.lang.String productMessage, boolean doMassage, boolean appendRest)
public static java.lang.String productTypeName(java.lang.String canonTypeName)
public static java.lang.String canonizeExceptionClassName(java.lang.Exception ex)
public static java.lang.String canonizeWhereClause(java.lang.String where)
public static java.lang.String canonizeString(java.lang.Object data)
public static int canonizeSqlType(int sqlType)
sqlType
- A SQL type from either java.sql.Types or
oracle.jdbc.OracleTypes
public static java.lang.String massageExceptionMsg(java.lang.String s)
public static void addStandardCanonizers()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.1.0) E10653-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |