|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.pega.pegarules.pub.PRException
com.pega.pegarules.pub.database.DatabaseException
com.pega.pegarules.pub.database.BadTableMappingException
public class BadTableMappingException
Indicates that there is a problem mapping from a class instance to a table. This could be because the database does not have the right columns, or it has column types that we do not support.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class com.pega.pegarules.pub.database.DatabaseException |
---|
getSQL, setSQL, setSQLInserts |
Methods inherited from class com.pega.pegarules.pub.PRException |
---|
toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
Constructor Detail |
---|
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
- Method Detail |
---|
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 unknown
public 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 unknown
public 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 unknown
public 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 occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |