<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry exported="true" kind="lib" path="lib/activation-1.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="lib/antlr-2.7.7.jar"/>
<classpathentry exported="true" kind="lib" path="lib/aopalliance-1.0.jar"/>
public final IWorkingSetService getWorkingSetService(){\r
return configuration.getWorkingSetService();\r
}\r
- \r
-// public final Object getBean(String name){\r
-// return this.applicationContext.getBean(name);\r
-// }\r
\r
- @Override\r
- public IDatabaseService getDatabaseService() {\r
- return configuration.getDatabaseService();\r
- }\r
\r
@Override\r
public ProviderManager getAuthenticationManager() {\r
+
+
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* @author Gavin King
*/
public abstract class AbstractPersistentCollection implements Serializable, PersistentCollection {
- private static final long serialVersionUID = -7238232378593030571L;
private static final Logger log = Logger.getLogger( AbstractPersistentCollection.class );
+ private static final long serialVersionUID = -7238232378593030571L;
+
private transient SessionImplementor session;
private boolean initialized;
private transient List<DelayedOperation> operationQueue;
return true;
}
else {
-// boolean isExtraLazy = withTemporarySessionIfNeeded(
-// new LazyInitializationWork<Boolean>() {
-// @Override
-// public Boolean doWork() {
-// CollectionEntry entry = session.getPersistenceContext().getCollectionEntry( AbstractPersistentCollection.this );
-//
-// if ( entry != null ) {
-// CollectionPersister persister = entry.getLoadedPersister();
-// if ( persister.isExtraLazy() ) {
-// if ( hasQueuedOperations() ) {
-// session.flush();
-// }
-// cachedSize = persister.getSize( entry.getLoadedKey(), session );
-// return true;
-// }
-// else {
-// read();
-// }
-// }
-// else{
-// throwLazyInitializationExceptionIfNotConnected();
-// }
-// return false;
- read();
- return true;
-// }
-// }
-// );
-// if ( isExtraLazy ) {
-// return true;
-// }
+ boolean isExtraLazy = withTemporarySessionIfNeeded(
+ new LazyInitializationWork<Boolean>() {
+ @Override
+ public Boolean doWork() {
+ CollectionEntry entry = session.getPersistenceContext().getCollectionEntry( AbstractPersistentCollection.this );
+
+ if ( entry != null ) {
+ CollectionPersister persister = entry.getLoadedPersister();
+ if ( persister.isExtraLazy() ) {
+ if ( hasQueuedOperations() ) {
+ session.flush();
+ }
+ cachedSize = persister.getSize( entry.getLoadedKey(), session );
+ return true;
+ }
+ else {
+ read();
+ }
+ }
+ else{
+ throwLazyInitializationExceptionIfNotConnected();
+ }
+ return false;
+ }
+ }
+ );
+ if ( isExtraLazy ) {
+ return true;
+ }
}
}
return false;
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">\r
-\r
- <context:spring-configured />\r
+ \r
+ <!-- Remoting Aspect -->\r
+ <!--context:spring-configured />\r
<bean id="cdmlazyLoader" class="eu.etaxonomy.cdm.api.lazyloading.CdmLazyLoader"\r
- factory-method="aspectOf" />\r
- <!-- <import resource="classpath:/eu/etaxonomy/cdm/services.xml"/> -->\r
- <!--import resource="classpath:/eu/etaxonomy/cdm/defaultSecurityContext.xml"/> -->\r
+ factory-method="aspectOf" /--> \r
+\r
<import resource="classpath:/eu/etaxonomy/cdm/remoting_services_security.xml"/> \r
- <!-- <import resource="classpath:/eu/etaxonomy/cdm/spelling.xml"/> -->\r
\r
- <!-- includes service beans e.g. in eu/etaxonomy/cdm/api -->\r
- <!-- Services are defined in httpInvokerServiceClients.xml, component-scan is not needed. -->\r
- <!-- \r
- <context:component-scan base-package="eu/etaxonomy/cdm/api/service">\r
- </context:component-scan>\r
- -->\r
- \r
<import resource="classpath:/eu/etaxonomy/cdm/httpInvokerServiceClients.xml"/>\r
\r
<context:component-scan base-package="eu/etaxonomy/cdm/api/application">\r