@Test public void testClone() { OracleConfiguration cfg = createThinConfiguration(); OracleConfiguration clone = cfg.clone(); assertNotSame(cfg, clone); assertEquals(cfg.getUser(), cfg.getUser()); }
protected OracleConfiguration clone() { try { return (OracleConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new ConnectorException("Clone of OracleConfiguration super class failed", e); } }
OracleConfiguration extends AbstractConfiguration implements Cloneable { protected OracleConfiguration clone() { try { return (OracleConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new ConnectorException("Clone of OracleConfiguration super class failed", e); } } }
OracleConfiguration extends AbstractConfiguration implements Cloneable { protected OracleConfiguration clone() { try { return (OracleConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new ConnectorException("Clone of OracleConfiguration super class failed", e); } } OracleConfiguration(); }
OracleConfiguration extends AbstractConfiguration implements Cloneable { protected OracleConfiguration clone() { try { return (OracleConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new ConnectorException("Clone of OracleConfiguration super class failed", e); } } OracleConfiguration(); @ConfigurationProperty(order = 0, displayMessageKey = MSG_DATASOURCE_DISPLAY, helpMessageKey = MSG_DATASOURCE_HELP) String getDataSource(); @ConfigurationProperty(order = 1, displayMessageKey = MSG_DSJNDIENV_DISPLAY, helpMessageKey = MSG_DSJNDIENV_HELP) String[] getDsJNDIEnv(); @ConfigurationProperty(order = 2, displayMessageKey = MSG_URL_DISPLAY, helpMessageKey = MSG_URL_HELP) String getUrl(); @ConfigurationProperty(order = 3, displayMessageKey = MSG_DRIVER_DISPLAY, helpMessageKey = MSG_DRIVER_HELP) String getDriver(); @ConfigurationProperty(order = 4, displayMessageKey = MSG_HOST_DISPLAY, helpMessageKey = MSG_HOST_HELP) String getHost(); @ConfigurationProperty(order = 5, displayMessageKey = MSG_PORT_DISPLAY, helpMessageKey = MSG_PORT_HELP) String getPort(); @ConfigurationProperty(order = 6, displayMessageKey = MSG_DATABASE_DISPLAY, helpMessageKey = MSG_DATABASE_HELP) String getDatabase(); @ConfigurationProperty(order = 7, displayMessageKey = MSG_USER_DISPLAY, helpMessageKey = MSG_USER_HELP) String getUser(); @ConfigurationProperty(order = 8, displayMessageKey = MSG_PASSWORD_DISPLAY, helpMessageKey = MSG_PASSWORD_HELP, confidential = true) GuardedString getPassword(); @ConfigurationProperty(order = 9, displayMessageKey = MSG_CS_DISPLAY, helpMessageKey = MSG_CS_HELP, required = true) String getCaseSensitivityString(); @ConfigurationProperty(order = 10, displayMessageKey = MSG_EXTRA_ATTRS_POLICY_DISPLAY, helpMessageKey = MSG_EXTRA_ATTRS_POLICY_HELP) String getExtraAttributesPolicyString(); @ConfigurationProperty(order = 11, displayMessageKey = MSG_SOURCE_TYPE_DISPLAY, helpMessageKey = MSG_SOURCE_TYPE_HELP, required = false) String getSourceType(); @ConfigurationProperty(order = 12, displayMessageKey = MSG_DROP_CASCADE_DISPLAY, helpMessageKey = MSG_DROP_CASCADE_DISPLAY, required = false) boolean isDropCascade(); @ConfigurationProperty(order = 13, displayMessageKey = MSG_NORMALIZER_DISPLAY, helpMessageKey = MSG_NORMALIZER_HELP, required = false) String getNormalizerString(); @ConfigurationProperty(order = 14, displayMessageKey = MSG_USE_DRIVER_FOR_AUTHENTICATION_DISPLAY, helpMessageKey = MSG_USE_DRIVER_FOR_AUTHENTICATION_HELP, required = false) boolean isUseDriverForAuthentication(); void setNormalizerString(String normalizerString); void setExtraAttributesPolicyString(String extraAttributesPolicyString); void setDropCascade(boolean dropCascade); void setHost(String host); void setPort(String port); void setDriver(String driver); void setDatabase(String database); void setUser(String user); void setPassword(GuardedString password); void setDataSource(String dataSource); void setDsJNDIEnv(String[] dsJNDIEnv); void setUseDriverForAuthentication(boolean useDriverForAuthentication); void setUrl(String url); void setCaseSensitivityString(String cs); void setSourceType(String sourceType); @Override void validate(); }
OracleConfiguration extends AbstractConfiguration implements Cloneable { protected OracleConfiguration clone() { try { return (OracleConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new ConnectorException("Clone of OracleConfiguration super class failed", e); } } OracleConfiguration(); @ConfigurationProperty(order = 0, displayMessageKey = MSG_DATASOURCE_DISPLAY, helpMessageKey = MSG_DATASOURCE_HELP) String getDataSource(); @ConfigurationProperty(order = 1, displayMessageKey = MSG_DSJNDIENV_DISPLAY, helpMessageKey = MSG_DSJNDIENV_HELP) String[] getDsJNDIEnv(); @ConfigurationProperty(order = 2, displayMessageKey = MSG_URL_DISPLAY, helpMessageKey = MSG_URL_HELP) String getUrl(); @ConfigurationProperty(order = 3, displayMessageKey = MSG_DRIVER_DISPLAY, helpMessageKey = MSG_DRIVER_HELP) String getDriver(); @ConfigurationProperty(order = 4, displayMessageKey = MSG_HOST_DISPLAY, helpMessageKey = MSG_HOST_HELP) String getHost(); @ConfigurationProperty(order = 5, displayMessageKey = MSG_PORT_DISPLAY, helpMessageKey = MSG_PORT_HELP) String getPort(); @ConfigurationProperty(order = 6, displayMessageKey = MSG_DATABASE_DISPLAY, helpMessageKey = MSG_DATABASE_HELP) String getDatabase(); @ConfigurationProperty(order = 7, displayMessageKey = MSG_USER_DISPLAY, helpMessageKey = MSG_USER_HELP) String getUser(); @ConfigurationProperty(order = 8, displayMessageKey = MSG_PASSWORD_DISPLAY, helpMessageKey = MSG_PASSWORD_HELP, confidential = true) GuardedString getPassword(); @ConfigurationProperty(order = 9, displayMessageKey = MSG_CS_DISPLAY, helpMessageKey = MSG_CS_HELP, required = true) String getCaseSensitivityString(); @ConfigurationProperty(order = 10, displayMessageKey = MSG_EXTRA_ATTRS_POLICY_DISPLAY, helpMessageKey = MSG_EXTRA_ATTRS_POLICY_HELP) String getExtraAttributesPolicyString(); @ConfigurationProperty(order = 11, displayMessageKey = MSG_SOURCE_TYPE_DISPLAY, helpMessageKey = MSG_SOURCE_TYPE_HELP, required = false) String getSourceType(); @ConfigurationProperty(order = 12, displayMessageKey = MSG_DROP_CASCADE_DISPLAY, helpMessageKey = MSG_DROP_CASCADE_DISPLAY, required = false) boolean isDropCascade(); @ConfigurationProperty(order = 13, displayMessageKey = MSG_NORMALIZER_DISPLAY, helpMessageKey = MSG_NORMALIZER_HELP, required = false) String getNormalizerString(); @ConfigurationProperty(order = 14, displayMessageKey = MSG_USE_DRIVER_FOR_AUTHENTICATION_DISPLAY, helpMessageKey = MSG_USE_DRIVER_FOR_AUTHENTICATION_HELP, required = false) boolean isUseDriverForAuthentication(); void setNormalizerString(String normalizerString); void setExtraAttributesPolicyString(String extraAttributesPolicyString); void setDropCascade(boolean dropCascade); void setHost(String host); void setPort(String port); void setDriver(String driver); void setDatabase(String database); void setUser(String user); void setPassword(GuardedString password); void setDataSource(String dataSource); void setDsJNDIEnv(String[] dsJNDIEnv); void setUseDriverForAuthentication(boolean useDriverForAuthentication); void setUrl(String url); void setCaseSensitivityString(String cs); void setSourceType(String sourceType); @Override void validate();  }