
com.querydsl.jdo.AbstractJDOQuery Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.querydsl.jdo;
import java.io.Closeable;
import java.io.IOException;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Stream;
import org.jetbrains.annotations.Nullable;
import javax.jdo.JDOUserException;
import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import com.mysema.commons.lang.CloseableIterator;
import com.mysema.commons.lang.IteratorAdapter;
import com.querydsl.core.*;
import com.querydsl.core.support.FetchableSubQueryBase;
import com.querydsl.core.types.*;
/**
* Abstract base class for custom implementations of the {@link JDOQLQuery} interface.
*
* @author tiwe
*
* @param result type
* @param concrete subclass
*/
public abstract class AbstractJDOQuery> extends FetchableSubQueryBase implements JDOQLQuery {
private static final Logger logger = Logger.getLogger(JDOQuery.class.getName());
private final Closeable closeable = new Closeable() {
@Override
public void close() throws IOException {
AbstractJDOQuery.this.close();
}
};
private final boolean detach;
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy