db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r383600 - in /db/derby/code/trunk/java/engine/org/apache/derby: impl/jdbc/ impl/services/monitor/ impl/sql/catalog/ impl/sql/execute/ impl/store/access/ impl/store/raw/xact/ jdbc/
Date Mon, 06 Mar 2006 17:53:36 GMT
Author: djd
Date: Mon Mar  6 09:53:34 2006
New Revision: 383600

URL: http://svn.apache.org/viewcvs?rev=383600&view=rev
Log:
DERBY-467 Reduce visibilty of context implementation classes and their methods.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnectionContext.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/ServiceBootContext.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryContextImpl.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/GenericExecutionContext.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/RAMTransactionContext.java
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/xact/XactContext.java
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/XATransactionState.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnectionContext.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnectionContext.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnectionContext.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnectionContext.java
Mon Mar  6 09:53:34 2006
@@ -36,7 +36,7 @@
 /**
 	@author djd
  */
-public class EmbedConnectionContext extends ContextImpl 
+class EmbedConnectionContext extends ContextImpl 
 		implements ConnectionContext
 {
 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/ServiceBootContext.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/ServiceBootContext.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/ServiceBootContext.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/ServiceBootContext.java
Mon Mar  6 09:53:34 2006
@@ -28,7 +28,7 @@
 	A context that is used during a service boot to
 	stop cleanup on the stack at this point.
 */
-class ServiceBootContext extends ContextImpl {
+final class ServiceBootContext extends ContextImpl {
 
 	ServiceBootContext(ContextManager cm) {
 		super(cm, "ServiceBoot");

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryContextImpl.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryContextImpl.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryContextImpl.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryContextImpl.java
Mon Mar  6 09:53:34 2006
@@ -38,7 +38,7 @@
  * for statement errors or higher. The outer data dictionary context
  * is not popped by cleanupOnError.
  */
-public class DataDictionaryContextImpl 
+class DataDictionaryContextImpl 
 	extends ContextImpl
 	implements DataDictionaryContext
 {
@@ -81,7 +81,7 @@
 	// to be saved when the context
 	// is created
 	
-	public DataDictionaryContextImpl(ContextManager cm, DataDictionary dataDictionary,
+	DataDictionaryContextImpl(ContextManager cm, DataDictionary dataDictionary,
 									 boolean nested)
 	{
 		super(cm, DataDictionaryContext.CONTEXT_ID);

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/GenericExecutionContext.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/GenericExecutionContext.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/GenericExecutionContext.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/GenericExecutionContext.java
Mon Mar  6 09:53:34 2006
@@ -48,7 +48,7 @@
  *
  * @author ames
  */
-public class GenericExecutionContext
+class GenericExecutionContext
 	extends ContextImpl 
 	implements ExecutionContext {
 
@@ -57,9 +57,9 @@
 	//
 	// class implementation
 	//
-	protected ResultSetFactory rsFactory;
-	protected ResultSetStatisticsFactory rssFactory;
-	protected ExecutionFactory execFactory;
+	private ResultSetFactory rsFactory;
+	private ResultSetStatisticsFactory rssFactory;
+	private ExecutionFactory execFactory;
 
 	//
 	// ExecutionContext interface
@@ -178,7 +178,7 @@
 	//
 	// class interface
 	//
-	public	GenericExecutionContext(
+	GenericExecutionContext(
 		    ResultSetFactory rsf,
 			ContextManager cm,
 			ExecutionFactory ef)

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/RAMTransactionContext.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/RAMTransactionContext.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/RAMTransactionContext.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/access/RAMTransactionContext.java
Mon Mar  6 09:53:34 2006
@@ -27,7 +27,7 @@
 
 import org.apache.derby.iapi.services.context.ContextImpl;
 import org.apache.derby.iapi.error.ExceptionSeverity;
-public class RAMTransactionContext extends ContextImpl
+final class RAMTransactionContext extends ContextImpl
 {
 	/**
 	The transaction this context is managing.
@@ -110,7 +110,7 @@
 	// this constructor is called with the transaction
 	// controller to be saved when the context
 	// is created (when the first statement comes in, likely).
-	public RAMTransactionContext(
+	RAMTransactionContext(
     ContextManager  cm,
     String          context_id,
     RAMTransaction  theTransaction, 

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/xact/XactContext.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/xact/XactContext.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/xact/XactContext.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/xact/XactContext.java
Mon Mar  6 09:53:34 2006
@@ -44,13 +44,13 @@
 
 **/
 
-public class XactContext extends ContextImpl {
+final class XactContext extends ContextImpl {
 
 	private		RawTransaction	xact;
 	private     RawStoreFactory factory;
 	private		boolean   abortAll; // true if any exception causes this transaction to be aborted.
 
-	public XactContext(ContextManager cm, String name, Xact xact, boolean abortAll, RawStoreFactory
factory) {
+	XactContext(ContextManager cm, String name, Xact xact, boolean abortAll, RawStoreFactory
factory) {
 		super(cm, name);
 
 		this.xact = xact;
@@ -143,15 +143,15 @@
 
 	}
 
-	public RawTransaction getTransaction() {
+	RawTransaction getTransaction() {
 		return xact;
 	}
 
-	protected RawStoreFactory getFactory() {
+	RawStoreFactory getFactory() {
 		return factory;
 	}
 
-	public void substituteTransaction(Xact newTran)
+	void substituteTransaction(Xact newTran)
 	{
 		// disengage old tran from this xact context
 		Xact oldTran = (Xact)xact;

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/XATransactionState.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/XATransactionState.java?rev=383600&r1=383599&r2=383600&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/XATransactionState.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/XATransactionState.java Mon Mar
 6 09:53:34 2006
@@ -34,7 +34,7 @@
 
 /** 
 */
-public final class XATransactionState extends ContextImpl {
+final class XATransactionState extends ContextImpl {
 
 	/** Rollback-only due to deadlock */
 	final static int TRO_DEADLOCK				= -2;
@@ -45,7 +45,7 @@
 	// final static int T2_ASSOCIATION_SUSPENDED	= 2;
 	final static int TC_COMPLETED				= 3; // rollback/commit called
 
-	public final EmbedConnection	conn;
+	final EmbedConnection	conn;
 	final EmbedXAConnection creatingResource;
 	private EmbedXAConnection  associatedResource;	// owning XAResource
 	final XAXactId			xid;	



Mime
View raw message