/** * Creates a new {@code DataSourceType} instance by deeply copying a given {@code DataSourceType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public DataSourceType(final DataSourceType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'DataSourceType' from 'null'."); } // CBuiltinLeafInfo: java.lang.String this.providerClass = ((o.providerClass == null)?null:o.getProviderClass()); // CBuiltinLeafInfo: java.lang.Boolean this.springBean = ((o.springBean == null)?null:o.isSpringBean()); }
/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public DataSourceType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final DataSourceType clone = ((DataSourceType) super.clone()); // CBuiltinLeafInfo: java.lang.String clone.providerClass = ((this.providerClass == null)?null:this.getProviderClass()); // CBuiltinLeafInfo: java.lang.Boolean clone.springBean = ((this.springBean == null)?null:this.isSpringBean()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theProviderClass; theProviderClass = this.getProviderClass(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "providerClass", theProviderClass), currentHashCode, theProviderClass); } { Boolean theSpringBean; theSpringBean = this.isSpringBean(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "springBean", theSpringBean), currentHashCode, theSpringBean); } return currentHashCode; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof DataSourceType)) { return false; } if (this == object) { return true; } final DataSourceType that = ((DataSourceType) object); { String lhsProviderClass; lhsProviderClass = this.getProviderClass(); String rhsProviderClass; rhsProviderClass = that.getProviderClass(); if (!strategy.equals(LocatorUtils.property(thisLocator, "providerClass", lhsProviderClass), LocatorUtils.property(thatLocator, "providerClass", rhsProviderClass), lhsProviderClass, rhsProviderClass)) { return false; } } { Boolean lhsSpringBean; lhsSpringBean = this.isSpringBean(); Boolean rhsSpringBean; rhsSpringBean = that.isSpringBean(); if (!strategy.equals(LocatorUtils.property(thisLocator, "springBean", lhsSpringBean), LocatorUtils.property(thatLocator, "springBean", rhsSpringBean), lhsSpringBean, rhsSpringBean)) { return false; } } return true; }