| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="de"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseJobEntryTorque.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Turbine</a> > <a href="index.source.html" class="el_package">org.apache.turbine.services.schedule</a> > <span class="el_source">BaseJobEntryTorque.java</span></div><h1>BaseJobEntryTorque.java</h1><pre class="source lang-java linenums">package org.apache.turbine.services.schedule; |
| |
| import java.io.Serializable; |
| import java.sql.Connection; |
| import java.util.Objects; |
| |
| import org.apache.torque.TorqueException; |
| import org.apache.torque.map.TableMap; |
| import org.apache.torque.om.NumberKey; |
| import org.apache.torque.om.ObjectKey; |
| import org.apache.torque.om.SimpleKey; |
| import org.apache.torque.om.Persistent; |
| import org.apache.torque.util.TorqueConnection; |
| import org.apache.torque.util.Transaction; |
| |
| /** |
| * This class was autogenerated by Torque on: |
| * |
| * [Tue Jun 17 14:08:20 CEST 2025] |
| * |
| * You should not use this class directly. It should not even be |
| * extended; all references should be to JobEntryTorque |
| */ |
| @SuppressWarnings("unused") |
| <span class="nc" id="L25">public abstract class BaseJobEntryTorque extends org.apache.turbine.services.schedule.AbstractJobEntry</span> |
| implements Persistent, Serializable |
| { |
| /** Serial version */ |
| private static final long serialVersionUID = 1750162100504L; |
| |
| |
| |
| /** Defines the jobId field. */ |
| <span class="nc" id="L34"> private int jobId = 0;</span> |
| |
| /** Defines the second field. */ |
| <span class="nc" id="L37"> private int second = -1;</span> |
| |
| /** Defines the minute field. */ |
| <span class="nc" id="L40"> private int minute = -1;</span> |
| |
| /** Defines the hour field. */ |
| <span class="nc" id="L43"> private int hour = -1;</span> |
| |
| /** Defines the weekDay field. */ |
| <span class="nc" id="L46"> private int weekDay = -1;</span> |
| |
| /** Defines the dayOfMonth field. */ |
| <span class="nc" id="L49"> private int dayOfMonth = -1;</span> |
| |
| /** Defines the task field. */ |
| <span class="nc" id="L52"> private String task = null;</span> |
| |
| /** Defines the email field. */ |
| <span class="nc" id="L55"> private String email = null;</span> |
| |
| /** Defines the property field. */ |
| <span class="nc" id="L58"> private byte[] property = null;</span> |
| |
| /** Whether this object was modified after loading or after last save. */ |
| <span class="nc" id="L61"> private boolean modified = true;</span> |
| |
| /** |
| * Whether this object was loaded from the database or already saved |
| * (false) or whether it is not yet in the database(true). |
| */ |
| <span class="nc" id="L67"> private boolean isNew = true;</span> |
| |
| /** Flag which indicates whether this object is currently saving. */ |
| <span class="nc" id="L70"> private boolean saving = false;</span> |
| |
| /** |
| * Flag which indicates whether this object is currently loaded |
| * from the database. |
| */ |
| <span class="nc" id="L76"> private boolean loading = false;</span> |
| |
| /** |
| * Flag which indicates whether this object was deleted from the database. |
| * Note that this flags does not always display the current database state, |
| * there is no magical connection between this flag and the database. |
| */ |
| <span class="nc" id="L83"> private boolean deleted = false;</span> |
| |
| |
| |
| |
| |
| /** |
| * Get the value of jobId. |
| * |
| * @return the value of jobId as int |
| */ |
| public int getJobId() |
| { |
| |
| <span class="nc" id="L97"> return jobId;</span> |
| } |
| |
| /** |
| * Set the value of jobId. |
| * |
| * @param v new value of jobId |
| */ |
| public void setJobId(int v) |
| { |
| <span class="nc bnc" id="L107" title="All 2 branches missed."> if (this.jobId != v)</span> |
| { |
| <span class="nc" id="L109"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L112"> this.jobId = v;</span> |
| |
| |
| <span class="nc" id="L115"> }</span> |
| |
| /** |
| * Get the value of second. |
| * |
| * @return the value of second as int |
| */ |
| public int getSecond() |
| { |
| |
| <span class="nc" id="L125"> return second;</span> |
| } |
| |
| /** |
| * Set the value of second. |
| * |
| * @param v new value of second |
| */ |
| public void setSecond(int v) |
| { |
| <span class="nc bnc" id="L135" title="All 2 branches missed."> if (this.second != v)</span> |
| { |
| <span class="nc" id="L137"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L140"> this.second = v;</span> |
| |
| |
| <span class="nc" id="L143"> }</span> |
| |
| /** |
| * Get the value of minute. |
| * |
| * @return the value of minute as int |
| */ |
| public int getMinute() |
| { |
| |
| <span class="nc" id="L153"> return minute;</span> |
| } |
| |
| /** |
| * Set the value of minute. |
| * |
| * @param v new value of minute |
| */ |
| public void setMinute(int v) |
| { |
| <span class="nc bnc" id="L163" title="All 2 branches missed."> if (this.minute != v)</span> |
| { |
| <span class="nc" id="L165"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L168"> this.minute = v;</span> |
| |
| |
| <span class="nc" id="L171"> }</span> |
| |
| /** |
| * Get the value of hour. |
| * |
| * @return the value of hour as int |
| */ |
| public int getHour() |
| { |
| |
| <span class="nc" id="L181"> return hour;</span> |
| } |
| |
| /** |
| * Set the value of hour. |
| * |
| * @param v new value of hour |
| */ |
| public void setHour(int v) |
| { |
| <span class="nc bnc" id="L191" title="All 2 branches missed."> if (this.hour != v)</span> |
| { |
| <span class="nc" id="L193"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L196"> this.hour = v;</span> |
| |
| |
| <span class="nc" id="L199"> }</span> |
| |
| /** |
| * Get the value of weekDay. |
| * |
| * @return the value of weekDay as int |
| */ |
| public int getWeekDay() |
| { |
| |
| <span class="nc" id="L209"> return weekDay;</span> |
| } |
| |
| /** |
| * Set the value of weekDay. |
| * |
| * @param v new value of weekDay |
| */ |
| public void setWeekDay(int v) |
| { |
| <span class="nc bnc" id="L219" title="All 2 branches missed."> if (this.weekDay != v)</span> |
| { |
| <span class="nc" id="L221"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L224"> this.weekDay = v;</span> |
| |
| |
| <span class="nc" id="L227"> }</span> |
| |
| /** |
| * Get the value of dayOfMonth. |
| * |
| * @return the value of dayOfMonth as int |
| */ |
| public int getDayOfMonth() |
| { |
| |
| <span class="nc" id="L237"> return dayOfMonth;</span> |
| } |
| |
| /** |
| * Set the value of dayOfMonth. |
| * |
| * @param v new value of dayOfMonth |
| */ |
| public void setDayOfMonth(int v) |
| { |
| <span class="nc bnc" id="L247" title="All 2 branches missed."> if (this.dayOfMonth != v)</span> |
| { |
| <span class="nc" id="L249"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L252"> this.dayOfMonth = v;</span> |
| |
| |
| <span class="nc" id="L255"> }</span> |
| |
| /** |
| * Get the value of task. |
| * |
| * @return the value of task as String |
| */ |
| public String getTask() |
| { |
| |
| <span class="nc" id="L265"> return task;</span> |
| } |
| |
| /** |
| * Set the value of task. |
| * |
| * @param v new value of task |
| */ |
| public void setTask(String v) |
| { |
| <span class="nc bnc" id="L275" title="All 2 branches missed."> if (!Objects.equals(this.task, v))</span> |
| { |
| <span class="nc" id="L277"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L280"> this.task = v;</span> |
| |
| |
| <span class="nc" id="L283"> }</span> |
| |
| /** |
| * Get the value of email. |
| * |
| * @return the value of email as String |
| */ |
| public String getEmail() |
| { |
| |
| <span class="nc" id="L293"> return email;</span> |
| } |
| |
| /** |
| * Set the value of email. |
| * |
| * @param v new value of email |
| */ |
| public void setEmail(String v) |
| { |
| <span class="nc bnc" id="L303" title="All 2 branches missed."> if (!Objects.equals(this.email, v))</span> |
| { |
| <span class="nc" id="L305"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L308"> this.email = v;</span> |
| |
| |
| <span class="nc" id="L311"> }</span> |
| |
| /** |
| * Get the value of property. |
| * |
| * @return the value of property as byte[] |
| */ |
| public byte[] getProperty() |
| { |
| |
| <span class="nc" id="L321"> return property;</span> |
| } |
| |
| /** |
| * Set the value of property. |
| * |
| * @param v new value of property |
| */ |
| public void setProperty(byte[] v) |
| { |
| <span class="nc bnc" id="L331" title="All 2 branches missed."> if (!Objects.equals(this.property, v))</span> |
| { |
| <span class="nc" id="L333"> setModified(true);</span> |
| } |
| |
| <span class="nc" id="L336"> this.property = v;</span> |
| |
| |
| <span class="nc" id="L339"> }</span> |
| |
| |
| /** |
| * Returns whether the object has ever been saved. This will |
| * be false, if the object was retrieved from storage or was created |
| * and then saved. |
| * |
| * @return true, if the object has never been persisted. |
| */ |
| public boolean isNew() |
| { |
| <span class="nc" id="L351"> return isNew;</span> |
| } |
| |
| /** |
| * Sets whether the object has ever been saved. |
| * |
| * @param isNew true if the object has never been saved, false otherwise. |
| */ |
| public void setNew(boolean isNew) |
| { |
| <span class="nc" id="L361"> this.isNew = isNew;</span> |
| <span class="nc" id="L362"> }</span> |
| |
| /** |
| * Returns whether the object has been modified. |
| * |
| * @return True if the object has been modified. |
| */ |
| public boolean isModified() |
| { |
| <span class="nc" id="L371"> return modified;</span> |
| } |
| |
| /** |
| * Sets whether the object has been modified. |
| * |
| * @param modified true if the object has been modified, false otherwise. |
| */ |
| public void setModified(boolean modified) |
| { |
| <span class="nc" id="L381"> this.modified = modified;</span> |
| <span class="nc" id="L382"> }</span> |
| |
| /** |
| * Sets the modified state for the object to be false. |
| */ |
| public void resetModified() |
| { |
| <span class="nc" id="L389"> modified = false;</span> |
| <span class="nc" id="L390"> }</span> |
| |
| |
| /** |
| * Returns whether this object is currently saving. |
| * |
| * @return true if this object is currently saving, false otherwise. |
| */ |
| public boolean isSaving() |
| { |
| <span class="nc" id="L400"> return saving;</span> |
| } |
| |
| /** |
| * Sets whether this object is currently saving. |
| * |
| * @param saving true if this object is currently saving, false otherwise. |
| */ |
| public void setSaving(boolean saving) |
| { |
| <span class="nc" id="L410"> this.saving = saving;</span> |
| <span class="nc" id="L411"> }</span> |
| |
| |
| /** |
| * Returns whether this object is currently being loaded from the database. |
| * |
| * @return true if this object is currently loading, false otherwise. |
| */ |
| public boolean isLoading() |
| { |
| <span class="nc" id="L421"> return loading;</span> |
| } |
| |
| /** |
| * Sets whether this object is currently being loaded from the database. |
| * |
| * @param loading true if this object is currently loading, false otherwise. |
| */ |
| public void setLoading(boolean loading) |
| { |
| <span class="nc" id="L431"> this.loading = loading;</span> |
| <span class="nc" id="L432"> }</span> |
| |
| |
| /** |
| * Returns whether this object was deleted from the database. |
| * Note that this getter does not automatically reflect database state, |
| * it will be set to true by Torque if doDelete() was called with this |
| * object. Bulk deletes and deletes via primary key do not change |
| * this flag. Also, if doDelete() was called on an object which does |
| * not exist in the database, the deleted flag is set to true even if |
| * it was not deleted. |
| * |
| * @return true if this object was deleted, false otherwise. |
| */ |
| public boolean isDeleted() |
| { |
| <span class="nc" id="L448"> return deleted;</span> |
| } |
| |
| /** |
| * Sets whether this object was deleted from the database. |
| * |
| * @param deleted true if this object was deleted, false otherwise. |
| */ |
| public void setDeleted(boolean deleted) |
| { |
| <span class="nc" id="L458"> this.deleted = deleted;</span> |
| <span class="nc" id="L459"> }</span> |
| |
| |
| |
| |
| |
| |
| |
| |
| /** |
| * Stores an object in the database. If the object is new, |
| * it is inserted; otherwise an update is performed. |
| * |
| * @throws TorqueException if an error occurs during saving. |
| */ |
| public void save() throws TorqueException |
| { |
| <span class="nc" id="L476"> save(JobEntryTorquePeer.DATABASE_NAME);</span> |
| <span class="nc" id="L477"> }</span> |
| |
| /** |
| * Stores an object in the database. If the object is new, |
| * it is inserted; otherwise an update is performed. |
| * |
| * @param dbName the name of the database to which the object |
| * should be saved. |
| * |
| * @throws TorqueException if an error occurs during saving. |
| */ |
| public void save(String dbName) |
| throws TorqueException |
| { |
| <span class="nc" id="L491"> try (TorqueConnection con = Transaction.begin(dbName))</span> |
| { |
| <span class="nc" id="L493"> save(con);</span> |
| <span class="nc" id="L494"> Transaction.commit(con);</span> |
| } |
| <span class="nc" id="L496"> }</span> |
| |
| /** |
| * Stores an object in the database. If the object is new, |
| * it is inserted; otherwise an update is performed. This method |
| * is meant to be used as part of a transaction, otherwise use |
| * the save() method and the connection details will be handled |
| * internally. |
| * |
| * @param con the connection to use for saving the object, not null. |
| * |
| * @throws TorqueException if an error occurs during saving. |
| */ |
| public void save(Connection con) |
| throws TorqueException |
| { |
| <span class="nc bnc" id="L512" title="All 2 branches missed."> if (isSaving())</span> |
| { |
| <span class="nc" id="L514"> return;</span> |
| } |
| try |
| { |
| <span class="nc" id="L518"> setSaving(true);</span> |
| // If this object has been modified, then save it to the database. |
| <span class="nc bnc" id="L520" title="All 2 branches missed."> if (isModified())</span> |
| { |
| <span class="nc bnc" id="L522" title="All 2 branches missed."> if (isNew())</span> |
| { |
| <span class="nc" id="L524"> JobEntryTorquePeer.doInsert((JobEntryTorque) this, con);</span> |
| <span class="nc" id="L525"> setNew(false);</span> |
| } |
| else |
| { |
| <span class="nc" id="L529"> JobEntryTorquePeer.doUpdate((JobEntryTorque) this, con);</span> |
| } |
| } |
| |
| } |
| finally |
| { |
| <span class="nc" id="L536"> setSaving(false);</span> |
| } |
| <span class="nc" id="L538"> }</span> |
| |
| |
| |
| |
| /** |
| * Set the PrimaryKey using ObjectKey. |
| * |
| * @param key jobId ObjectKey |
| */ |
| public void setPrimaryKey(ObjectKey<?> key) |
| |
| { |
| <span class="nc" id="L551"> setJobId(((NumberKey) key).intValue());</span> |
| <span class="nc" id="L552"> }</span> |
| |
| /** |
| * Set the PrimaryKey using a String. |
| * |
| * @param key the primary key to set. |
| */ |
| public void setPrimaryKey(String key) |
| { |
| <span class="nc" id="L561"> setJobId(Integer.parseInt(key));</span> |
| <span class="nc" id="L562"> }</span> |
| |
| |
| /** |
| * returns an id that differentiates this object from others |
| * of its class. |
| */ |
| public ObjectKey<?> getPrimaryKey() |
| { |
| <span class="nc" id="L571"> return SimpleKey.keyFor(getJobId());</span> |
| } |
| |
| |
| |
| /** |
| * Makes a copy of this object. |
| * It creates a new object filling in the simple attributes. |
| * It then fills all the association collections and sets the |
| * related objects to isNew=true. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copy() throws TorqueException |
| { |
| <span class="nc" id="L585"> return copy(true);</span> |
| } |
| |
| /** |
| * Makes a copy of this object using a connection. |
| * It creates a new object filling in the simple attributes. |
| * It then fills all the association collections and sets the |
| * related objects to isNew=true. |
| * |
| * @param con the database connection to read associated objects. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copy(Connection con) throws TorqueException |
| { |
| <span class="nc" id="L599"> return copy(true, con);</span> |
| } |
| |
| /** |
| * Makes a copy of this object. |
| * It creates a new object filling in the simple attributes. |
| * If the parameter deepcopy is true, it then fills all the |
| * association collections and sets the related objects to |
| * isNew=true. |
| * |
| * @param deepcopy whether to copy the associated objects. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copy(boolean deepcopy) throws TorqueException |
| { |
| <span class="nc" id="L614"> JobEntryTorque jobEntryTorque = new JobEntryTorque();</span> |
| |
| <span class="nc" id="L616"> return copyInto(jobEntryTorque, deepcopy);</span> |
| } |
| |
| /** |
| * Makes a copy of this object using connection. |
| * It creates a new object filling in the simple attributes. |
| * If the parameter deepcopy is true, it then fills all the |
| * association collections and sets the related objects to |
| * isNew=true. |
| * |
| * @param deepcopy whether to copy the associated objects. |
| * @param con the database connection to read associated objects. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copy(boolean deepcopy, Connection con) throws TorqueException |
| { |
| <span class="nc" id="L632"> JobEntryTorque jobEntryTorque = new JobEntryTorque();</span> |
| |
| <span class="nc" id="L634"> return copyInto(jobEntryTorque, deepcopy, con);</span> |
| } |
| |
| /** |
| * Fills the copyObj with the contents of this object. |
| * The associated objects are also copied and treated as new objects. |
| * |
| * @param copyObj the object to fill. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copyInto(JobEntryTorque copyObj) throws TorqueException |
| { |
| <span class="nc" id="L646"> return copyInto(copyObj, true);</span> |
| } |
| |
| /** |
| * Fills the copyObj with the contents of this object using connection. |
| * The associated objects are also copied and treated as new objects. |
| * |
| * @param copyObj the object to fill. |
| * @param con the database connection to read associated objects. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copyInto(JobEntryTorque copyObj, Connection con) throws TorqueException |
| { |
| <span class="nc" id="L659"> return copyInto(copyObj, true, con);</span> |
| } |
| |
| /** |
| * Fills the copyObj with the contents of this object. |
| * If deepcopy is true, The associated objects are also copied |
| * and treated as new objects. |
| * |
| * @param copyObj the object to fill. |
| * @param deepcopy whether the associated objects should be copied. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| protected JobEntryTorque copyInto(JobEntryTorque copyObj, boolean deepcopy) throws TorqueException |
| { |
| <span class="nc" id="L673"> copyObj.setJobId(0);</span> |
| <span class="nc" id="L674"> copyObj.setSecond(second);</span> |
| <span class="nc" id="L675"> copyObj.setMinute(minute);</span> |
| <span class="nc" id="L676"> copyObj.setHour(hour);</span> |
| <span class="nc" id="L677"> copyObj.setWeekDay(weekDay);</span> |
| <span class="nc" id="L678"> copyObj.setDayOfMonth(dayOfMonth);</span> |
| <span class="nc" id="L679"> copyObj.setTask(task);</span> |
| <span class="nc" id="L680"> copyObj.setEmail(email);</span> |
| <span class="nc" id="L681"> copyObj.setProperty(property);</span> |
| |
| <span class="nc bnc" id="L683" title="All 2 branches missed."> if (deepcopy)</span> |
| { |
| } |
| <span class="nc" id="L686"> return copyObj;</span> |
| } |
| |
| |
| /** |
| * Fills the copyObj with the contents of this object using connection. |
| * If deepcopy is true, The associated objects are also copied |
| * and treated as new objects. |
| * |
| * @param copyObj the object to fill. |
| * @param deepcopy whether the associated objects should be copied. |
| * @param con the database connection to read associated objects. |
| * @throws TorqueException if retrieval of the associated objects fails |
| */ |
| public JobEntryTorque copyInto(JobEntryTorque copyObj, boolean deepcopy, Connection con) throws TorqueException |
| { |
| <span class="nc" id="L702"> copyObj.setJobId(0);</span> |
| <span class="nc" id="L703"> copyObj.setSecond(second);</span> |
| <span class="nc" id="L704"> copyObj.setMinute(minute);</span> |
| <span class="nc" id="L705"> copyObj.setHour(hour);</span> |
| <span class="nc" id="L706"> copyObj.setWeekDay(weekDay);</span> |
| <span class="nc" id="L707"> copyObj.setDayOfMonth(dayOfMonth);</span> |
| <span class="nc" id="L708"> copyObj.setTask(task);</span> |
| <span class="nc" id="L709"> copyObj.setEmail(email);</span> |
| <span class="nc" id="L710"> copyObj.setProperty(property);</span> |
| |
| <span class="nc bnc" id="L712" title="All 2 branches missed."> if (deepcopy)</span> |
| { |
| } |
| <span class="nc" id="L715"> return copyObj;</span> |
| } |
| |
| /** The Peer class */ |
| <span class="nc" id="L719"> private static final org.apache.turbine.services.schedule.JobEntryTorquePeer peer</span> |
| = new org.apache.turbine.services.schedule.JobEntryTorquePeer(); |
| |
| /** |
| * returns a peer instance associated with this om. Since Peer classes |
| * are not to have any instance attributes, this method returns the |
| * same instance for all member of this class. The method could therefore |
| * be static, but this would prevent one from overriding the behavior. |
| */ |
| public org.apache.turbine.services.schedule.JobEntryTorquePeer getPeer() |
| { |
| <span class="nc" id="L730"> return peer;</span> |
| } |
| |
| /** |
| * Retrieves the TableMap object related to this Table data without |
| * compiler warnings of using getPeer().getTableMap(). |
| * |
| * @return The associated TableMap object. |
| * @throws TorqueException if associated objects are not found |
| */ |
| public TableMap getTableMap() throws TorqueException |
| { |
| <span class="nc" id="L742"> return org.apache.turbine.services.schedule.JobEntryTorquePeer.getTableMap();</span> |
| } |
| |
| |
| |
| public String toString() |
| { |
| <span class="nc" id="L749"> StringBuffer str = new StringBuffer();</span> |
| <span class="nc" id="L750"> str.append("JobEntryTorque:\n");</span> |
| <span class="nc" id="L751"> str.append("jobId = ")</span> |
| <span class="nc" id="L752"> .append(getJobId())</span> |
| <span class="nc" id="L753"> .append("\n");</span> |
| <span class="nc" id="L754"> str.append("second = ")</span> |
| <span class="nc" id="L755"> .append(getSecond())</span> |
| <span class="nc" id="L756"> .append("\n");</span> |
| <span class="nc" id="L757"> str.append("minute = ")</span> |
| <span class="nc" id="L758"> .append(getMinute())</span> |
| <span class="nc" id="L759"> .append("\n");</span> |
| <span class="nc" id="L760"> str.append("hour = ")</span> |
| <span class="nc" id="L761"> .append(getHour())</span> |
| <span class="nc" id="L762"> .append("\n");</span> |
| <span class="nc" id="L763"> str.append("weekDay = ")</span> |
| <span class="nc" id="L764"> .append(getWeekDay())</span> |
| <span class="nc" id="L765"> .append("\n");</span> |
| <span class="nc" id="L766"> str.append("dayOfMonth = ")</span> |
| <span class="nc" id="L767"> .append(getDayOfMonth())</span> |
| <span class="nc" id="L768"> .append("\n");</span> |
| <span class="nc" id="L769"> str.append("task = ")</span> |
| <span class="nc" id="L770"> .append(getTask())</span> |
| <span class="nc" id="L771"> .append("\n");</span> |
| <span class="nc" id="L772"> str.append("email = ")</span> |
| <span class="nc" id="L773"> .append(getEmail())</span> |
| <span class="nc" id="L774"> .append("\n");</span> |
| <span class="nc" id="L775"> str.append("property = ")</span> |
| <span class="nc" id="L776"> .append("<binary>")</span> |
| <span class="nc" id="L777"> .append("\n");</span> |
| <span class="nc" id="L778"> return(str.toString());</span> |
| } |
| |
| /** |
| * Compares the primary key of this instance with the key of another. |
| * |
| * @param toCompare The object to compare to. |
| * @return Whether the primary keys are equal and the object have the |
| * same class. |
| */ |
| public boolean equals(Object toCompare) |
| { |
| <span class="nc bnc" id="L790" title="All 2 branches missed."> if (toCompare == null)</span> |
| { |
| <span class="nc" id="L792"> return false;</span> |
| } |
| <span class="nc bnc" id="L794" title="All 2 branches missed."> if (this == toCompare)</span> |
| { |
| <span class="nc" id="L796"> return true;</span> |
| } |
| <span class="nc bnc" id="L798" title="All 2 branches missed."> if (!getClass().equals(toCompare.getClass()))</span> |
| { |
| <span class="nc" id="L800"> return false;</span> |
| } |
| <span class="nc" id="L802"> JobEntryTorque other = (JobEntryTorque) toCompare;</span> |
| <span class="nc bnc" id="L803" title="All 4 branches missed."> if (getPrimaryKey() == null || other.getPrimaryKey() == null)</span> |
| { |
| <span class="nc" id="L805"> return false;</span> |
| } |
| <span class="nc" id="L807"> return getPrimaryKey().equals(other.getPrimaryKey());</span> |
| } |
| |
| /** |
| * If the primary key is not <code>null</code>, return the hashcode of the |
| * primary key. Otherwise calls <code>Object.hashCode()</code>. |
| * |
| * @return an <code>int</code> value |
| */ |
| public int hashCode() |
| { |
| <span class="nc" id="L818"> ObjectKey<?> ok = getPrimaryKey();</span> |
| <span class="nc bnc" id="L819" title="All 2 branches missed."> if (ok == null)</span> |
| { |
| <span class="nc" id="L821"> return super.hashCode();</span> |
| } |
| |
| <span class="nc" id="L824"> return ok.hashCode();</span> |
| } |
| |
| |
| |
| /** |
| * Compares the content of this object to another object |
| * |
| * @param toCompare The object to compare to. |
| * @return true if all of the columns in the other object have |
| * the same value as the objects in this class. |
| */ |
| public boolean valueEquals(JobEntryTorque toCompare) |
| { |
| <span class="nc bnc" id="L838" title="All 2 branches missed."> if (toCompare == null)</span> |
| { |
| <span class="nc" id="L840"> return false;</span> |
| } |
| <span class="nc bnc" id="L842" title="All 2 branches missed."> if (this == toCompare)</span> |
| { |
| <span class="nc" id="L844"> return true;</span> |
| } |
| <span class="nc bnc" id="L846" title="All 2 branches missed."> if (this.jobId != toCompare.getJobId())</span> |
| { |
| <span class="nc" id="L848"> return false;</span> |
| } |
| <span class="nc bnc" id="L850" title="All 2 branches missed."> if (this.second != toCompare.getSecond())</span> |
| { |
| <span class="nc" id="L852"> return false;</span> |
| } |
| <span class="nc bnc" id="L854" title="All 2 branches missed."> if (this.minute != toCompare.getMinute())</span> |
| { |
| <span class="nc" id="L856"> return false;</span> |
| } |
| <span class="nc bnc" id="L858" title="All 2 branches missed."> if (this.hour != toCompare.getHour())</span> |
| { |
| <span class="nc" id="L860"> return false;</span> |
| } |
| <span class="nc bnc" id="L862" title="All 2 branches missed."> if (this.weekDay != toCompare.getWeekDay())</span> |
| { |
| <span class="nc" id="L864"> return false;</span> |
| } |
| <span class="nc bnc" id="L866" title="All 2 branches missed."> if (this.dayOfMonth != toCompare.getDayOfMonth())</span> |
| { |
| <span class="nc" id="L868"> return false;</span> |
| } |
| <span class="nc bnc" id="L870" title="All 2 branches missed."> if (!Objects.equals(this.task, toCompare.getTask()))</span> |
| { |
| <span class="nc" id="L872"> return false;</span> |
| } |
| <span class="nc bnc" id="L874" title="All 2 branches missed."> if (!Objects.equals(this.email, toCompare.getEmail()))</span> |
| { |
| <span class="nc" id="L876"> return false;</span> |
| } |
| <span class="nc bnc" id="L878" title="All 2 branches missed."> if (!Objects.equals(this.property, toCompare.getProperty()))</span> |
| { |
| <span class="nc" id="L880"> return false;</span> |
| } |
| <span class="nc" id="L882"> return true;</span> |
| } |
| |
| |
| |
| } |
| </pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> |