labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r606981 - in /labs/fluid/slice: ./ src/main/java/org/apache/openjpa/slice/ src/main/java/org/apache/openjpa/slice/jdbc/ src/test/java/org/apache/openjpa/slice/policy/
Date Thu, 27 Dec 2007 00:16:27 GMT
Author: ppoddar
Date: Wed Dec 26 16:16:25 2007
New Revision: 606981

URL: http://svn.apache.org/viewvc?rev=606981&view=rev
Log:
internal classes are made package-level from public access

Modified:
    labs/fluid/slice/pom.xml
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/ProductDerivation.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedConnection.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedDataSource.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedPreparedStatement.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedResultSet.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStatement.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreManager.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java
    labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedTemplate.java
    labs/fluid/slice/src/test/java/org/apache/openjpa/slice/policy/UserDistributionPolicy.java

Modified: labs/fluid/slice/pom.xml
URL: http://svn.apache.org/viewvc/labs/fluid/slice/pom.xml?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/pom.xml (original)
+++ labs/fluid/slice/pom.xml Wed Dec 26 16:16:25 2007
@@ -27,7 +27,7 @@
   <groupId>org.apache.openjpa</groupId>
   <artifactId>openjpa-slice</artifactId>
   <packaging>jar</packaging>
-  <version>0.2.0-SNAPSHOT</version>
+  <version>0.3.0-SNAPSHOT</version>
   <name>Slice</name>
   <description>Distributed Persistence Service using OpenJPA</description>
   <url>http://people.apache.org/~ppoddar/slice/site/index.html</url>
@@ -42,8 +42,13 @@
   	</developers>
     <contributors>
   	</contributors>
