// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.07.20 at 12:19:30 PM CEST // package at.gv.egovernment.moa.id.commons.db.dao.config.deprecated; import java.io.Serializable; import java.util.Date; import javax.persistence.Lob; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Transient; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; import org.jvnet.jaxb2_commons.lang.Equals; import org.jvnet.jaxb2_commons.lang.EqualsStrategy; import org.jvnet.jaxb2_commons.lang.HashCode; import org.jvnet.jaxb2_commons.lang.HashCodeStrategy; import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy; import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; import org.jvnet.jaxb2_commons.locator.ObjectLocator; import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="metadataURL" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         <element name="certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *         <element name="updateRequired" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "metadataURL", "certificate", "updateRequired" }) @XmlRootElement(name = "OA_PVP2") public class OAPVP2 implements Serializable, Equals, HashCode { @XmlElement(required = true) @XmlSchemaType(name = "anyURI") protected String metadataURL; @XmlElement(required = true) protected byte[] certificate; @XmlElement(required = true) @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar updateRequired; @XmlAttribute(name = "Hjid") protected Long hjid; /** * Gets the value of the metadataURL property. * * @return * possible object is * {@link String } * */ public String getMetadataURL() { return metadataURL; } /** * Sets the value of the metadataURL property. * * @param value * allowed object is * {@link String } * */ public void setMetadataURL(String value) { this.metadataURL = value; } /** * Gets the value of the certificate property. * * @return * possible object is * byte[] */ @Lob public byte[] getCertificate() { return certificate; } /** * Sets the value of the certificate property. * * @param value * allowed object is * byte[] */ public void setCertificate(byte[] value) { this.certificate = value; } /** * Gets the value of the updateRequired property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ @Transient public XMLGregorianCalendar getUpdateRequired() { return updateRequired; } /** * Sets the value of the updateRequired property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setUpdateRequired(XMLGregorianCalendar value) { this.updateRequired = value; } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ public Long getHjid() { return hjid; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } @Temporal(TemporalType.TIMESTAMP) public Date getUpdateRequiredItem() { //return XmlAdapterUtils.unmarshall(XMLGregorianCalendarAsDateTime.class, this.getUpdateRequired()); return new Date(); } public void setUpdateRequiredItem(Date target) { //setUpdateRequired(XmlAdapterUtils.marshall(XMLGregorianCalendarAsDateTime.class, target)); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof OAPVP2)) { return false; } if (this == object) { return true; } final OAPVP2 that = ((OAPVP2) object); { String lhsMetadataURL; lhsMetadataURL = this.getMetadataURL(); String rhsMetadataURL; rhsMetadataURL = that.getMetadataURL(); if (!strategy.equals(LocatorUtils.property(thisLocator, "metadataURL", lhsMetadataURL), LocatorUtils.property(thatLocator, "metadataURL", rhsMetadataURL), lhsMetadataURL, rhsMetadataURL)) { return false; } } { byte[] lhsCertificate; lhsCertificate = this.getCertificate(); byte[] rhsCertificate; rhsCertificate = that.getCertificate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "certificate", lhsCertificate), LocatorUtils.property(thatLocator, "certificate", rhsCertificate), lhsCertificate, rhsCertificate)) { return false; } } { XMLGregorianCalendar lhsUpdateRequired; lhsUpdateRequired = this.getUpdateRequired(); XMLGregorianCalendar rhsUpdateRequired; rhsUpdateRequired = that.getUpdateRequired(); if (!strategy.equals(LocatorUtils.property(thisLocator, "updateRequired", lhsUpdateRequired), LocatorUtils.property(thatLocator, "updateRequired", rhsUpdateRequired), lhsUpdateRequired, rhsUpdateRequired)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theMetadataURL; theMetadataURL = this.getMetadataURL(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "metadataURL", theMetadataURL), currentHashCode, theMetadataURL); } { byte[] theCertificate; theCertificate = this.getCertificate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "certificate", theCertificate), currentHashCode, theCertificate); } { XMLGregorianCalendar theUpdateRequired; theUpdateRequired = this.getUpdateRequired(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "updateRequired", theUpdateRequired), currentHashCode, theUpdateRequired); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }