public void validate() { notNegative(this, "database", getDatabase()); }
@Override protected void validate() { super.validate(); notEmpty(this, "username", getUsername()); notEmpty(this, "password", getPassword()); notEmpty(this, "url", getUrl()); notEmpty(this, "driver", getDriver()); notNegative(this, "min-size", getMinSize()); greaterThanZero(this, "max-size", getMaxSize()); notNegativeOptional(this, "login-timeout", getLoginTimeout()); if (options != null) { options.validate(); } }
@Override protected void validate() { super.validate(); notEmpty(this, "username", getUsername()); notEmpty(this, "password", getPassword()); notEmpty(this, "url", getUrl()); notEmpty(this, "driver", getDriver()); notNegative(this, "min-size", getMinSize()); greaterThanZero(this, "max-size", getMaxSize()); notNegativeOptional(this, "login-timeout", getLoginTimeout()); if (options != null) { options.validate(); } }
public void validate() { notNegative(this, "database", getDatabase()); }