]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/request/ReadInterface.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / request / ReadInterface.java
index f8687dffc6273e6d952f8484b9ef8d81c33caa4c..a67f28882fd205a486ca9943adcbc29e91c63f3d 100644 (file)
@@ -1,48 +1,48 @@
-package org.simantics.db.request;\r
-\r
-import org.simantics.db.AsyncRequestProcessor;\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.RequestProcessor;\r
-import org.simantics.db.Session;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.procedure.AsyncListener;\r
-import org.simantics.db.procedure.AsyncProcedure;\r
-import org.simantics.db.procedure.Listener;\r
-import org.simantics.db.procedure.Procedure;\r
-import org.simantics.db.procedure.SyncListener;\r
-import org.simantics.db.procedure.SyncProcedure;\r
-\r
-/**\r
- * \r
- * An interface representing a computation of a single result. Some standard implementations of ReadInterface and WriteInterface include\r
- * <ul>\r
- * <li>{@link ResourceRead} which is identified by a single resource\r
- * <li>{@link ResourceRead2} which is identified by a pair of resources\r
- * <li>{@link UnaryRead} which is identifier by a single object\r
- * <li>{@link BinaryRead} which is identifier by a pair of objects\r
- * <li>{@link UniqueRead} which is unique (not equal to anything but itself)\r
- * <li>{@link ReadRequest} which does not report a result\r
- * </ul>\r
- * <p>\r
- * \r
- * The client is not expected to implement this class but rather to extend one of the standard implementations.\r
- * \r
- * @version 1.5\r
- * @author Antti Villberg\r
- * @see WriteInterface\r
- * @see RequestProcessor\r
- * @see ReadGraph\r
- * @see Session\r
- */\r
-\r
-public interface ReadInterface<Result> {\r
-\r
-       Result request(RequestProcessor processor) throws DatabaseException;\r
-       void request(AsyncRequestProcessor processor, AsyncProcedure<Result> procedure);\r
-       void request(AsyncRequestProcessor processor, Procedure<Result> procedure);\r
-       void request(AsyncRequestProcessor processor, SyncProcedure<Result> procedure);\r
-       void request(AsyncRequestProcessor processor, AsyncListener<Result> procedure);\r
-       void request(AsyncRequestProcessor processor, Listener<Result> procedure);\r
-       void request(AsyncRequestProcessor processor, SyncListener<Result> procedure);\r
-       \r
-}\r
+package org.simantics.db.request;
+
+import org.simantics.db.AsyncRequestProcessor;
+import org.simantics.db.ReadGraph;
+import org.simantics.db.RequestProcessor;
+import org.simantics.db.Session;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.procedure.AsyncListener;
+import org.simantics.db.procedure.AsyncProcedure;
+import org.simantics.db.procedure.Listener;
+import org.simantics.db.procedure.Procedure;
+import org.simantics.db.procedure.SyncListener;
+import org.simantics.db.procedure.SyncProcedure;
+
+/**
+ * 
+ * An interface representing a computation of a single result. Some standard implementations of ReadInterface and WriteInterface include
+ * <ul>
+ * <li>{@link ResourceRead} which is identified by a single resource
+ * <li>{@link ResourceRead2} which is identified by a pair of resources
+ * <li>{@link UnaryRead} which is identifier by a single object
+ * <li>{@link BinaryRead} which is identifier by a pair of objects
+ * <li>{@link UniqueRead} which is unique (not equal to anything but itself)
+ * <li>{@link ReadRequest} which does not report a result
+ * </ul>
+ * <p>
+ * 
+ * The client is not expected to implement this class but rather to extend one of the standard implementations.
+ * 
+ * @version 1.5
+ * @author Antti Villberg
+ * @see WriteInterface
+ * @see RequestProcessor
+ * @see ReadGraph
+ * @see Session
+ */
+
+public interface ReadInterface<Result> {
+
+       Result request(RequestProcessor processor) throws DatabaseException;
+       void request(AsyncRequestProcessor processor, AsyncProcedure<Result> procedure);
+       void request(AsyncRequestProcessor processor, Procedure<Result> procedure);
+       void request(AsyncRequestProcessor processor, SyncProcedure<Result> procedure);
+       void request(AsyncRequestProcessor processor, AsyncListener<Result> procedure);
+       void request(AsyncRequestProcessor processor, Listener<Result> procedure);
+       void request(AsyncRequestProcessor processor, SyncListener<Result> procedure);
+       
+}