@Override public Object clone() { PGTime clone = (PGTime) super.clone(); if (getCalendar() != null) { clone.setCalendar((Calendar) getCalendar().clone()); } return clone; } }
/** * {@inheritDoc} * <p> * Cloned times are always not frozen. */ @Override public Time clone() { Time time = (Time) super.clone(); time.frozen = false; return time; }
public Time getTime() { // this class is mutable - must copy the object return (Time) value.clone(); }
public java.sql.Time copy(Object obj){ if (obj==null){ return null; } return (java.sql.Time)convertObject(obj).clone(); }
/** * Creates and returns a copy of this object. * * <P>Mutable second-class Objects are required to provide a public * clone method in order to allow for copying PersistenceCapable * objects. In contrast to Object.clone(), this method must not throw a * CloneNotSupportedException. * @return Clone of the object */ public Object clone() { Object obj = super.clone(); ((SqlTime)obj).unsetOwner(); return obj; }