]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/ServerEx.java
General event listening interface for DB and purge events.
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ServerEx.java
1 /*******************************************************************************
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  *     VTT Technical Research Centre of Finland - initial API and implementation
10  *******************************************************************************/
11 package org.simantics.db;
12
13 import java.util.Properties;
14
15 import org.simantics.db.exception.DatabaseException;
16
17 /**
18  * Extended Server Interface
19  *
20  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
21  */
22 public interface ServerEx extends ServerI {
23
24         /**
25          * Create session with user given properties.
26          * Properties:
27          *   o user           - username
28          *   o password       - password
29          *
30          * @param info
31          * @return session
32          * @throws DatabaseException
33          */
34         public Session createSession(Properties info)
35         throws DatabaseException;
36
37         /**
38          * Create session with user given properties.
39          * Properties:
40          *   o user           - username
41          *   o password       - password
42          *
43          * @param info
44          * @return service locator
45          * @throws DatabaseException
46          */
47         public ServiceLocator getServiceLocator(Properties info) throws DatabaseException;
48 }