cleanup; source headers
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14231 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
dd9310207b
commit
783cc27c31
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
|
@ -44,7 +52,6 @@ import org.hibernate.cache.jbc2.util.NonLockingDataVersion;
|
||||||
* General support for writing {@link Region} implementations for JBoss Cache
|
* General support for writing {@link Region} implementations for JBoss Cache
|
||||||
* 2.x.
|
* 2.x.
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@CacheListener
|
@CacheListener
|
||||||
|
@ -81,7 +88,7 @@ public abstract class BasicRegionAdapter implements Region {
|
||||||
classLoader = getClass().getClassLoader();
|
classLoader = getClass().getClassLoader();
|
||||||
}
|
}
|
||||||
jbcRegion.registerContextClassLoader(classLoader);
|
jbcRegion.registerContextClassLoader(classLoader);
|
||||||
if (jbcRegion.isActive() == false) {
|
if ( !jbcRegion.isActive() ) {
|
||||||
jbcRegion.activate();
|
jbcRegion.activate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -105,7 +112,7 @@ public abstract class BasicRegionAdapter implements Region {
|
||||||
}
|
}
|
||||||
else if (optimistic && regionRoot instanceof NodeSPI) {
|
else if (optimistic && regionRoot instanceof NodeSPI) {
|
||||||
// FIXME Hacky workaround to JBCACHE-1202
|
// FIXME Hacky workaround to JBCACHE-1202
|
||||||
if ((((NodeSPI) regionRoot).getVersion() instanceof NonLockingDataVersion) == false) {
|
if ( !( ( ( NodeSPI ) regionRoot ).getVersion() instanceof NonLockingDataVersion ) ) {
|
||||||
((NodeSPI) regionRoot).setVersion(NonLockingDataVersion.INSTANCE);
|
((NodeSPI) regionRoot).setVersion(NonLockingDataVersion.INSTANCE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,10 +218,11 @@ public abstract class BasicRegionAdapter implements Region {
|
||||||
* {@link #suspend suspending any ongoing transaction}. Wraps any exception
|
* {@link #suspend suspending any ongoing transaction}. Wraps any exception
|
||||||
* in a {@link CacheException}. Ensures any ongoing transaction is resumed.
|
* in a {@link CacheException}. Ensures any ongoing transaction is resumed.
|
||||||
*
|
*
|
||||||
* @param key
|
* @param key The key of the item to get
|
||||||
* @param opt any option to add to the get invocation. May be <code>null</code>
|
* @param opt any option to add to the get invocation. May be <code>null</code>
|
||||||
* @param suppressTimeout should any TimeoutException be suppressed?
|
* @param suppressTimeout should any TimeoutException be suppressed?
|
||||||
* @return
|
* @return The retrieved object
|
||||||
|
* @throws CacheException issue managing transaction or talking to cache
|
||||||
*/
|
*/
|
||||||
protected Object suspendAndGet(Object key, Option opt, boolean suppressTimeout) throws CacheException {
|
protected Object suspendAndGet(Object key, Option opt, boolean suppressTimeout) throws CacheException {
|
||||||
Transaction tx = suspend();
|
Transaction tx = suspend();
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
|
@ -35,8 +43,6 @@ import org.hibernate.cfg.Settings;
|
||||||
import org.hibernate.util.PropertiesHelper;
|
import org.hibernate.util.PropertiesHelper;
|
||||||
import org.jboss.cache.DefaultCacheFactory;
|
import org.jboss.cache.DefaultCacheFactory;
|
||||||
|
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link RegionFactory} that uses one or more JBoss Cache instances for
|
* {@link RegionFactory} that uses one or more JBoss Cache instances for
|
||||||
* caching entities, collections, queries and timestamps. How the factory
|
* caching entities, collections, queries and timestamps. How the factory
|
||||||
|
@ -66,7 +72,7 @@ public class JBossCacheRegionFactory implements RegionFactory {
|
||||||
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
||||||
* should not be necessary.
|
* should not be necessary.
|
||||||
*
|
*
|
||||||
* @param props
|
* @param props The configuration properties
|
||||||
*/
|
*/
|
||||||
public JBossCacheRegionFactory(Properties props) {
|
public JBossCacheRegionFactory(Properties props) {
|
||||||
this();
|
this();
|
||||||
|
@ -82,7 +88,7 @@ public class JBossCacheRegionFactory implements RegionFactory {
|
||||||
* Create a new JBossCacheRegionFactory that uses the provided
|
* Create a new JBossCacheRegionFactory that uses the provided
|
||||||
* {@link CacheInstanceManager}.
|
* {@link CacheInstanceManager}.
|
||||||
*
|
*
|
||||||
* @param cacheInstanceManager
|
* @param cacheInstanceManager The contract for how we get JBC cache instances.
|
||||||
*/
|
*/
|
||||||
public JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager) {
|
public JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager) {
|
||||||
this.cacheInstanceManager = cacheInstanceManager;
|
this.cacheInstanceManager = cacheInstanceManager;
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -44,7 +51,7 @@ public class JndiMultiplexedJBossCacheRegionFactory extends JBossCacheRegionFact
|
||||||
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
||||||
* should not be necessary.
|
* should not be necessary.
|
||||||
*
|
*
|
||||||
* @param props
|
* @param props The configuration properties
|
||||||
*/
|
*/
|
||||||
public JndiMultiplexedJBossCacheRegionFactory(Properties props) {
|
public JndiMultiplexedJBossCacheRegionFactory(Properties props) {
|
||||||
this();
|
this();
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -40,7 +47,7 @@ public class JndiSharedJBossCacheRegionFactory extends JBossCacheRegionFactory {
|
||||||
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
||||||
* should not be necessary.
|
* should not be necessary.
|
||||||
*
|
*
|
||||||
* @param props
|
* @param props The configuration properties
|
||||||
*/
|
*/
|
||||||
public JndiSharedJBossCacheRegionFactory(Properties props) {
|
public JndiSharedJBossCacheRegionFactory(Properties props) {
|
||||||
this();
|
this();
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -44,7 +51,7 @@ public class MultiplexedJBossCacheRegionFactory extends JBossCacheRegionFactory
|
||||||
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
||||||
* should not be necessary.
|
* should not be necessary.
|
||||||
*
|
*
|
||||||
* @param props
|
* @param props The configuration properties
|
||||||
*/
|
*/
|
||||||
public MultiplexedJBossCacheRegionFactory(Properties props) {
|
public MultiplexedJBossCacheRegionFactory(Properties props) {
|
||||||
this();
|
this();
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -43,7 +50,7 @@ public class SharedJBossCacheRegionFactory extends JBossCacheRegionFactory {
|
||||||
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
* FIXME Per the RegionFactory class Javadoc, this constructor version
|
||||||
* should not be necessary.
|
* should not be necessary.
|
||||||
*
|
*
|
||||||
* @param props
|
* @param props The configuration properties
|
||||||
*/
|
*/
|
||||||
public SharedJBossCacheRegionFactory(Properties props) {
|
public SharedJBossCacheRegionFactory(Properties props) {
|
||||||
this();
|
this();
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2;
|
package org.hibernate.cache.jbc2;
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.access;
|
package org.hibernate.cache.jbc2.access;
|
||||||
|
|
||||||
import org.hibernate.cache.CacheDataDescription;
|
import org.hibernate.cache.CacheDataDescription;
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.access;
|
package org.hibernate.cache.jbc2.access;
|
||||||
|
|
||||||
|
@ -45,7 +53,6 @@ public class TransactionalAccessDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object get(Object key, long txTimestamp) throws CacheException {
|
public Object get(Object key, long txTimestamp) throws CacheException {
|
||||||
|
|
||||||
return CacheHelper.get(cache, regionFqn, key);
|
return CacheHelper.get(cache, regionFqn, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.builder;
|
package org.hibernate.cache.jbc2.builder;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.builder;
|
package org.hibernate.cache.jbc2.builder;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.builder;
|
package org.hibernate.cache.jbc2.builder;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.builder;
|
package org.hibernate.cache.jbc2.builder;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.builder;
|
package org.hibernate.cache.jbc2.builder;
|
||||||
|
|
||||||
|
@ -150,53 +158,66 @@ public class MultiplexingCacheInstanceManager implements CacheInstanceManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new MultiplexingCacheInstanceManager using the provided
|
* Create a new MultiplexingCacheInstanceManager using the provided {@link Cache}s.
|
||||||
* {@link Cache}s.
|
* <p/>
|
||||||
* <p>
|
|
||||||
* If this constructor is used, the {@link #start(Settings, Properties)}
|
* If this constructor is used, the {@link #start(Settings, Properties)}
|
||||||
* method will make no attempt to create a cache factory or obtain caches
|
* method will make no attempt to create a cache factory or obtain caches
|
||||||
* from it. Only the <code>Cache</code>s passed as arguments to this
|
* from it. Only the <code>Cache</code>s passed as arguments to this
|
||||||
* constructor will be available.
|
* constructor will be available.
|
||||||
* </p>
|
*
|
||||||
*
|
* @param jbcEntityCache The entity cache
|
||||||
|
* @param jbcCollectionCache the collection cache
|
||||||
|
* @param jbcTsCache The timestamps cache
|
||||||
|
* @param jbcQueryCache The query cache
|
||||||
*/
|
*/
|
||||||
public MultiplexingCacheInstanceManager(Cache jbcEntityCache, Cache jbcCollectionCache,
|
public MultiplexingCacheInstanceManager(
|
||||||
Cache jbcTsCache, Cache jbcQueryCache) {
|
Cache jbcEntityCache,
|
||||||
|
Cache jbcCollectionCache,
|
||||||
|
Cache jbcTsCache,
|
||||||
|
Cache jbcQueryCache) {
|
||||||
this.jbcEntityCache = jbcEntityCache;
|
this.jbcEntityCache = jbcEntityCache;
|
||||||
this.jbcCollectionCache = jbcCollectionCache;
|
this.jbcCollectionCache = jbcCollectionCache;
|
||||||
this.jbcTsCache = jbcTsCache;
|
this.jbcTsCache = jbcTsCache;
|
||||||
this.jbcQueryCache = jbcQueryCache;
|
this.jbcQueryCache = jbcQueryCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the cache factory.
|
* Getter for property 'cacheFactory'.
|
||||||
*/
|
* @see #setCacheFactory
|
||||||
public JBossCacheFactory getCacheFactory() {
|
*
|
||||||
|
* @return Value for property 'cacheFactory'.
|
||||||
|
*/
|
||||||
|
public JBossCacheFactory getCacheFactory() {
|
||||||
return jbcFactory;
|
return jbcFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the cache factory.
|
* Setter for property 'cacheFactory'.
|
||||||
* @param cacheFactory the cache factory
|
* @see #getCacheFactory
|
||||||
*/
|
*
|
||||||
public void setCacheFactory(JBossCacheFactory factory) {
|
* @param factory Value to set for property 'cacheFactory'.
|
||||||
|
*/
|
||||||
|
public void setCacheFactory(JBossCacheFactory factory) {
|
||||||
this.jbcFactory = factory;
|
this.jbcFactory = factory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the channel factory.
|
* Getter for property 'channelFactory'.
|
||||||
*/
|
* @see #setChannelFactory
|
||||||
public ChannelFactory getChannelFactory() {
|
*
|
||||||
|
* @return Value for property 'channelFactory'.
|
||||||
|
*/
|
||||||
|
public ChannelFactory getChannelFactory() {
|
||||||
return channelFactory;
|
return channelFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the channel factory.
|
* Setter for property 'channelFactory'.
|
||||||
*
|
* @see #getChannelFactory
|
||||||
* @param factory the channel factory
|
*
|
||||||
*/
|
* @param factory Value to set for property 'channelFactory'.
|
||||||
public void setChannelFactory(ChannelFactory factory) {
|
*/
|
||||||
|
public void setChannelFactory(ChannelFactory factory) {
|
||||||
this.channelFactory = factory;
|
this.channelFactory = factory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.builder;
|
package org.hibernate.cache.jbc2.builder;
|
||||||
|
|
||||||
|
@ -174,10 +182,10 @@ public class SharedCacheInstanceManager implements CacheInstanceManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a cache using the given settings and properties.
|
* Create a cache using the given settings and properties.
|
||||||
*
|
*
|
||||||
* @param settings
|
* @param settings The Hibernate settings
|
||||||
* @param properties
|
* @param properties The configuration properties
|
||||||
* @return
|
* @return The created cache
|
||||||
*/
|
*/
|
||||||
protected Cache createSharedCache(Settings settings, Properties properties)
|
protected Cache createSharedCache(Settings settings, Properties properties)
|
||||||
{
|
{
|
||||||
|
@ -189,9 +197,9 @@ public class SharedCacheInstanceManager implements CacheInstanceManager {
|
||||||
* Injects the TransactionManager found via {@link Settings#getTransactionManagerLookup()}
|
* Injects the TransactionManager found via {@link Settings#getTransactionManagerLookup()}
|
||||||
* into the cache.
|
* into the cache.
|
||||||
*
|
*
|
||||||
* @param cache
|
* @param cache The cache instance
|
||||||
* @param settings
|
* @param settings The Hibernate settings
|
||||||
* @param properties
|
* @param properties The configuration properties
|
||||||
*
|
*
|
||||||
* @throws CacheException if <code>cache</code> is already started and is
|
* @throws CacheException if <code>cache</code> is already started and is
|
||||||
* configured with a different TransactionManager
|
* configured with a different TransactionManager
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.collection;
|
package org.hibernate.cache.jbc2.collection;
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.collection;
|
package org.hibernate.cache.jbc2.collection;
|
||||||
|
|
||||||
import org.hibernate.cache.CacheException;
|
import org.hibernate.cache.CacheException;
|
||||||
|
@ -36,7 +43,7 @@ public class OptimisticReadOnlyAccess extends OptimisticTransactionalAccess {
|
||||||
/**
|
/**
|
||||||
* Create a new OptimisticReadOnlyAccess.
|
* Create a new OptimisticReadOnlyAccess.
|
||||||
*
|
*
|
||||||
* @param region
|
* @param region The region to which this is providing access
|
||||||
*/
|
*/
|
||||||
public OptimisticReadOnlyAccess(CollectionRegionImpl region) {
|
public OptimisticReadOnlyAccess(CollectionRegionImpl region) {
|
||||||
super(region);
|
super(region);
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.collection;
|
package org.hibernate.cache.jbc2.collection;
|
||||||
|
|
||||||
import org.hibernate.cache.jbc2.access.OptimisticTransactionalAccessDelegate;
|
import org.hibernate.cache.jbc2.access.OptimisticTransactionalAccessDelegate;
|
||||||
|
@ -30,7 +37,7 @@ public class OptimisticTransactionalAccess extends TransactionalAccess {
|
||||||
/**
|
/**
|
||||||
* Create a new OptimisticTransactionalAccess.
|
* Create a new OptimisticTransactionalAccess.
|
||||||
*
|
*
|
||||||
* @param region
|
* @param region The region to which this is providing access
|
||||||
*/
|
*/
|
||||||
public OptimisticTransactionalAccess(CollectionRegionImpl region) {
|
public OptimisticTransactionalAccess(CollectionRegionImpl region) {
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.collection;
|
package org.hibernate.cache.jbc2.collection;
|
||||||
|
|
||||||
|
@ -32,26 +40,43 @@ import org.hibernate.cache.CacheException;
|
||||||
public class ReadOnlyAccess extends TransactionalAccess {
|
public class ReadOnlyAccess extends TransactionalAccess {
|
||||||
private static final Logger log = LoggerFactory.getLogger(ReadOnlyAccess.class);
|
private static final Logger log = LoggerFactory.getLogger(ReadOnlyAccess.class);
|
||||||
|
|
||||||
public ReadOnlyAccess(CollectionRegionImpl region) {
|
/**
|
||||||
|
* Create a provider of read-only access to the specific region.
|
||||||
|
*
|
||||||
|
* @param region The region to which this provides access.
|
||||||
|
*/
|
||||||
|
public ReadOnlyAccess(CollectionRegionImpl region) {
|
||||||
super(region);
|
super(region);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
public SoftLock lockItem(Object key, Object version) throws CacheException {
|
public SoftLock lockItem(Object key, Object version) throws CacheException {
|
||||||
throw new UnsupportedOperationException("Illegal attempt to edit read only item");
|
throw new UnsupportedOperationException("Illegal attempt to edit read only item");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
public SoftLock lockRegion() throws CacheException {
|
public SoftLock lockRegion() throws CacheException {
|
||||||
throw new UnsupportedOperationException("Illegal attempt to edit read only region");
|
throw new UnsupportedOperationException("Illegal attempt to edit read only region");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
public void unlockItem(Object key, SoftLock lock) throws CacheException {
|
public void unlockItem(Object key, SoftLock lock) throws CacheException {
|
||||||
log.error("Illegal attempt to edit read only item");
|
log.error("Illegal attempt to edit read only item");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
public void unlockRegion(SoftLock lock) throws CacheException {
|
public void unlockRegion(SoftLock lock) throws CacheException {
|
||||||
log.error("Illegal attempt to edit read only region");
|
log.error("Illegal attempt to edit read only region");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.collection;
|
package org.hibernate.cache.jbc2.collection;
|
||||||
|
|
||||||
|
@ -41,7 +49,7 @@ public class TransactionalAccess implements CollectionRegionAccessStrategy {
|
||||||
/**
|
/**
|
||||||
* Create a new TransactionalAccess.
|
* Create a new TransactionalAccess.
|
||||||
*
|
*
|
||||||
* @param region
|
* @param region the region to which this provides access
|
||||||
*/
|
*/
|
||||||
public TransactionalAccess(CollectionRegionImpl region) {
|
public TransactionalAccess(CollectionRegionImpl region) {
|
||||||
this(region, new TransactionalAccessDelegate(region.getCacheInstance(), region.getRegionFqn()));
|
this(region, new TransactionalAccessDelegate(region.getCacheInstance(), region.getRegionFqn()));
|
||||||
|
@ -49,66 +57,99 @@ public class TransactionalAccess implements CollectionRegionAccessStrategy {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow subclasses to define the delegate.
|
* Allow subclasses to define the delegate.
|
||||||
*
|
*
|
||||||
* @param region
|
* @param region the region to which this provides access
|
||||||
* @param delegate
|
* @param delegate type of transactional access
|
||||||
*/
|
*/
|
||||||
protected TransactionalAccess(CollectionRegionImpl region, TransactionalAccessDelegate delegate) {
|
protected TransactionalAccess(CollectionRegionImpl region, TransactionalAccessDelegate delegate) {
|
||||||
this.region = region;
|
this.region = region;
|
||||||
this.delegate = delegate;
|
this.delegate = delegate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CollectionRegion getRegion() {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public CollectionRegion getRegion() {
|
||||||
return region;
|
return region;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object get(Object key, long txTimestamp) throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public Object get(Object key, long txTimestamp) throws CacheException {
|
||||||
|
|
||||||
return delegate.get(key, txTimestamp);
|
return delegate.get(key, txTimestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws CacheException {
|
||||||
|
|
||||||
return delegate.putFromLoad(key, value, txTimestamp, version);
|
return delegate.putFromLoad(key, value, txTimestamp, version);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride)
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride)
|
||||||
throws CacheException {
|
throws CacheException {
|
||||||
|
|
||||||
return delegate.putFromLoad(key, value, txTimestamp, version, minimalPutOverride);
|
return delegate.putFromLoad(key, value, txTimestamp, version, minimalPutOverride);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove(Object key) throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public void remove(Object key) throws CacheException {
|
||||||
|
|
||||||
delegate.remove(key);
|
delegate.remove(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeAll() throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public void removeAll() throws CacheException {
|
||||||
delegate.removeAll();
|
delegate.removeAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void evict(Object key) throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public void evict(Object key) throws CacheException {
|
||||||
delegate.evict(key);
|
delegate.evict(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void evictAll() throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public void evictAll() throws CacheException {
|
||||||
delegate.evictAll();
|
delegate.evictAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Following methods we don't delegate since they have so little logic
|
/**
|
||||||
// it's clearer to just implement them here
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
public SoftLock lockItem(Object key, Object version) throws CacheException {
|
public SoftLock lockItem(Object key, Object version) throws CacheException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SoftLock lockRegion() throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public SoftLock lockRegion() throws CacheException {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unlockItem(Object key, SoftLock lock) throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public void unlockItem(Object key, SoftLock lock) throws CacheException {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unlockRegion(SoftLock lock) throws CacheException {
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public void unlockRegion(SoftLock lock) throws CacheException {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.entity;
|
package org.hibernate.cache.jbc2.entity;
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.entity;
|
package org.hibernate.cache.jbc2.entity;
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.entity;
|
package org.hibernate.cache.jbc2.entity;
|
||||||
|
@ -30,7 +38,7 @@ public class OptimisticTransactionalAccess extends TransactionalAccess {
|
||||||
/**
|
/**
|
||||||
* Create a new OptimisticTransactionalAccess.
|
* Create a new OptimisticTransactionalAccess.
|
||||||
*
|
*
|
||||||
* @param region
|
* @param region The region\ to which this is providing access
|
||||||
*/
|
*/
|
||||||
public OptimisticTransactionalAccess(EntityRegionImpl region) {
|
public OptimisticTransactionalAccess(EntityRegionImpl region) {
|
||||||
super(region, new OptimisticTransactionalAccessDelegate(region.getCacheInstance(), region.getRegionFqn(),
|
super(region, new OptimisticTransactionalAccessDelegate(region.getCacheInstance(), region.getRegionFqn(),
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.entity;
|
package org.hibernate.cache.jbc2.entity;
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.entity;
|
package org.hibernate.cache.jbc2.entity;
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.query;
|
package org.hibernate.cache.jbc2.query;
|
||||||
|
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
@ -47,10 +54,10 @@ public class QueryResultsRegionImpl extends TransactionalDataRegionAdapter imple
|
||||||
/**
|
/**
|
||||||
* Create a new QueryResultsRegionImpl.
|
* Create a new QueryResultsRegionImpl.
|
||||||
*
|
*
|
||||||
* @param jbcCache
|
* @param jbcCache The JBC cache instance to use to store the query results
|
||||||
* @param regionName
|
* @param regionName The name of the region (within the JBC cache)
|
||||||
* @param regionPrefix
|
* @param regionPrefix Any region prefix to apply
|
||||||
* TODO
|
* @param properties The configuration properties.
|
||||||
*/
|
*/
|
||||||
public QueryResultsRegionImpl(Cache jbcCache, String regionName, String regionPrefix, Properties properties) {
|
public QueryResultsRegionImpl(Cache jbcCache, String regionName, String regionPrefix, Properties properties) {
|
||||||
super(jbcCache, regionName, regionPrefix, null);
|
super(jbcCache, regionName, regionPrefix, null);
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.timestamp;
|
package org.hibernate.cache.jbc2.timestamp;
|
||||||
|
@ -57,12 +65,11 @@ public class TimestampsRegionImpl extends TransactionalDataRegionAdapter impleme
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new TimestampsRegionImpl.
|
* Create a new TimestampsRegionImpl.
|
||||||
*
|
*
|
||||||
* @param jbcCache
|
* @param jbcCache The JBC cache instance to use to store the timestamps data
|
||||||
* @param regionName
|
* @param regionName The name of the region (within the JBC cache)
|
||||||
* @param regionPrefix
|
* @param regionPrefix Any region prefix to apply
|
||||||
* TODO
|
* @param properties The configuration properties.
|
||||||
* @param metadata
|
|
||||||
*/
|
*/
|
||||||
public TimestampsRegionImpl(Cache jbcCache, String regionName, String regionPrefix, Properties properties) {
|
public TimestampsRegionImpl(Cache jbcCache, String regionName, String regionPrefix, Properties properties) {
|
||||||
super(jbcCache, regionName, regionPrefix, null);
|
super(jbcCache, regionName, regionPrefix, null);
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Steve Ebersole
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate.cache.jbc2.util;
|
package org.hibernate.cache.jbc2.util;
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.util;
|
package org.hibernate.cache.jbc2.util;
|
||||||
|
|
||||||
import org.hibernate.cache.CacheException;
|
import org.hibernate.cache.CacheException;
|
||||||
|
|
|
@ -1,17 +1,25 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.util;
|
package org.hibernate.cache.jbc2.util;
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
|
* Hibernate, Relational Persistence for Idiomatic Java
|
||||||
|
*
|
||||||
|
* Copyright (c) 2007, Red Hat Middleware LLC or third-party contributors as
|
||||||
|
* indicated by the @author tags or express copyright attribution
|
||||||
|
* statements applied by the authors. All third-party contributions are
|
||||||
|
* distributed under license by Red Hat Middleware LLC.
|
||||||
*
|
*
|
||||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||||
* Lesser General Public License, v. 2.1. This program is distributed in the
|
* Lesser General Public License, as published by the Free Software Foundation.
|
||||||
* hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
|
|
||||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
* Lesser General Public License for more details. You should have received a
|
|
||||||
* copy of the GNU Lesser General Public License, v.2.1 along with this
|
|
||||||
* distribution; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
*
|
||||||
* Red Hat Author(s): Brian Stansberry
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||||
|
* for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this distribution; if not, write to:
|
||||||
|
* Free Software Foundation, Inc.
|
||||||
|
* 51 Franklin Street, Fifth Floor
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.hibernate.cache.jbc2.util;
|
package org.hibernate.cache.jbc2.util;
|
||||||
|
|
||||||
import org.hibernate.cache.jbc2.entity.TransactionalAccess;
|
import org.hibernate.cache.jbc2.entity.TransactionalAccess;
|
||||||
|
@ -45,7 +52,6 @@ public class NonLockingDataVersion implements DataVersion {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean newerThan(DataVersion dataVersion) {
|
public boolean newerThan(DataVersion dataVersion) {
|
||||||
|
|
||||||
// if (dataVersion instanceof DefaultDataVersion) {
|
// if (dataVersion instanceof DefaultDataVersion) {
|
||||||
// log.info("unexpectedly validating against a DefaultDataVersion", new Exception("Just a stack trace"));
|
// log.info("unexpectedly validating against a DefaultDataVersion", new Exception("Just a stack trace"));
|
||||||
// return true;
|
// return true;
|
||||||
|
|
Loading…
Reference in New Issue