本文整理了Java中java.sql.Timestamp.clone()
方法的一些代码示例,展示了Timestamp.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timestamp.clone()
方法的具体详情如下:
包路径:java.sql.Timestamp
类名称:Timestamp
方法名:clone
暂无
代码示例来源:origin: apache/geode
/**
* 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();
}
代码示例来源:origin: org.postgresql/postgresql
@Override
public Object clone() {
PGTimestamp clone = (PGTimestamp) super.clone();
if (getCalendar() != null) {
clone.setCalendar((Calendar) getCalendar().clone());
}
return clone;
}
}
代码示例来源:origin: apache/hive
clone.timestampValues = new Timestamp[timestampValues.length];
for(int i = 0; i < timestampValues.length; ++i) {
clone.timestampValues[i] = (Timestamp) timestampValues[i].clone();
代码示例来源:origin: apache/drill
clone.timestampValues = new Timestamp[timestampValues.length];
for(int i = 0; i < timestampValues.length; ++i) {
clone.timestampValues[i] = (Timestamp) timestampValues[i].clone();
代码示例来源:origin: io.snappydata/gemfire-core
/**
* 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();
}
代码示例来源:origin: org.apache.geode/gemfire-core
/**
* 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();
}
代码示例来源:origin: apache/ofbiz-framework
/** Sets the date to ship before */
public void setShipBeforeDate(Timestamp date) {
this.shipBeforeDate = date != null ? (Timestamp) date.clone() : null;
}
代码示例来源:origin: apache/ofbiz-framework
/** Sets the cancel back order date */
public void setCancelBackOrderDate(Timestamp date) {
this.cancelBackOrderDate = date != null ? (Timestamp) date.clone() : null;
}
代码示例来源:origin: org.tentackle/tentackle-common
/**
* {@inheritDoc}
* <p>
* Cloned timestamps are always not frozen.
*/
@Override
public Timestamp clone() {
Timestamp timestamp = (Timestamp) super.clone();
timestamp.frozen = false;
return timestamp;
}
代码示例来源:origin: apache/ofbiz-framework
/** Sets the reservation start date */
public void setReservStart(Timestamp reservStart) {
this.reservStart = reservStart != null ? (Timestamp) reservStart.clone() : null;
}
/** Sets the reservation length */
代码示例来源:origin: apache/ofbiz-framework
/** Sets the date to ship after */
public void setReserveAfterDate(Timestamp date) {
this.reserveAfterDate = date != null ? (Timestamp) date.clone() : null;
}
代码示例来源:origin: apache/ofbiz-framework
/** Returns the date to EstimatedShipDate */
public Timestamp getEstimatedShipDate() {
return this.estimatedShipDate != null ? (Timestamp) this.estimatedShipDate.clone() : null;
}
代码示例来源:origin: apache/ofbiz-framework
public Timestamp getStartStamp() {
return (Timestamp) this.startStamp.clone();
}
代码示例来源:origin: apache/ofbiz-framework
public Timestamp getCartCreatedTime() {
return this.cartCreatedTs != null ? (Timestamp) this.cartCreatedTs.clone() : null;
}
代码示例来源:origin: apache/ofbiz-framework
public Timestamp getDefaultShipAfterDate() {
return this.defaultShipAfterDate != null ? (Timestamp) this.defaultShipAfterDate.clone() : null;
}
代码示例来源:origin: apache/ofbiz-framework
public void setLastListRestore(Timestamp time) {
this.lastListRestore = time != null ? (Timestamp) time.clone() : null;
}
代码示例来源:origin: apache/ofbiz-framework
/** 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. */
代码示例来源:origin: com.sqlapp/sqlapp-core
public java.sql.Timestamp copy(Object obj){
if (obj==null){
return null;
}
return (java.sql.Timestamp)convertObject(obj).clone();
}
代码示例来源:origin: apache/ofbiz-framework
/**
* 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();
}
}
}
代码示例来源:origin: apache/ofbiz-framework
/**
* 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();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!