Class CSColumnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.mcpdbwizard.pub.CSException
com.mcpdbwizard.pub.CSColumnException
- All Implemented Interfaces:
Serializable
Thrown by the rowValidate method when a non-null column is null or a
number column's contents don't match the size of the corresponding database column.
Copyright 2003-2026 ATB Consultancy Services Ltd (formerly Orinda Software Ltd, Dublin, Ireland)
- Since:
- 4.0.1709
- Version:
- 7
- Author:
- [email protected]
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether null is allowedstatic final intConstant to indicate String is to long or a number has too many digits to the left of the decimal point.Column namestatic final intConstant to indicate column is a number that has too many digits to the left of the decimal point.intHow many digits a number has to the right of the decimal point.intWhat kind of CSColumnException this is - one of NULL_NOT_ALLOWED_HERE, COLUMN_LENGTH_EXCEEDED or DECIMAL_PLACES_EXCEEDEDintHow long a String is or how many digits a number has to the left of the decimal point.static final intConstant to indicate column should not be null or a zero length string.Table nameAn optional commentThe value in question -
Constructor Summary
ConstructorsConstructorDescriptionCSColumnException(String tableName, String columnName, int exceptionType, Object theValue, boolean allowsNulls, int length, int decimalPlaces, String theApplicationComment) Contructor with parameters -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
NULL_NOT_ALLOWED_HERE
public static final int NULL_NOT_ALLOWED_HEREConstant to indicate column should not be null or a zero length string.- See Also:
-
COLUMN_LENGTH_EXCEEDED
public static final int COLUMN_LENGTH_EXCEEDEDConstant to indicate String is to long or a number has too many digits to the left of the decimal point.- See Also:
-
DECIMAL_PLACES_EXCEEDED
public static final int DECIMAL_PLACES_EXCEEDEDConstant to indicate column is a number that has too many digits to the left of the decimal point.- See Also:
-
tableName
Table name -
columnName
Column name -
exceptionType
public int exceptionTypeWhat kind of CSColumnException this is - one of NULL_NOT_ALLOWED_HERE, COLUMN_LENGTH_EXCEEDED or DECIMAL_PLACES_EXCEEDED -
theValue
The value in question -
allowsNulls
public boolean allowsNullsWhether null is allowed -
length
public int lengthHow long a String is or how many digits a number has to the left of the decimal point. -
decimalPlaces
public int decimalPlacesHow many digits a number has to the right of the decimal point. Note that in Oracle this can be a negative number. For example: NUMBER(4,0) is 4 digits, no decimal places e.g. 2004 NUMBER(6,2) is 4 digits, a decimal point and then 2 digits e.g. 7665.43 NUMBER(7,-3) is 4 digits and then 3 zeros e.g. 9,456,000 -
theApplicationComment
An optional comment
-
-
Constructor Details
-
CSColumnException
public CSColumnException(String tableName, String columnName, int exceptionType, Object theValue, boolean allowsNulls, int length, int decimalPlaces, String theApplicationComment) Contructor with parameters- Parameters:
tableName-columnName-exceptionType-theValue-allowsNulls-length-decimalPlaces-theApplicationComment-
-
-
Method Details
-
toString
-