private void validateMax ( ) { if ( max != null ) { if ( dataType == null ) { throw new GeoPackageException ( "Column max is only supported for data typed columns. column: " + name + ", max: " + max ) ; } else if ( dataType != GeoPackageDataType . TEXT && dataType != GeoPackageDataType . BLOB ) { throw new GeoPackageException ( "Column max is only supported for " + GeoPackageDataType . TEXT . name ( ) + " and " + GeoPackageDataType . BLOB . name ( ) + " columns. column: " + name + ", max: " + max + ", type: " + dataType . name ( ) ) ; } } }
Validate that if max is set the data type is text or blob