From: <one...@us...> - 2003-04-25 05:56:40
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl In directory sc8-pr-cvs1:/tmp/cvs-serv28546/hibernate/impl Modified Files: BatcherImpl.java CacheEntry.java CriteriaImpl.java FilterImpl.java MessageHelper.java NonBatchingBatcher.java QueryImpl.java ScrollableResultsImpl.java SessionFactoryImpl.java SessionImpl.java Log Message: *enabled composite key collection filters *added some JavaDoc Index: BatcherImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/BatcherImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BatcherImpl.java 5 Jan 2003 02:11:21 -0000 1.3 --- BatcherImpl.java 25 Apr 2003 05:56:33 -0000 1.4 *************** *** 17,20 **** --- 17,22 ---- /** * Manages prepared statements and batching. Class exists to enforce seperation of concerns. + * + * @author Gavin King */ public abstract class BatcherImpl implements Batcher { Index: CacheEntry.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/CacheEntry.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CacheEntry.java 6 Apr 2003 10:11:09 -0000 1.5 --- CacheEntry.java 25 Apr 2003 05:56:33 -0000 1.6 *************** *** 13,16 **** --- 13,18 ---- /** * A cached instance of a persistent class + * + * @author Gavin King */ public final class CacheEntry implements Serializable { Index: CriteriaImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/CriteriaImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CriteriaImpl.java 9 Mar 2003 04:04:08 -0000 1.2 --- CriteriaImpl.java 25 Apr 2003 05:56:33 -0000 1.3 *************** *** 11,14 **** --- 11,18 ---- import net.sf.hibernate.expression.Order; + /** + * Implementation of the <tt>Criteria</tt> interface + * @author Gavin King + */ public class CriteriaImpl implements Criteria { Index: FilterImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/FilterImpl.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** FilterImpl.java 25 Apr 2003 03:40:33 -0000 1.8 --- FilterImpl.java 25 Apr 2003 05:56:33 -0000 1.9 *************** *** 14,17 **** --- 14,18 ---- /** * implementation of the <tt>Query</tt> interface for collection filters + * @author Gavin King */ public class FilterImpl extends QueryImpl { Index: MessageHelper.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/MessageHelper.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MessageHelper.java 21 Apr 2003 06:28:18 -0000 1.1 --- MessageHelper.java 25 Apr 2003 05:56:33 -0000 1.2 *************** *** 8,15 **** /** ! * helper methods for rendering log messages and exception ! * messages */ public final class MessageHelper { public static String infoString(Class clazz, Serializable id) { --- 8,18 ---- /** ! * Helper methods for rendering log messages and exception ! * messages. ! * @author Max Andersen, Gavin King */ public final class MessageHelper { + + //TODO: use these methods in lost more places! public static String infoString(Class clazz, Serializable id) { Index: NonBatchingBatcher.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/NonBatchingBatcher.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** NonBatchingBatcher.java 5 Jan 2003 02:11:21 -0000 1.3 --- NonBatchingBatcher.java 25 Apr 2003 05:56:33 -0000 1.4 *************** *** 10,13 **** --- 10,15 ---- /** * An implementation of the <tt>Batcher</tt> interface that does no batching + * + * @author Gavin King */ public class NonBatchingBatcher extends BatcherImpl { Index: QueryImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/QueryImpl.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** QueryImpl.java 25 Apr 2003 03:40:34 -0000 1.16 --- QueryImpl.java 25 Apr 2003 05:56:33 -0000 1.17 *************** *** 36,39 **** --- 36,40 ---- * for "ordinary" HQL queries (not collection filters) * @see FilterImpl + * @author Gavin King */ public class QueryImpl implements Query { Index: ScrollableResultsImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/ScrollableResultsImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ScrollableResultsImpl.java 14 Jan 2003 13:42:12 -0000 1.5 --- ScrollableResultsImpl.java 25 Apr 2003 05:56:33 -0000 1.6 *************** *** 19,22 **** --- 19,26 ---- import net.sf.hibernate.type.Type; + /** + * Implementation of the <tt>ScrollableResults</tt> interface + * @author Gavin King + */ public class ScrollableResultsImpl implements ScrollableResults { Index: SessionFactoryImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/SessionFactoryImpl.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** SessionFactoryImpl.java 19 Apr 2003 03:26:07 -0000 1.19 --- SessionFactoryImpl.java 25 Apr 2003 05:56:33 -0000 1.20 *************** *** 78,86 **** /** ! * Concrete implementation of a SessionFactory ! * ! * IMMUTABLE (except for caches) */ - public final class SessionFactoryImpl implements SessionFactory, SessionFactoryImplementor { --- 78,104 ---- /** ! * Concrete implementation of the <tt>SessionFactory</tt> interface. Has the following ! * responsibilites ! * <ul> ! * <li>caches configuration settings (immutably) ! * <li>caches "compiled" mappings ie. <tt>ClassPersister</tt>s and ! * <tt>CollectionPersister</tt>s (immutable) ! * <li>caches "compiled" queries (memory sensitive cache) ! * <li>manages <tt>PreparedStatement</tt>s ! * <li> delegates JDBC <tt>Connection</tt> management to the <tt>ConnectionProvider</tt> ! * <li>factory for instances of <tt>SessionImpl</tt> ! * </ul> ! * This class must appear immutable to clients, even if it does all kinds of caching ! * and pooling under the covers. It is crucial that the class is not only thread ! * safe, but also highly concurrent. Synchronization must be used extremely sparingly. ! * ! * @see net.sf.hibernate.ps.PreparedStatementCache ! * @see net.sf.hibernate.connection.ConnectionProvider ! * @see Session ! * @see net.sf.hibernate.hql.QueryTranslator ! * @see net.sf.hibernate.persister.ClassPersister ! * @see net.sf.hibernate.collection.CollectionPersister ! * @author Gavin King */ public final class SessionFactoryImpl implements SessionFactory, SessionFactoryImplementor { *************** *** 658,661 **** --- 676,684 ---- } + /** + * Return the names of all persistent (mapped) classes that extend or implement the + * given class or interface, accounting for implicit/explicit polymorphism settings + * and excluding mapped subclasses/joined-subclasses of other classes in the result. + */ public String[] getImplementors(Class clazz) { //if ( classPersisters.containsKey(clazz) ) return null; *************** *** 703,706 **** --- 726,736 ---- } + /** + * <ol> + * <li>close the prepared statement cache (and all prepared statements) + * <li>close the JDBC connection + * <li>remove the JNDI binding + * </ol> + */ public void close() throws HibernateException { Index: SessionImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/SessionImpl.java,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** SessionImpl.java 21 Apr 2003 06:34:46 -0000 1.38 --- SessionImpl.java 25 Apr 2003 05:56:33 -0000 1.39 *************** *** 84,87 **** --- 84,89 ---- * * NOT THREADSAFE + * + * @author Gavin King */ public final class SessionImpl implements SessionImplementor { |