/** * The date and time the GemFire service was last in this state. * * @return a Timestamp signifying the last date and time the GemFire service was in this state. * @see java.sql.Timestamp */ public Timestamp getTimestamp() { return (Timestamp) timestamp.clone(); }
@Override public Object clone() { PGTimestamp clone = (PGTimestamp) super.clone(); if (getCalendar() != null) { clone.setCalendar((Calendar) getCalendar().clone()); } return clone; } }
clone.timestampValues = new Timestamp[timestampValues.length]; for(int i = 0; i < timestampValues.length; ++i) { clone.timestampValues[i] = (Timestamp) timestampValues[i].clone();
clone.timestampValues = new Timestamp[timestampValues.length]; for(int i = 0; i < timestampValues.length; ++i) { clone.timestampValues[i] = (Timestamp) timestampValues[i].clone();
/** * The date and time the GemFire service was last in this state. * * @return a Timestamp signifying the last date and time the GemFire service was in this state. * @see java.sql.Timestamp */ public Timestamp getTimestamp() { return (Timestamp) timestamp.clone(); }
/** * The date and time the GemFire service was last in this state. * * @return a Timestamp signifying the last date and time the GemFire service was in this state. * @see java.sql.Timestamp */ public Timestamp getTimestamp() { return (Timestamp) timestamp.clone(); }
/** Sets the date to ship before */ public void setShipBeforeDate(Timestamp date) { this.shipBeforeDate = date != null ? (Timestamp) date.clone() : null; }
/** Sets the cancel back order date */ public void setCancelBackOrderDate(Timestamp date) { this.cancelBackOrderDate = date != null ? (Timestamp) date.clone() : null; }
/** * {@inheritDoc} * <p> * Cloned timestamps are always not frozen. */ @Override public Timestamp clone() { Timestamp timestamp = (Timestamp) super.clone(); timestamp.frozen = false; return timestamp; }
/** Sets the reservation start date */ public void setReservStart(Timestamp reservStart) { this.reservStart = reservStart != null ? (Timestamp) reservStart.clone() : null; } /** Sets the reservation length */
/** Sets the date to ship after */ public void setReserveAfterDate(Timestamp date) { this.reserveAfterDate = date != null ? (Timestamp) date.clone() : null; }
/** Returns the date to EstimatedShipDate */ public Timestamp getEstimatedShipDate() { return this.estimatedShipDate != null ? (Timestamp) this.estimatedShipDate.clone() : null; }
public Timestamp getStartStamp() { return (Timestamp) this.startStamp.clone(); }
public Timestamp getCartCreatedTime() { return this.cartCreatedTs != null ? (Timestamp) this.cartCreatedTs.clone() : null; }
public Timestamp getDefaultShipAfterDate() { return this.defaultShipAfterDate != null ? (Timestamp) this.defaultShipAfterDate.clone() : null; }
public void setLastListRestore(Timestamp time) { this.lastListRestore = time != null ? (Timestamp) time.clone() : null; }
/** Returns the reservation start date with a number of days added. */ public Timestamp getReservStart(BigDecimal addDays) { if (addDays.compareTo(BigDecimal.ZERO) == 0) { return this.reservStart != null ? (Timestamp) this.reservStart.clone() : null; } if (this.reservStart != null) { return new Timestamp((long) (this.reservStart.getTime() + (addDays.doubleValue() * 86400000.0))); } return null; } /** Returns the reservation length. */
public java.sql.Timestamp copy(Object obj){ if (obj==null){ return null; } return (java.sql.Timestamp)convertObject(obj).clone(); }
/** * Reset the ship group's shipBeforeDate if it is after the parameter * @param newShipBeforeDate the ship group's shipBeforeDate to be reset */ public void resetShipBeforeDateIfAfter(Timestamp newShipBeforeDate) { if (newShipBeforeDate != null) { if ((this.shipBeforeDate == null) || (!this.shipBeforeDate.before(newShipBeforeDate))) { this.shipBeforeDate = (Timestamp) newShipBeforeDate.clone(); } } }
/** * Reset the ship group's shipAfterDate if it is before the parameter * @param newShipAfterDate the ship group's shipAfterDate to be reset */ public void resetShipAfterDateIfBefore(Timestamp newShipAfterDate) { if (newShipAfterDate != null) { if ((this.shipAfterDate == null) || (!this.shipAfterDate.after(newShipAfterDate))) { this.shipAfterDate = (Timestamp) newShipAfterDate.clone(); } } }