public java.lang.Boolean isColAttrChanged(java.lang.String pPropertyName)
This method is usable in a column action for altering a column attribute or comment. It returns a boolean indicating if the column attribute passed as a parameter has changed.
Parameter |
Type |
Description |
---|---|---|
pPropertyName |
String |
Attribute code (see below). |
The following table lists the different possible values for pPropertyName
Parameter value |
Description |
---|---|
DATATYPE |
Column datatype, length or precision change, |
LENGTH |
Column length change (for example, VARCHAR(10) changes to VARCHAR(12)). |
PRECISION |
Column precision change (for example, DECIMAL(10,3) changes to DECIMAL(10,4)). |
COMMENT |
Column comment change. |
NULL_TO_NOTNULL |
Column nullable attribute change from NULL to NOT NULL. |
NOTNULL_TO_NULL |
Column nullable attribute change from NOT NULL to NULL. |
NULL |
Column nullable attribute change. |
DEFAULT |
Column default value change. |
<% if (odiRef.IsColAttrChanged("DEFAULT") ) { %>
/* Column default attribute has changed. */
<% } %>