本文整理了Java中java.sql.Time.clone()
方法的一些代码示例,展示了Time.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Time.clone()
方法的具体详情如下:
包路径:java.sql.Time
类名称:Time
方法名:clone
暂无
代码示例来源:origin: org.postgresql/postgresql
@Override
public Object clone() {
PGTime clone = (PGTime) super.clone();
if (getCalendar() != null) {
clone.setCalendar((Calendar) getCalendar().clone());
}
return clone;
}
}
代码示例来源:origin: org.tentackle/tentackle-common
/**
* {@inheritDoc}
* <p>
* Cloned times are always not frozen.
*/
@Override
public Time clone() {
Time time = (Time) super.clone();
time.frozen = false;
return time;
}
代码示例来源:origin: com.h2database/com.springsource.org.h2
public Time getTime() {
// this class is mutable - must copy the object
return (Time) value.clone();
}
代码示例来源:origin: com.sqlapp/sqlapp-core
public java.sql.Time copy(Object obj){
if (obj==null){
return null;
}
return (java.sql.Time)convertObject(obj).clone();
}
代码示例来源:origin: jpox/jpox
/**
* 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;
}
内容来源于网络,如有侵权,请联系作者删除!