Package net.sourceforge.squirrel_sql.fw.persist

Examples of net.sourceforge.squirrel_sql.fw.persist.ValidationException


    throws ValidationException
  {
    String data = getString(value);
    if (data.length() == 0)
    {
      throw new ValidationException(s_stringMgr.getString("AliasGroup.error.blankname"));
    }
    if (!_name.equals(data))
    {
      final String oldValue = _name;
      _name = data;
View Full Code Here


    throws ValidationException
  {
    String data = getString(driverClassName);
    if (data.length() == 0)
    {
      throw new ValidationException(IStrings.ERR_BLANK_DRIVER);
    }
        if (!data.equals(_driverClassName))
    {
      final String oldValue = _driverClassName;
      _driverClassName = data;
View Full Code Here

  public void setUrl(String url) throws ValidationException
  {
    String data = getString(url);
    if (data.length() == 0)
    {
      throw new ValidationException(IStrings.ERR_BLANK_URL);
    }
    if (!data.equals(_url))
    {
      final String oldValue = _url;
      _url = data;
View Full Code Here

  public void setName(String name) throws ValidationException
  {
    String data = getString(name);
    if (data.length() == 0)
    {
      throw new ValidationException(IStrings.ERR_BLANK_NAME);
    }
        if (!data.equals(_name))
    {
      final String oldValue = _name;
      _name = data;
View Full Code Here

   public void setName(String name) throws ValidationException
   {
      String data = getString(name);
      if (data.length() == 0)
      {
         throw new ValidationException(IStrings.ERR_BLANK_NAME);
      }
      if (_name != data)
      {
         final String oldValue = _name;
         _name = data;
View Full Code Here

   public void setDriverIdentifier(IIdentifier data)
      throws ValidationException
   {
      if (data == null)
      {
         throw new ValidationException(IStrings.ERR_BLANK_DRIVER);
      }
      if (_driverId != data)
      {
         final IIdentifier oldValue = _driverId;
         _driverId = data;
View Full Code Here

   public void setUrl(String url) throws ValidationException
   {
      String data = getString(url);
      if (data.length() == 0)
      {
         throw new ValidationException(IStrings.ERR_BLANK_URL);
      }
      if (_url != data)
      {
         final String oldValue = _url;
         _url = data;
View Full Code Here

  private void applyFromDialog(ISQLAlias alias) throws ValidationException
  {
    ISQLDriver driver = _drivers.getSelectedDriver();
    if (driver == null)
    {
      throw new ValidationException(s_stringMgr.getString("AliasInternalFrame.error.nodriver"));
    }
    alias.setName(_aliasName.getText().trim());
    alias.setDriverIdentifier(_drivers.getSelectedDriver().getIdentifier());
    alias.setUrl(_url.getText().trim());
    alias.setUserName(_userName.getText().trim());
View Full Code Here

  public void setName(String name)
      throws ValidationException {
    String data = getString(name);
    if (data.length() == 0) {
      throw new ValidationException(i18n.ERR_BLANK_NAME);
    }
    if (_name != data) {
      final String oldValue = _name;
      _name = data;
      getPropertyChangeNotifier().firePropertyChange(IPropertyNames.NAME, oldValue, _name);
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.persist.ValidationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.