本文整理了Java中org.eclipse.persistence.exceptions.QueryException.readBeyondStream
方法的一些代码示例,展示了QueryException.readBeyondStream
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QueryException.readBeyondStream
方法的具体详情如下:
包路径:org.eclipse.persistence.exceptions.QueryException
类名称:QueryException
方法名:readBeyondStream
暂无
代码示例来源: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/org.eclipse.persistence.core
/**
* PUBLIC:
* This method differs slightly from conventional read() operation on a Java stream. This
* method return the next object in the collection rather than specifying the number of
* bytes to be read in.
*
* Return the next object from the collection, if beyond the read limit read from the cursor
* @return - next object in stream
* @throws DatabaseException if read pass end of stream
*/
public Object read() throws DatabaseException, QueryException {
// CR#2571. If no more objects in collection get next page.
if (this.objectCollection.size() == this.position) {
retrieveNextPage();
}
if (atEnd()) {
throw QueryException.readBeyondStream(this.query);
}
Object object = this.objectCollection.get(this.position);
this.position = this.position + 1;
return object;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* PUBLIC:
* This method differs slightly from conventional read() operation on a Java stream. This
* method return the next object in the collection rather than specifying the number of
* bytes to be read in.
*
* Return the next object from the collection, if beyond the read limit read from the cursor
* @return - next object in stream
* @throws DatabaseException if read pass end of stream
*/
public Object read() throws DatabaseException, QueryException {
// CR#2571. If no more objects in collection get next page.
if (this.objectCollection.size() == this.position) {
retrieveNextPage();
}
if (atEnd()) {
throw QueryException.readBeyondStream(this.query);
}
Object object = this.objectCollection.get(this.position);
this.position = this.position + 1;
return object;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* PUBLIC:
* Return the previous object from the collection.
*
* @return - previous object in stream
* @throws DatabaseException if read pass first of stream
*/
public Object previous() throws DatabaseException, QueryException {
loadPrevious();
if (this.previousObject == null) {
throw QueryException.readBeyondStream(this.query);
}
Object previous = this.previousObject;
clearNextAndPreviousObject();
return previous;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* PUBLIC:
* Return the previous object from the collection.
*
* @return - previous object in stream
* @throws DatabaseException if read pass first of stream
*/
public Object previous() throws DatabaseException, QueryException {
loadPrevious();
if (this.previousObject == null) {
throw QueryException.readBeyondStream(this.query);
}
Object previous = this.previousObject;
clearNextAndPreviousObject();
return previous;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* PUBLIC:
* This method differs slightly from conventional read() operation on a Java stream. This
* method return the next object in the collection rather than specifying the number of
* bytes to be read in.
*
* Return the next object from the collection, if beyond the read limit read from the cursor
* @return - next object in stream
* @throws DatabaseException if read pass end of stream
*/
public Object next() throws DatabaseException, QueryException {
loadNext();
if (this.nextObject == null) {
throw QueryException.readBeyondStream(this.query);
}
Object next = this.nextObject;
clearNextAndPreviousObject();
return next;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* PUBLIC:
* This method differs slightly from conventional read() operation on a Java stream. This
* method return the next object in the collection rather than specifying the number of
* bytes to be read in.
*
* Return the next object from the collection, if beyond the read limit read from the cursor
* @return - next object in stream
* @throws DatabaseException if read pass end of stream
*/
public Object next() throws DatabaseException, QueryException {
loadNext();
if (this.nextObject == null) {
throw QueryException.readBeyondStream(this.query);
}
Object next = this.nextObject;
clearNextAndPreviousObject();
return next;
}
代码示例来源: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:
* Return the previous object from the collection.
*
* @return - previous object in stream
* @exception - throws exception if read pass first of stream
*/
public Object previous() throws DatabaseException, QueryException {
// CR#4139
loadPrevious();
if (getPreviousObject() == null) {
throw QueryException.readBeyondStream(getQuery());
}
Object previous = getPreviousObject();
clearNextAndPrevious();
return previous;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* PUBLIC:
* This method differs slightly from conventinal read() operation on a Java stream. This
* method return the next object in the collection rather than specifying the number of
* bytes to be read in.
*
* Return the next object from the collection, if beyond the read limit read from the cursor
* @return - next object in stream
* @exception - throws exception if read pass end of stream
*/
public Object next() throws DatabaseException, QueryException {
loadNext();
if (getNextObject() == null) {
throw QueryException.readBeyondStream(getQuery());
}
Object next = getNextObject();
clearNextAndPrevious();
return next;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* PUBLIC:
* This method differs slightly from conventional read() operation on a Java stream. This
* method return the next object in the collection rather than specifying the number of
* bytes to be read in.
*
* Return the next object from the collection, if beyond the read limit read from the cursor
* @return - next object in stream
* @exception - throws exception if read pass end of stream
*/
public Object read() throws DatabaseException, QueryException {
// CR#2571. If no more objects in collection get next page.
if (getObjectCollection().size() == getPosition()) {
retrieveNextPage();
}
if (atEnd()) {
throw QueryException.readBeyondStream(getQuery());
}
Object object = getObjectCollection().elementAt(getPosition());
setPosition(getPosition() + 1);
return object;
}
内容来源于网络,如有侵权,请联系作者删除!