org.objectweb.cjdbc.controller.virtualdatabase
Class VirtualDatabaseStaticMetaData

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseStaticMetaData

public class VirtualDatabaseStaticMetaData
extends java.lang.Object

Class gathering the static metadata related to the database. We collect information from the underlying driver and keep this object for further usage.

Version:
1.0
Author:
Nicolas Modrzyk , Emmanuel Cecchet

Field Summary
private  Trace logger
           
private  MetadataContainer metadataContainer
           
private  java.lang.String vdbName
           
 
Constructor Summary
VirtualDatabaseStaticMetaData(VirtualDatabase database)
          Reference the database for this metadata.
 
Method Summary
 void gatherStaticMetadata(DatabaseBackend backend)
          Save the driver metadata of the backend if this is the first one to be collected.
 MetadataContainer getMetadataContainer()
          Returns the ("getXXX(Y,Z,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vdbName

private java.lang.String vdbName

logger

private Trace logger

metadataContainer

private MetadataContainer metadataContainer
Constructor Detail

VirtualDatabaseStaticMetaData

public VirtualDatabaseStaticMetaData(VirtualDatabase database)
Reference the database for this metadata. Do not fetch any data at this time

Parameters:
database - to link this metadata to
Method Detail

gatherStaticMetadata

public void gatherStaticMetadata(DatabaseBackend backend)
Save the driver metadata of the backend if this is the first one to be collected. If not display a warning for each incompatible value.

Parameters:
backend - the new backend to get metadata from

getMetadataContainer

public MetadataContainer getMetadataContainer()
Returns the ("getXXX(Y,Z,...)", value) hash table holding metadata queries.

Returns:
Returns the metadataContainer.


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.