本文整理了Java中org.eclipse.persistence.internal.helper.Helper.addAllToVector()
方法的一些代码示例,展示了Helper.addAllToVector()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.addAllToVector()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:addAllToVector
暂无
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* INTERNAL:
* Execute a selecting call.
* @exception DatabaseException - an error has occurred on the database
*/
public Vector executeSelectCall() throws DatabaseException {
if (hasMultipleCalls()) {
Vector results = new Vector();
for (Enumeration callsEnum = getCalls().elements(); callsEnum.hasMoreElements();) {
DatasourceCall databseCall = (DatasourceCall)callsEnum.nextElement();
Helper.addAllToVector(results, (Vector)executeCall(databseCall));
}
return results;
} else {
return (Vector)executeCall();
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
* Execute a selecting call.
* @exception DatabaseException - an error has occurred on the database
*/
public Vector executeSelectCall() throws DatabaseException {
if (hasMultipleCalls()) {
Vector results = new Vector();
for (Enumeration callsEnum = getCalls().elements(); callsEnum.hasMoreElements();) {
DatasourceCall databseCall = (DatasourceCall)callsEnum.nextElement();
Helper.addAllToVector(results, (Vector)executeCall(databseCall));
}
return results;
} else {
return (Vector)executeCall();
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* INTERNAL:
* Execute a selecting call.
* @exception DatabaseException - an error has occurred on the database
*/
public Vector executeSelectCall() throws DatabaseException {
if (hasMultipleCalls()) {
Vector results = new Vector();
for (Enumeration callsEnum = getCalls().elements(); callsEnum.hasMoreElements();) {
DatasourceCall databseCall = (DatasourceCall)callsEnum.nextElement();
Helper.addAllToVector(results, (Vector)executeCall(databseCall));
}
return results;
} else {
return (Vector)executeCall();
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Add all owned classes for each descriptor through checking the mappings.
* If I have a foreign mapping with a constraint dependency, then add it
* If I'm related to a class, I'm related to all its subclasses and superclasses.
* If my superclass is related to a class, I'm related to it.
*/
public void recordSpecifiedDependencies() {
for (Enumeration constraintsEnum = getDescriptor().getConstraintDependencies().elements();
constraintsEnum.hasMoreElements();) {
Class ownedClass = (Class)constraintsEnum.nextElement();
CommitOrderDependencyNode node = getOwner().nodeFor(ownedClass);
Vector ownedNodes = withAllSubclasses(node);
// I could remove duplicates here, but it's not that big a deal.
Helper.addAllToVector(relatedNodes, ownedNodes);
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* Add all owned classes for each descriptor through checking the mappings.
* If I have a foreign mapping with a constraint dependency, then add it
* If I'm related to a class, I'm related to all its subclasses and superclasses.
* If my superclass is related to a class, I'm related to it.
*/
public void recordSpecifiedDependencies() {
for (Enumeration constraintsEnum = getDescriptor().getConstraintDependencies().elements();
constraintsEnum.hasMoreElements();) {
Class ownedClass = (Class)constraintsEnum.nextElement();
CommitOrderDependencyNode node = getOwner().nodeFor(ownedClass);
Vector ownedNodes = withAllSubclasses(node);
// I could remove duplicates here, but it's not that big a deal.
Helper.addAllToVector(relatedNodes, ownedNodes);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* Add all owned classes for each descriptor through checking the mappings.
* If I have a foreign mapping with a constraint dependency, then add it
* If I'm related to a class, I'm related to all its subclasses and superclasses.
* If my superclass is related to a class, I'm related to it.
*/
public void recordSpecifiedDependencies() {
for (Enumeration constraintsEnum = getDescriptor().getConstraintDependencies().elements();
constraintsEnum.hasMoreElements();) {
Class ownedClass = (Class)constraintsEnum.nextElement();
CommitOrderDependencyNode node = getOwner().nodeFor(ownedClass);
Vector ownedNodes = withAllSubclasses(node);
// I could remove duplicates here, but it's not that big a deal.
Helper.addAllToVector(relatedNodes, ownedNodes);
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
Helper.addAllToVector(fields, owner.getJoinedAttributeManager().getJoinedAttributeExpressions());
Helper.addAllToVector(fields, owner.getJoinedAttributeManager().getJoinedMappingExpressions());
Helper.addAllToVector(fields, owner.getAdditionalFields());
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Read the next page of objects from the server.
*/
protected Object retrieveNextPage() throws DatabaseException {
if (isClosed()) {
return null;
}
Vector nextPageObjects = (((RemoteSession)getSession()).getRemoteConnection()).cursoredStreamNextPage(this, getPolicy().getQuery(), (RemoteSession)getSession(), getPageSize());
if ((nextPageObjects == null) || nextPageObjects.isEmpty()) {
return null;
}
Helper.addAllToVector(getObjectCollection(), nextPageObjects);
return getObjectCollection().lastElement();
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
addSelectionFieldsForJoinedExpressions(fields, getJoinedAttributeManager().getJoinedMappingExpressions());
}else{
Helper.addAllToVector(fields, getJoinedAttributeManager().getJoinedAttributeExpressions());
Helper.addAllToVector(fields, getJoinedAttributeManager().getJoinedMappingExpressions());
Helper.addAllToVector(fields, getAdditionalFields());
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* INTERNAL:
* Return the fields selected by the query.
* This includes the partial or joined fields.
* This is only used for custom SQL executions.
*/
public Vector getSelectionFields() {
if (hasPartialAttributeExpressions()) {
return getPartialAttributeSelectionFields(true);
} else if (hasFetchGroup()) {
return getFetchGroupSelectionFields(true);
} else if (hasJoining()) {
JoinedAttributeManager joinManager = getJoinedAttributeManager();
Vector fields = NonSynchronizedVector.newInstance(getDescriptor().getAllFields().size() + joinManager.getJoinedAttributeExpressions().size() + joinManager.getJoinedMappingExpressions().size());
Helper.addAllToVector(fields, getDescriptor().getAllFields());
addSelectionFieldsForJoinedExpressions(fields, joinManager.getJoinedAttributeExpressions());
addSelectionFieldsForJoinedExpressions(fields, joinManager.getJoinedMappingExpressions());
return fields;
}
return getDescriptor().getAllFields();
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
Helper.addAllToVector(relatedNodes, ownedNodes);
} else if (((ForeignReferenceMapping)mapping).hasInverseConstraintDependency()) {
Class ownerClass;
Helper.addAllToVector(ownerNode.getRelatedNodes(), ownedNodes);
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
Helper.addAllToVector(relatedNodes, ownedNodes);
} else if (((ForeignReferenceMapping)mapping).hasInverseConstraintDependency()) {
Class ownerClass;
Helper.addAllToVector(ownerNode.getRelatedNodes(), ownedNodes);
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
Helper.addAllToVector(relatedNodes, ownedNodes);
} else if (((ForeignReferenceMapping)mapping).hasInverseConstraintDependency()) {
Class ownerClass;
Helper.addAllToVector(ownerNode.getRelatedNodes(), ownedNodes);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
Helper.addAllToVector(batchQuery.getBatchReadAttributeExpressions(), nestedExpressions);
内容来源于网络,如有侵权,请联系作者删除!