void enforceRowConstraints(Session session, Object[] data) {

        for (int i = 0; i < defaultColumnMap.length; i++) {
            Type type = colTypes[i];

            data[i] = type.convertToTypeLimits(session, data[i]);

            if (type.isDomainType()) {
                Constraint[] constraints =
                    type.userTypeModifier.getConstraints();

                for (int j = 0; j < constraints.length; j++) {
                    constraints[j].checkCheckConstraint(session, this,
                                                        data[i]);
                }
            }

            if (data[i] == null) {
                if (colNotNull[i]) {
                    Constraint c = getNotNullConstraintForColumn(i);

                    if (c == null) {
                        if (getColumn(i).isPrimaryKey()) {
                            c = this.getPrimaryConstraint();
                        }
                    }

                    String[] info = new String[] {
                        c.getName().name, tableName.name
                    };

                    throw Error.error(ErrorCode.X_23503, ErrorCode.CONSTRAINT,
                                      info);
                }
            }
        }
    }
void enforceRowConstraints ( Session session , Object [ ] data ) { for ( int i = 0 ; i < defaultColumnMap . length ; i ++ ) { Type type = colTypes [ i ] ; data [ i ] = type . convertToTypeLimits ( session , data [ i ] ) ; if ( type . isDomainType ( ) ) { Constraint [ ] constraints = type . userTypeModifier . getConstraints ( ) ; for ( int j = 0 ; j < constraints . length ; j ++ ) { constraints [ j ] . checkCheckConstraint ( session , this , data [ i ] ) ; } } if ( data [ i ] == null ) { if ( colNotNull [ i ] ) { Constraint c = getNotNullConstraintForColumn ( i ) ; if ( c == null ) { if ( getColumn ( i ) . isPrimaryKey ( ) ) { c = this . getPrimaryConstraint ( ) ; } } String [ ] info = new String [ ] { c . getName ( ) . name , tableName . name } ; throw Error . error ( ErrorCode . X_23503 , ErrorCode . CONSTRAINT , info ) ; } } } }
Enforce max field sizes according to SQL column definition.
SQL92 13.8