public class BadTableMappingException extends DatabaseException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
mLookUpRuleMessages
Constructor and Description |
---|
BadTableMappingException(java.lang.String aMsg)
Constructor for BadTableMappingException
|
BadTableMappingException(java.lang.Throwable aCause,
java.lang.String aMsg)
Deprecated.
use one of the other constructors
|
BadTableMappingException(java.lang.Throwable aCause,
java.lang.String aMsgID,
java.lang.String[] aMsgInserts,
int aSeverity,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Creates a bad table mapping exception.
|
Modifier and Type | Method and Description |
---|---|
static BadTableMappingException |
createBadColumnTypeException(java.lang.String aDBName,
java.lang.String aTableName,
java.lang.String aColumnName,
java.lang.String aColumnType,
java.lang.String aDescr,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Deprecated.
use the other version of this method
|
static BadTableMappingException |
createBadColumnTypeException(java.lang.String aDBName,
java.lang.String aCatalogName,
java.lang.String aSchemaName,
java.lang.String aTableName,
java.lang.String aColumnName,
java.lang.String aColumnType,
java.lang.String aDBTypeName,
java.lang.String aDescr,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Creates an exception that indicates we have a column of
unknown type.
|
static BadTableMappingException |
createClobPropertyTooBigException(java.lang.String aDBName,
java.lang.String aTableName,
java.lang.String aColumnName,
int aColumnSize,
int aPropertySize,
java.lang.String aPropertyVal,
java.lang.String aInstanceClass,
java.lang.String aDescr,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Creates an exception that indicates that a clob property does
not fit into its column
|
static BadTableMappingException |
createKeyPropertyTooBigException(java.lang.String aDBName,
java.lang.String aTableName,
java.lang.String aColumnName,
int aColumnSize,
int aPropertySize,
java.lang.String aPropertyVal,
java.lang.String aInstanceClass,
java.lang.String aDescr,
java.lang.String aSQL,
java.lang.String[] aSQLInserts)
Creates an exception that indicates that a key property does
not fit into its column
|
static BadTableMappingException |
createRuleTableMissingColumnException(java.lang.String aDBName,
java.lang.String aTableName,
java.lang.String aColumnName,
java.lang.String aInstanceClass,
java.lang.String aDescr)
Creates an exception that indicates a Rule table is missing a required
column.
|
getDBName, getIndexesOfFailedBatchOperation, getMessage, getOperation, getSQL, setDBName, setOperation, setSQL, setSQLInserts
isLookUpRuleMessages, setLookUpRuleMessages, toString
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public BadTableMappingException(java.lang.Throwable aCause, java.lang.String aMsgID, java.lang.String[] aMsgInserts, int aSeverity, java.lang.String aSQL, java.lang.String[] aSQLInserts)
aCause
- the exception that caused this, or null if noneaMsgID
- the message ID to useaMsgInserts
- the message inserts, or null if noneaSeverity
- the severity of the problem--must be one of the
constants from ProcessingStatus
aSQL
- the SQL we were running when the problem occurred, or null if it is unknownaSQLInserts
- the inserts for the SQL we were running when the problem occurred, or null if unknownpublic BadTableMappingException(java.lang.String aMsg)
aMsg
- public BadTableMappingException(java.lang.Throwable aCause, java.lang.String aMsg)
aCause
- aMsg
- public static BadTableMappingException createBadColumnTypeException(java.lang.String aDBName, java.lang.String aTableName, java.lang.String aColumnName, java.lang.String aColumnType, java.lang.String aDescr, java.lang.String aSQL, java.lang.String[] aSQLInserts)
aDBName
- database in which the column lives, or null if unknownaTableName
- table in which the column lives, or null if unknownaColumnName
- name of the offending columnaColumnType
- type of the offending columnaDescr
- what we were doing when the problem occurredaSQL
- the SQL we were running when the problem occurred, or null if it is unknownaSQLInserts
- the inserts for the SQL we were running when the problem occurred, or null if unknownpublic static BadTableMappingException createBadColumnTypeException(java.lang.String aDBName, java.lang.String aCatalogName, java.lang.String aSchemaName, java.lang.String aTableName, java.lang.String aColumnName, java.lang.String aColumnType, java.lang.String aDBTypeName, java.lang.String aDescr, java.lang.String aSQL, java.lang.String[] aSQLInserts)
aDBName
- database in which the column lives, or null if unknownaCatalogName
- the name of the catalog in which the column lives, or null if unknownaSchemaName
- the name of the schema in which the column lives, or null if unknownaTableName
- table in which the column lives, or null if unknown, or null if unknownaColumnName
- name of the offending column, or null if unknownaColumnType
- type of the offending column, or null if unknownaDBTypeName
- the name of the column type, according to the
database product, or null if unknownaDescr
- what we were doing when the problem occurredaSQL
- the SQL we were running when the problem occurred, or null if it is unknownaSQLInserts
- the inserts for the SQL we were running when the problem occurred, or null if unknownpublic static BadTableMappingException createKeyPropertyTooBigException(java.lang.String aDBName, java.lang.String aTableName, java.lang.String aColumnName, int aColumnSize, int aPropertySize, java.lang.String aPropertyVal, java.lang.String aInstanceClass, java.lang.String aDescr, java.lang.String aSQL, java.lang.String[] aSQLInserts)
aDBName
- database in which the column lives, or null if unknownaTableName
- table in which the column lives, or null if unknownaColumnName
- name of the offending columnaColumnSize
- size of the columnaPropertySize
- size of the propertyaPropertyVal
- value of the propertyaInstanceClass
- class of instance we are trying to writeaDescr
- what we were doing when the problem occurredaSQL
- the SQL we were running when the problem occurred, or null if it is unknownaSQLInserts
- the inserts for the SQL we were running when the problem occurred, or null if unknownpublic static BadTableMappingException createClobPropertyTooBigException(java.lang.String aDBName, java.lang.String aTableName, java.lang.String aColumnName, int aColumnSize, int aPropertySize, java.lang.String aPropertyVal, java.lang.String aInstanceClass, java.lang.String aDescr, java.lang.String aSQL, java.lang.String[] aSQLInserts)
aDBName
- database in which the column lives, or null if unknownaTableName
- table in which the column lives, or null if unknownaColumnName
- name of the offending columnaColumnSize
- size of the columnaPropertySize
- size of the propertyaPropertyVal
- value of the propertyaInstanceClass
- class of instance we are trying to writeaDescr
- what we were doing when the problem occurredaSQL
- the SQL we were running when the problem occurred, or null if it is unknownaSQLInserts
- the inserts for the SQL we were running when the problem occurred, or null if unknownpublic static BadTableMappingException createRuleTableMissingColumnException(java.lang.String aDBName, java.lang.String aTableName, java.lang.String aColumnName, java.lang.String aInstanceClass, java.lang.String aDescr)
aDBName
- database in which the table livesaTableName
- name of the tableaColumnName
- missing columnaInstanceClass
- class of instance we are trying to writeaDescr
- what we were doing when the problem occurredCopyright © 2018 Pegasystems Inc. All Rights Reserved.