com.pega.pegarules.pub.database
Class BadTableMappingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pega.pegarules.pub.PRException
              extended by com.pega.pegarules.pub.database.DatabaseException
                  extended by com.pega.pegarules.pub.database.BadTableMappingException
All Implemented Interfaces:
java.io.Serializable

public class BadTableMappingException
extends DatabaseException

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.

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Jamie Gentry
See Also:
Serialized Form

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

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Constructor Detail

BadTableMappingException

public 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.

Parameters:
aCause - the exception that caused this, or null if none
aMsgID - the message ID to use
aMsgInserts - the message inserts, or null if none
aSeverity - 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 unknown
aSQLInserts - the inserts for the SQL we were running when the problem occurred, or null if unknown

BadTableMappingException

public BadTableMappingException(java.lang.String aMsg)
Constructor for BadTableMappingException

Parameters:
aMsg -

BadTableMappingException

public BadTableMappingException(java.lang.Throwable aCause,
                                java.lang.String aMsg)
Deprecated. use one of the other constructors

Constructor for BadTableMappingException

Parameters:
aCause -
aMsg -
Method Detail

createBadColumnTypeException

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)
Deprecated. use the other version of this method

Creates an exception that indicates we have a column of unknown type.

Parameters:
aDBName - database in which the column lives, or null if unknown
aTableName - table in which the column lives, or null if unknown
aColumnName - name of the offending column
aColumnType - type of the offending column
aDescr - what we were doing when the problem occurred
aSQL - the SQL we were running when the problem occurred, or null if it is unknown
aSQLInserts - the inserts for the SQL we were running when the problem occurred, or null if unknown
Returns:
exception

createBadColumnTypeException

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)
Creates an exception that indicates we have a column of unknown type.

Parameters:
aDBName - database in which the column lives, or null if unknown
aCatalogName - the name of the catalog in which the column lives, or null if unknown
aSchemaName - the name of the schema in which the column lives, or null if unknown
aTableName - table in which the column lives, or null if unknown, or null if unknown
aColumnName - name of the offending column, or null if unknown
aColumnType - type of the offending column, or null if unknown
aDBTypeName - the name of the column type, according to the database product, or null if unknown
aDescr - what we were doing when the problem occurred
aSQL - the SQL we were running when the problem occurred, or null if it is unknown
aSQLInserts - the inserts for the SQL we were running when the problem occurred, or null if unknown
Returns:
exception

createKeyPropertyTooBigException

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)
Creates an exception that indicates that a key property does not fit into its column

Parameters:
aDBName - database in which the column lives, or null if unknown
aTableName - table in which the column lives, or null if unknown
aColumnName - name of the offending column
aColumnSize - size of the column
aPropertySize - size of the property
aPropertyVal - value of the property
aInstanceClass - class of instance we are trying to write
aDescr - what we were doing when the problem occurred
aSQL - the SQL we were running when the problem occurred, or null if it is unknown
aSQLInserts - the inserts for the SQL we were running when the problem occurred, or null if unknown
Returns:
exception

createRuleTableMissingColumnException

public 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.

Parameters:
aDBName - database in which the table lives
aTableName - name of the table
aColumnName - missing column
aInstanceClass - class of instance we are trying to write
aDescr - what we were doing when the problem occurred
Returns:
exception


Copyright © 2012 Pegasystems Inc. All Rights Reserved.