diff options
Diffstat (limited to 'hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/resource/HbResource.java')
-rwxr-xr-x | hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/resource/HbResource.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/resource/HbResource.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/resource/HbResource.java new file mode 100755 index 000000000..31d1ca7c4 --- /dev/null +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/resource/HbResource.java @@ -0,0 +1,47 @@ +/** + * <copyright> + * + * Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Martin Taal + * </copyright> + * + * $Id: HbResource.java,v 1.5 2008/02/28 07:08:24 mtaal Exp $ + */ + +package org.eclipse.emf.teneo.hibernate.resource; + +import org.eclipse.emf.teneo.hibernate.SessionWrapper; +import org.hibernate.Session; + +/** + * Defines the common interface for HbResource Impls. + * + * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> + * @version $Revision: 1.5 $ + */ + +public interface HbResource { + + /** + * Returns the session of the resource. + */ + Session getSession(); + + /** Returns the session to the resource so that it can do clean up (or not) */ + void returnSession(Session session); + + /** Set isloading on the resource */ + void setIsLoading(boolean isLoading); + + /** Return the sessionwrapper */ + public SessionWrapper getSessionWrapper(); + + /** Returns the sessionwrapper to the resource so that it can do clean up (or not) */ + void returnSessionWrapper(SessionWrapper sessionWrapper); +} |