|
From: <hib...@li...> - 2006-03-22 23:48:11
|
Author: epbernard
Date: 2006-03-22 18:47:31 -0500 (Wed, 22 Mar 2006)
New Revision: 9680
Modified:
trunk/Hibernate3/src/org/hibernate/Query.java
trunk/Hibernate3/src/org/hibernate/transaction/CMTTransaction.java
Log:
better javadoc
open a bit the API for HEM
Modified: trunk/Hibernate3/src/org/hibernate/Query.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/Query.java 2006-03-22 23:21:44 UTC (rev 9679)
+++ trunk/Hibernate3/src/org/hibernate/Query.java 2006-03-22 23:47:31 UTC (rev 9680)
@@ -122,7 +122,7 @@
* the query, or null if the query returns no results.
*
* @return the single result or <tt>null</tt>
- * @throws HibernateException if there is more than one matching result
+ * @throws NonUniqueResultException if there is more than one matching result
*/
public Object uniqueResult() throws HibernateException;
@@ -154,8 +154,7 @@
* Entities retrieved by this query will be loaded in
* a read-only mode where Hibernate will never dirty-check
* them or make changes persistent.
- *
- * @see Session.setReadOnly(Object, boolean)
+ *
*/
public Query setReadOnly(boolean readOnly);
@@ -359,7 +358,7 @@
* Set a strategy for handling the query results. This can be used to change
* "shape" of the query result.
*
- * @param resultTransformer The transformer to apply
+ * @param transformer The transformer to apply
* @return this (for method chaining)
*/
public Query setResultTransformer(ResultTransformer transformer);
Modified: trunk/Hibernate3/src/org/hibernate/transaction/CMTTransaction.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/transaction/CMTTransaction.java 2006-03-22 23:21:44 UTC (rev 9679)
+++ trunk/Hibernate3/src/org/hibernate/transaction/CMTTransaction.java 2006-03-22 23:47:31 UTC (rev 9680)
@@ -22,8 +22,8 @@
private static final Log log = LogFactory.getLog(CMTTransaction.class);
- private final JDBCContext jdbcContext;
- private final TransactionFactory.Context transactionContext;
+ protected final JDBCContext jdbcContext;
+ protected final TransactionFactory.Context transactionContext;
private boolean begun;
@@ -87,7 +87,7 @@
}
- private javax.transaction.Transaction getTransaction() throws SystemException {
+ public javax.transaction.Transaction getTransaction() throws SystemException {
return transactionContext.getFactory().getTransactionManager().getTransaction();
}
|