[jboss-cvs] jboss-seam/src/main/org/jboss/seam/persistence ...

Gavin King gavin.king at jboss.com
Fri Jun 22 02:53:54 EDT 2007


  User: gavin   
  Date: 07/06/22 02:53:54

  Modified:    src/main/org/jboss/seam/persistence   
                        EntityManagerProxy.java HibernateSessionProxy.java
  Added:       src/main/org/jboss/seam/persistence   
                        FullTextHibernateSessionProxy.java
  Log:
  javadoc
  
  Revision  Changes    Path
  1.6       +7 -0      jboss-seam/src/main/org/jboss/seam/persistence/EntityManagerProxy.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EntityManagerProxy.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/persistence/EntityManagerProxy.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- EntityManagerProxy.java	22 Jun 2007 06:43:30 -0000	1.5
  +++ EntityManagerProxy.java	22 Jun 2007 06:53:54 -0000	1.6
  @@ -8,6 +8,13 @@
   import javax.persistence.LockModeType;
   import javax.persistence.Query;
   
  +/**
  + * Proxies the EntityManager, and implements EL interpolation
  + * in JPA-QL
  + * 
  + * @author Gavin King
  + *
  + */
   public class EntityManagerProxy implements EntityManager, Serializable
   {
      private EntityManager delegate;
  
  
  
  1.3       +7 -0      jboss-seam/src/main/org/jboss/seam/persistence/HibernateSessionProxy.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HibernateSessionProxy.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/persistence/HibernateSessionProxy.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- HibernateSessionProxy.java	26 Feb 2007 19:24:50 -0000	1.2
  +++ HibernateSessionProxy.java	22 Jun 2007 06:53:54 -0000	1.3
  @@ -18,6 +18,13 @@
   import org.hibernate.Transaction;
   import org.hibernate.stat.SessionStatistics;
   
  +/**
  + * Proxies the EntityManager, and implements EL interpolation
  + * in HQL
  + * 
  + * @author Gavin King
  + *
  + */
   public class HibernateSessionProxy implements Session
   {
      private Session delegate;
  
  
  
  1.1      date: 2007/06/22 06:53:54;  author: gavin;  state: Exp;jboss-seam/src/main/org/jboss/seam/persistence/FullTextHibernateSessionProxy.java
  
  Index: FullTextHibernateSessionProxy.java
  ===================================================================
  package org.jboss.seam.persistence;
  
  import java.io.Serializable;
  import java.util.Collection;
  import java.util.Iterator;
  import java.util.List;
  
  import org.hibernate.HibernateException;
  import org.hibernate.Query;
  import org.hibernate.search.FullTextQuery;
  import org.hibernate.search.FullTextSession;
  import org.hibernate.search.SearchFactory;
  import org.hibernate.type.Type;
  
  /**
   * Wraps a Hibernate Search session
   * 
   * @author Gavin King
   *
   */
  @SuppressWarnings("deprecation")
  public class FullTextHibernateSessionProxy extends HibernateSessionProxy implements FullTextSession
  {
     private FullTextSession fullTextSession;
     
     public FullTextHibernateSessionProxy(FullTextSession fullTextSession)
     {
        super(fullTextSession);
        this.fullTextSession = fullTextSession;
     }
  
     public void index(Object arg0)
     {
        fullTextSession.index(arg0);
     }
  
     public FullTextQuery createFullTextQuery(org.apache.lucene.search.Query arg0, Class... arg1)
     {
        return fullTextSession.createFullTextQuery(arg0, arg1);
     }
  
     public Query createSQLQuery(String arg0, String arg1, Class arg2)
     {
        return fullTextSession.createSQLQuery(arg0, arg1, arg2);
     }
  
     public Query createSQLQuery(String arg0, String[] arg1, Class[] arg2)
     {
        return fullTextSession.createSQLQuery(arg0, arg1, arg2);
     }
  
     public int delete(String arg0, Object arg1, Type arg2) throws HibernateException
     {
        return fullTextSession.delete(arg0, arg1, arg2);
     }
  
     public int delete(String arg0, Object[] arg1, Type[] arg2) throws HibernateException
     {
        return fullTextSession.delete(arg0, arg1, arg2);
     }
  
     public int delete(String arg0) throws HibernateException
     {
        return fullTextSession.delete(arg0);
     }
  
     public Collection filter(Object arg0, String arg1, Object arg2, Type arg3) throws HibernateException
     {
        return fullTextSession.filter(arg0, arg1, arg2, arg3);
     }
  
     public Collection filter(Object arg0, String arg1, Object[] arg2, Type[] arg3) throws HibernateException
     {
        return fullTextSession.filter(arg0, arg1, arg2, arg3);
     }
  
     public Collection filter(Object arg0, String arg1) throws HibernateException
     {
        return fullTextSession.filter(arg0, arg1);
     }
  
     public List find(String arg0, Object arg1, Type arg2) throws HibernateException
     {
        return fullTextSession.find(arg0, arg1, arg2);
     }
  
     public List find(String arg0, Object[] arg1, Type[] arg2) throws HibernateException
     {
        return fullTextSession.find(arg0, arg1, arg2);
     }
  
     public List find(String arg0) throws HibernateException
     {
        return fullTextSession.find(arg0);
     }
  
  
     public SearchFactory getSearchFactory()
     {
        return fullTextSession.getSearchFactory();
     }
  
     public Iterator iterate(String arg0, Object arg1, Type arg2) throws HibernateException
     {
        return fullTextSession.iterate(arg0, arg1, arg2);
     }
  
     public Iterator iterate(String arg0, Object[] arg1, Type[] arg2) throws HibernateException
     {
        return fullTextSession.iterate(arg0, arg1, arg2);
     }
  
     public Iterator iterate(String arg0) throws HibernateException
     {
        return fullTextSession.iterate(arg0);
     }
  
     public void save(Object arg0, Serializable arg1) throws HibernateException
     {
        fullTextSession.save(arg0, arg1);
     }
  
     public void save(String arg0, Object arg1, Serializable arg2) throws HibernateException
     {
        fullTextSession.save(arg0, arg1, arg2);
     }
  
     public Object saveOrUpdateCopy(Object arg0, Serializable arg1) throws HibernateException
     {
        return fullTextSession.saveOrUpdateCopy(arg0, arg1);
     }
  
     public Object saveOrUpdateCopy(Object arg0) throws HibernateException
     {
        return fullTextSession.saveOrUpdateCopy(arg0);
     }
  
     public Object saveOrUpdateCopy(String arg0, Object arg1, Serializable arg2) throws HibernateException
     {
        return fullTextSession.saveOrUpdateCopy(arg0, arg1, arg2);
     }
  
     public Object saveOrUpdateCopy(String arg0, Object arg1) throws HibernateException
     {
        return fullTextSession.saveOrUpdateCopy(arg0, arg1);
     }
  
     public void update(Object arg0, Serializable arg1) throws HibernateException
     {
        fullTextSession.update(arg0, arg1);
     }
  
     public void update(String arg0, Object arg1, Serializable arg2) throws HibernateException
     {
        fullTextSession.update(arg0, arg1, arg2);
     }
     
  }
  
  
  



More information about the jboss-cvs-commits mailing list