]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/ServerEx.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ServerEx.java
diff --git a/bundles/org.simantics.db/src/org/simantics/db/ServerEx.java b/bundles/org.simantics.db/src/org/simantics/db/ServerEx.java
new file mode 100644 (file)
index 0000000..e7542b1
--- /dev/null
@@ -0,0 +1,48 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ *     VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.db;\r
+\r
+import java.util.Properties;\r
+\r
+import org.simantics.db.exception.DatabaseException;\r
+\r
+/**\r
+ * Extended Server Interface\r
+ *\r
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
+ */\r
+public interface ServerEx extends ServerI {\r
+\r
+       /**\r
+        * Create session with user given properties.\r
+        * Properties:\r
+        *   o user           - username\r
+        *   o password       - password\r
+        *\r
+        * @param info\r
+        * @return session\r
+        * @throws DatabaseException\r
+        */\r
+       public Session createSession(Properties info)\r
+       throws DatabaseException;\r
+\r
+       /**\r
+        * Create session with user given properties.\r
+        * Properties:\r
+        *   o user           - username\r
+        *   o password       - password\r
+        *\r
+        * @param info\r
+        * @return service locator\r
+        * @throws DatabaseException\r
+        */\r
+       public ServiceLocator getServiceLocator(Properties info) throws DatabaseException;\r
+}\r