本文整理了Java中org.eclipse.persistence.internal.helper.Helper.copyVector()
方法的一些代码示例,展示了Helper.copyVector()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.copyVector()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:copyVector
[英]Return a copy of the vector containing a subset starting at startIndex and ending at stopIndex.
[中]返回向量的副本,其中包含从startIndex开始到stopIndex结束的子集。
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* PUBLIC:
* Release all objects read in so far.
* This should be performed when reading in a large collection of
* objects in order to preserve memory.
*/
public void clear() {
super.clear();
if (this.position == 0) {
return;
}
this.objectCollection = Helper.copyVector(this.objectCollection, this.position, this.objectCollection.size());
this.position = 0;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* PUBLIC:
* Release all objects read in so far.
* This should be performed when reading in a large collection of
* objects in order to preserve memory.
*/
public void clear() {
super.clear();
if (this.position == 0) {
return;
}
this.objectCollection = Helper.copyVector(this.objectCollection, this.position, this.objectCollection.size());
this.position = 0;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
* Answer a list of the elements of the receiver's collection from startIndex to endIndex.
*/
protected List<Object> copy(int startIndex, int endIndex) throws QueryException {
while (this.objectCollection.size() < endIndex) {
if (retrieveNextObject() == null) {
throw QueryException.readBeyondStream(this.query);
}
}
return Helper.copyVector(this.objectCollection, startIndex, endIndex);
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* INTERNAL:
* Answer a list of the elements of the receiver's collection from startIndex to endIndex.
*/
protected List<Object> copy(int startIndex, int endIndex) throws QueryException {
while (this.objectCollection.size() < endIndex) {
if (retrieveNextObject() == null) {
throw QueryException.readBeyondStream(this.query);
}
}
return Helper.copyVector(this.objectCollection, startIndex, endIndex);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* INTERNAL:
* Answer a Vector of the elements of the receiver's collection from startIndex to endIndex.
*/
protected Vector copy(int startIndex, int endIndex) throws QueryException {
while (getObjectCollection().size() < endIndex) {
if (retrieveNextObject() == null) {
throw QueryException.readBeyondStream(getQuery());
}
}
return Helper.copyVector(getObjectCollection(), startIndex, endIndex);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* PUBLIC:
* Release all objects read in so far.
* This should be performed when reading in a large collection of
* objects in order to preserve memory.
*/
public void releasePrevious() {
if (getPosition() == 0) {
return;
}
setObjectCollection(Helper.copyVector(getObjectCollection(), getPosition(), getObjectCollection().size()));
setPosition(0);
}
内容来源于网络,如有侵权,请联系作者删除!