-  	
- 
+  	<mailingLists>
+  	  <mailingList>
+  	     <name>Temporary Mailing List</name>
+  	     <subscribe>pinaki.poddar@gmail.com</subscribe>
+      </mailingList>
+    </mailingLists>
+    
   	<scm>
         <connection>scm:svn:http://${scm.dir}</connection>
         <developerConnection>scm:svn:https://${scm.dir}</developerConnection>

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/ProductDerivation.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/ProductDerivation.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/ProductDerivation.java (original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/ProductDerivation.java Wed Dec
26 16:16:25 2007
@@ -18,16 +18,14 @@
  */
 package org.apache.openjpa.slice;
 
-import java.security.AccessController;
 import java.util.Map;
 
 import org.apache.openjpa.conf.OpenJPAProductDerivation;
 import org.apache.openjpa.lib.conf.AbstractProductDerivation;
-import org.apache.openjpa.lib.util.J2DoPrivHelper;
 import org.apache.openjpa.slice.jdbc.DistributedJDBCBrokerFactory;
 
 /**
- * Derives configuration for Slice.<br>
+ * Derives configuration for Slice.
  * Introduces a specialized BrokerFactory aliased as <code>slice</code>.
  * All Slice specific configuration is prefixed as <code>slice.XXX</code>
  * 
@@ -48,11 +46,5 @@
 
 	public int getType() {
 		return TYPE_FEATURE;
-	}
-
-	@SuppressWarnings("unchecked")
-	public void validate() throws Exception {
-		AccessController.doPrivileged(J2DoPrivHelper
-				.getClassLoaderAction(DistributedJDBCBrokerFactory.class));
 	}
 }

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedConnection.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedConnection.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedConnection.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedConnection.java
Wed Dec 26 16:16:25 2007
@@ -35,7 +35,7 @@
  * @author Pinaki Poddar
  * 
  */
-public class DistributedConnection implements Connection {
+class DistributedConnection implements Connection {
 	private final List<Connection> real;
 	private final Connection master;
 

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedDataSource.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedDataSource.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedDataSource.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedDataSource.java
Wed Dec 26 16:16:25 2007
@@ -35,7 +35,7 @@
  * @author Pinaki Poddar 
  *
  */
-public class DistributedDataSource extends DecoratingDataSource implements
+class DistributedDataSource extends DecoratingDataSource implements
 		Iterable<DataSource> {
 	private List<DataSource> real = new ArrayList<DataSource>();
 	private DataSource master;

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedPreparedStatement.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedPreparedStatement.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedPreparedStatement.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedPreparedStatement.java
Wed Dec 26 16:16:25 2007
@@ -42,7 +42,7 @@
  * @author Pinaki Poddar 
  *
  */
-public class DistributedPreparedStatement extends DistributedTemplate<PreparedStatement>
+class DistributedPreparedStatement extends DistributedTemplate<PreparedStatement>
 		implements PreparedStatement {
 
 	DistributedPreparedStatement(DistributedConnection c) {

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedResultSet.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedResultSet.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedResultSet.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedResultSet.java
Wed Dec 26 16:16:25 2007
@@ -44,7 +44,7 @@
  * @author Pinaki Poddar 
  *
  */
-public class DistributedResultSet implements ResultSet {
+class DistributedResultSet implements ResultSet {
 	LinkedList<ResultSet> comps = new LinkedList<ResultSet>();
 	ResultSet current;
 	int cursor = -1;

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStatement.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStatement.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStatement.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStatement.java
Wed Dec 26 16:16:25 2007
@@ -26,7 +26,7 @@
  * @author Pinaki Poddar 
  *
  */
-public class DistributedStatement extends DistributedTemplate<Statement>  {
+class DistributedStatement extends DistributedTemplate<Statement>  {
 	public DistributedStatement(DistributedConnection c) {
 		super(c);
 	}

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreManager.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreManager.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreManager.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreManager.java
Wed Dec 26 16:16:25 2007
@@ -73,7 +73,7 @@
  * @author Pinaki Poddar
  * 
  */
-public class DistributedStoreManager extends JDBCStoreManager {
+class DistributedStoreManager extends JDBCStoreManager {
 	private final Map<String,JDBCStoreManager> _slices;
 	private JDBCStoreManager _master;
 	private final DistributedJDBCConfiguration _conf;

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java
Wed Dec 26 16:16:25 2007
@@ -46,7 +46,7 @@
  *
  */
 @SuppressWarnings("serial")
-public class DistributedStoreQuery extends JDBCStoreQuery {
+class DistributedStoreQuery extends JDBCStoreQuery {
 	private List<StoreQuery> _queries = new ArrayList<StoreQuery>();
 	private ExpressionParser _parser;
 	

Modified: labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedTemplate.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedTemplate.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedTemplate.java
(original)
+++ labs/fluid/slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedTemplate.java
Wed Dec 26 16:16:25 2007
@@ -33,7 +33,7 @@
  * @author Pinaki Poddar 
  *
  */
-public class DistributedTemplate<T extends Statement> 
+class DistributedTemplate<T extends Statement> 
 	implements Statement, Iterable<T> {
 	protected List<T> stmts = new ArrayList<T>();
 	protected final DistributedConnection con;

Modified: labs/fluid/slice/src/test/java/org/apache/openjpa/slice/policy/UserDistributionPolicy.java
URL: http://svn.apache.org/viewvc/labs/fluid/slice/src/test/java/org/apache/openjpa/slice/policy/UserDistributionPolicy.java?rev=606981&r1=606980&r2=606981&view=diff
==============================================================================
--- labs/fluid/slice/src/test/java/org/apache/openjpa/slice/policy/UserDistributionPolicy.java
(original)
+++ labs/fluid/slice/src/test/java/org/apache/openjpa/slice/policy/UserDistributionPolicy.java
Wed Dec 26 16:16:25 2007
@@ -38,7 +38,12 @@
 	/**
 	 * Distribute the given instance.
 	 * Assumes that two configured slices are named as <em>One</em> and 
-	 * <em>Two</em>.
+	 * <em>Two</em>.<br>
+	 * The policy is only implemented for PObject and Person i.e. two of three 
+	 * known classes. No policy is implemented for Address because Address is
+	 * persisted always by cascade and hence Slice should assign automatically
+	 * the same slice as its owner Person. 
+	 * 
 	 */
 	public String distribute(Object pc, Set<String> slices, Object context) {
 		assertValidSlices(slices);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message