org.objectweb.medor.datasource.lib

Class BasicDataStore

Implemented Interfaces:
DataStore
Known Direct Subclasses:
ConnectionFactoryDataStore

public class BasicDataStore
extends java.lang.Object
implements DataStore

MEDOR: Middleware Enabling Distributed Object Requests Copyright (C) 2001-2003 France Telecom R&D Contact: alexandre.lefebvre@rd.francetelecom.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Initial developers: M. Alia, A. Lefebvre

Fields inherited from interface org.objectweb.medor.datasource.api.DataStore

JDBC_STORE, MEDORTC_STORE, ODMG_STORE, TEXTFILE_STORE, UDDI_STORE, XMLDOCUMENT_STORE

Constructor Summary

BasicDataStore(short dataStoreType, String sourceName)
Full capacities evaluation...
BasicDataStore(short dataStoreType, String sourceName, short[] capabilities)
The capacities are restrected...

Method Summary

String
getClientName()
short
getDataStoreType()
String
getName()
boolean
isCapable(short operation)
boolean
isSameAs(DataStore ds)
A simple example of an implementation of this method will tests equality between DataStore name only.
void
setClientName(String cName)

Constructor Details

BasicDataStore

public BasicDataStore(short dataStoreType,
                      String sourceName)
            throws DataSourceException
Full capacities evaluation...


BasicDataStore

public BasicDataStore(short dataStoreType,
                      String sourceName,
                      short[] capabilities)
            throws DataSourceException
The capacities are restrected...

Method Details

getClientName

public String getClientName()
Specified by:
getClientName in interface DataStore


getDataStoreType

public short getDataStoreType()
Specified by:
getDataStoreType in interface DataStore


getName

public String getName()
Specified by:
getName in interface DataStore


isCapable

public boolean isCapable(short operation)
Specified by:
isCapable in interface DataStore


isSameAs

public boolean isSameAs(DataStore ds)
A simple example of an implementation of this method will tests equality between DataStore name only. Others implemntation will be done later.
Specified by:
isSameAs in interface DataStore


setClientName

public void setClientName(String cName)
Specified by:
setClientName in interface DataStore