org.objectweb.medor.datasource.lib
Class BasicDataStore

java.lang.Object
  |
  +--org.objectweb.medor.datasource.lib.BasicDataStore
All Implemented Interfaces:
DataStore
Direct Known Subclasses:
ConnectionFactoryDataStore

public class BasicDataStore
extends java.lang.Object
implements DataStore


Field Summary
 
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, java.lang.String sourceName)
          Full capacities evaluation...
BasicDataStore(short dataStoreType, java.lang.String sourceName, short[] capabilities)
          The capacities are restrected...
 
Method Summary
 short getDataStoreType()
          Returns the type of DataStore
 java.lang.String getName()
          Returns the symbolic name of the DataStore.
 boolean isCapable(short operation)
          Checks whether the current DataStore is capable of performing different types of operations.
 boolean isSameAs(DataStore ds)
          A simple example of an implementation of this method will tests equality between DataStore name only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDataStore

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


BasicDataStore

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

Method Detail

getName

public java.lang.String getName()
Description copied from interface: DataStore
Returns the symbolic name of the DataStore.

This name is used to pass as a parameter the connection to use at evaluation time for all QueryLeaves attached to this DataStore.

Specified by:
getName in interface DataStore
Returns:
the symbolic name of the current 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
Parameters:
ds - the other DataStore object
Returns:
true of the two DataStore objects represent the same data store.

isCapable

public boolean isCapable(short operation)
Description copied from interface: DataStore
Checks whether the current DataStore is capable of performing different types of operations.

Specified by:
isCapable in interface DataStore
Parameters:
operation - is the type of operation for checking.
Returns:
true if the current DataStore is capable of performing the input operation type
See Also:
OperationType

getDataStoreType

public short getDataStoreType()
Description copied from interface: DataStore
Returns the type of DataStore

Specified by:
getDataStoreType in interface DataStore
Returns:
the type of DataStore