All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jakarta.xml.ns.persistence.orm.PreUpdate Maven / Gradle / Ivy

There is a newer version: 4.0.8
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
//


package jakarta.xml.ns.persistence.orm;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb.lang.CopyStrategy;
import org.jvnet.jaxb.lang.CopyTo;
import org.jvnet.jaxb.lang.Equals;
import org.jvnet.jaxb.lang.EqualsStrategy;
import org.jvnet.jaxb.lang.HashCode;
import org.jvnet.jaxb.lang.HashCodeStrategy;
import org.jvnet.jaxb.lang.JAXBCopyStrategy;
import org.jvnet.jaxb.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb.lang.JAXBMergeStrategy;
import org.jvnet.jaxb.lang.MergeFrom;
import org.jvnet.jaxb.lang.MergeStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;


/**
 * @Target({METHOD}) @Retention(RUNTIME)
 *         public @interface PreUpdate {}
 * 
 * 

Java class for pre-update complex type

. * *

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

* *
{@code
 * 
 *   
 *     
 *       
 *         
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "pre-update", propOrder = { "description" }) public class PreUpdate implements Cloneable, CopyTo, Equals, HashCode, MergeFrom { protected String description; @XmlAttribute(name = "method-name", required = true) protected String methodName; /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the methodName property. * * @return * possible object is * {@link String } * */ public String getMethodName() { return methodName; } /** * Sets the value of the methodName property. * * @param value * allowed object is * {@link String } * */ public void setMethodName(String value) { this.methodName = value; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final PreUpdate that = ((PreUpdate) object); { String lhsDescription; lhsDescription = this.getDescription(); String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { String lhsMethodName; lhsMethodName = this.getMethodName(); String rhsMethodName; rhsMethodName = that.getMethodName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "methodName", lhsMethodName), LocatorUtils.property(thatLocator, "methodName", rhsMethodName), lhsMethodName, rhsMethodName, (this.methodName!= null), (that.methodName!= null))) { return false; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { String theMethodName; theMethodName = this.getMethodName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "methodName", theMethodName), currentHashCode, theMethodName, (this.methodName!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public Object clone() { return copyTo(createNewInstance()); } @Override public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.getInstance(); return copyTo(null, target, strategy); } @Override public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof PreUpdate) { final PreUpdate copy = ((PreUpdate) draftCopy); { Boolean descriptionShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.description!= null)); if (descriptionShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDescription; sourceDescription = this.getDescription(); String copyDescription = ((String) strategy.copy(LocatorUtils.property(locator, "description", sourceDescription), sourceDescription, (this.description!= null))); copy.setDescription(copyDescription); } else { if (descriptionShouldBeCopiedAndSet == Boolean.FALSE) { copy.description = null; } } } { Boolean methodNameShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.methodName!= null)); if (methodNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceMethodName; sourceMethodName = this.getMethodName(); String copyMethodName = ((String) strategy.copy(LocatorUtils.property(locator, "methodName", sourceMethodName), sourceMethodName, (this.methodName!= null))); copy.setMethodName(copyMethodName); } else { if (methodNameShouldBeCopiedAndSet == Boolean.FALSE) { copy.methodName = null; } } } } return draftCopy; } @Override public Object createNewInstance() { return new PreUpdate(); } @Override public void mergeFrom(Object left, Object right) { final MergeStrategy strategy = JAXBMergeStrategy.getInstance(); mergeFrom(null, null, left, right, strategy); } @Override public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) { if (right instanceof PreUpdate) { final PreUpdate target = this; final PreUpdate leftObject = ((PreUpdate) left); final PreUpdate rightObject = ((PreUpdate) right); { Boolean descriptionShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.description!= null), (rightObject.description!= null)); if (descriptionShouldBeMergedAndSet == Boolean.TRUE) { String lhsDescription; lhsDescription = leftObject.getDescription(); String rhsDescription; rhsDescription = rightObject.getDescription(); String mergedDescription = ((String) strategy.merge(LocatorUtils.property(leftLocator, "description", lhsDescription), LocatorUtils.property(rightLocator, "description", rhsDescription), lhsDescription, rhsDescription, (leftObject.description!= null), (rightObject.description!= null))); target.setDescription(mergedDescription); } else { if (descriptionShouldBeMergedAndSet == Boolean.FALSE) { target.description = null; } } } { Boolean methodNameShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.methodName!= null), (rightObject.methodName!= null)); if (methodNameShouldBeMergedAndSet == Boolean.TRUE) { String lhsMethodName; lhsMethodName = leftObject.getMethodName(); String rhsMethodName; rhsMethodName = rightObject.getMethodName(); String mergedMethodName = ((String) strategy.merge(LocatorUtils.property(leftLocator, "methodName", lhsMethodName), LocatorUtils.property(rightLocator, "methodName", rhsMethodName), lhsMethodName, rhsMethodName, (leftObject.methodName!= null), (rightObject.methodName!= null))); target.setMethodName(mergedMethodName); } else { if (methodNameShouldBeMergedAndSet == Boolean.FALSE) { target.methodName = null; } } } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy