/** * Create an instance of {@link Session } * */ public Session createSession() { return new Session(); }
public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theUser; theUser = this.getUser(); strategy.appendField(locator, this, "user", buffer, theUser); } { Date theStarted; theStarted = this.getStarted(); strategy.appendField(locator, this, "started", buffer, theStarted); } return buffer; }
/** * Sets the value of the started property. * * @param value * allowed object is * {@link String } * */ public void setStarted(Date value) { getMetadata().removeUnknown("started"); if (m_validationSession!= null) { m_validationSession.set(this, "started", value, started); } this.started = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "started", value, started); } }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theUser; theUser = this.getUser(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "user", theUser), currentHashCode, theUser); } { Date theStarted; theStarted = this.getStarted(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "started", theStarted), currentHashCode, theStarted); } return currentHashCode; }
/** * Sets the value of the user property. * * @param value * allowed object is * {@link String } * */ public void setUser(String value) { getMetadata().removeUnknown("user"); if (m_validationSession!= null) { m_validationSession.set(this, "user", value, user); } this.user = value; if (m_validationSession!= null) { m_validationSession.invokeListeners(this, "user", value, user); } }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Session)) { return false; } if (this == object) { return true; } final Session that = ((Session) object); { String lhsUser; lhsUser = this.getUser(); String rhsUser; rhsUser = that.getUser(); if (!strategy.equals(LocatorUtils.property(thisLocator, "user", lhsUser), LocatorUtils.property(thatLocator, "user", rhsUser), lhsUser, rhsUser)) { return false; } } { Date lhsStarted; lhsStarted = this.getStarted(); Date rhsStarted; rhsStarted = that.getStarted(); if (!strategy.equals(LocatorUtils.property(thisLocator, "started", lhsStarted), LocatorUtils.property(thatLocator, "started", rhsStarted), lhsStarted, rhsStarted)) { return false; } } return true; }