protected String getReasonWhyInvalid( final String propertyName, final int value ) { if ( propertyName.equals("PortNumber") ) { //$NON-NLS-1$ return TeiidDataSource.reasonWhyInvalidPortNumber(value); } fail("Unknown property name \"" + propertyName + "\""); //$NON-NLS-1$ //$NON-NLS-2$ return null; }
protected void validateProperties( final String userName, final String password) throws java.sql.SQLException { super.validateProperties(userName, password); String reason = reasonWhyInvalidPortNumber(this.portNumber); if ( reason != null ) { throw createConnectionError(reason); } reason = reasonWhyInvalidServerName(this.serverName); if ( reason != null ) { throw createConnectionError(reason); } }
protected void validateProperties( final String userName, final String password) throws java.sql.SQLException { super.validateProperties(userName, password); String reason = reasonWhyInvalidPortNumber(this.portNumber); if ( reason != null ) { throw createConnectionError(reason); } reason = reasonWhyInvalidServerName(this.serverName); if ( reason != null ) { throw createConnectionError(reason); } }