Project

General

Profile

« Previous | Next » 

Revision 78716654

Added by Andreas Müller over 3 years ago

ref #9204 uncritical minor final changes to AbstractPersistentCollection

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/hibernate/collection/internal/AbstractPersistentCollection.java
1

  
2

  
3 1
/*
4 2
 * Hibernate, Relational Persistence for Idiomatic Java
5 3
 *
6
 * Copyright (c) 2008-2011, Red Hat Inc. or third-party contributors as
7
 * indicated by the @author tags or express copyright attribution
8
 * statements applied by the authors.  All third-party contributions are
9
 * distributed under license by Red Hat Inc.
10
 *
11
 * This copyrighted material is made available to anyone wishing to use, modify,
12
 * copy, or redistribute it subject to the terms and conditions of the GNU
13
 * Lesser General Public License, as published by the Free Software Foundation.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
18
 * for more details.
19
 *
20
 * You should have received a copy of the GNU Lesser General Public License
21
 * along with this distribution; if not, write to:
22
 * Free Software Foundation, Inc.
23
 * 51 Franklin Street, Fifth Floor
24
 * Boston, MA  02110-1301  USA
4
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
5
 * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
25 6
 */
26 7
package org.hibernate.collection.internal;
27 8

  
......
36 17
import java.util.ListIterator;
37 18
import java.util.Map;
38 19

  
39
import javax.naming.NamingException;
40

  
41 20
import org.hibernate.AssertionFailure;
42
import org.hibernate.FlushMode;
43 21
import org.hibernate.HibernateException;
44 22
import org.hibernate.LazyInitializationException;
45 23
import org.hibernate.Session;
46
import org.hibernate.collection.internal.AbstractPersistentCollection.DelayedOperation;
47
import org.hibernate.collection.internal.AbstractPersistentCollection.IteratorProxy;
48
import org.hibernate.collection.internal.AbstractPersistentCollection.LazyInitializationWork;
49
import org.hibernate.collection.internal.AbstractPersistentCollection.ListIteratorProxy;
50
import org.hibernate.collection.internal.AbstractPersistentCollection.ValueDelayedOperation;
51 24
import org.hibernate.collection.spi.PersistentCollection;
52 25
import org.hibernate.engine.internal.ForeignKeys;
53 26
import org.hibernate.engine.spi.CollectionEntry;
......
73 46
import org.hibernate.type.Type;
74 47
import org.hibernate.type.UUIDBinaryType;
75 48
import org.hibernate.type.UUIDCharType;
76
import org.jboss.logging.Logger;
77 49

  
78 50
import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteConfiguration;
79 51
import eu.etaxonomy.cdm.cache.ProxyUtils;
......
206 178
				if(session == null && remoting) {
207 179
					LOG.info("--> readSize, of " + getRole() + " with key " + getKey());
208 180
					read();
209
				} else {
181
				} else {  //keep formatting to ease update to newer hibernate version
210 182
				final boolean isExtraLazy = withTemporarySessionIfNeeded(
211 183
						new LazyInitializationWork<Boolean>() {
212 184
							@Override
......
350 322
			if(session == null && remoting) {
351 323
				LOG.info("--> readIndexExistence, of " + getRole() + " with key " + getKey());
352 324
				read();
353
			} else {
325
			} else {  //keep formatting to ease update to newer hibernate version
354 326
			final Boolean extraLazyExistenceCheck = withTemporarySessionIfNeeded(
355 327
					new LazyInitializationWork<Boolean>() {
356 328
						@Override
......
386 358
				LOG.info("--> readElementExistence, of " + getRole() + " with key " + getKey());
387 359
				read();
388 360

  
389
			} else {
361
			} else {  //keep formatting to ease update to newer hibernate version
390 362
			final Boolean extraLazyExistenceCheck = withTemporarySessionIfNeeded(
391 363
					new LazyInitializationWork<Boolean>() {
392 364
						@Override
......
424 396
				LOG.info("--> readElementByIndex, of " + getRole() + " with key " + getKey());
425 397
				read();
426 398

  
427
			} else {
399
			} else {  //keep formatting to ease update to newer hibernate version
428 400
			class ExtraLazyElementByIndexReader implements LazyInitializationWork {
429 401
				private boolean isExtraLazy;
430 402
				private Object element;

Also available in: Unified diff