uk.ac.ic.doc.automed.qproc.cache
Class CacheManagerFactory

java.lang.Object
  extended by uk.ac.ic.doc.automed.qproc.cache.CacheManagerFactory

public class CacheManagerFactory
extends java.lang.Object

CacheManagerFactory.java

Version:
1.0 Department of Computing, Imperial College
Author:
Duc M Le dmle@doc.ic.ac.uk

Field Summary
private static int _cid
           
private static int _mid
           
private static int _obid
           
private static int _sid
           
private static java.util.Map cmInstances
           
static java.lang.String CSCHEMA_NAME_DELIMITER
           
 
Constructor Summary
private CacheManagerFactory()
          Creates a new instance of CacheManagerFactory
 
Method Summary
static ICacheManager getDefaultProviderInstance()
           
private static ICacheManager getProvider(java.lang.String providerClass)
           
static ICacheManager getProviderInstance()
           
static ICacheManager getProviderInstance(java.lang.String providerClass)
           
static boolean isCacheSchema(java.lang.String schemaName)
          Look in the name of the schema to identify if it is a cache schema
static int nextConstructID()
           
static int nextModelID()
           
static int nextSchemaID()
           
static int nextSchemaObjectID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSCHEMA_NAME_DELIMITER

public static final java.lang.String CSCHEMA_NAME_DELIMITER
See Also:
Constant Field Values

_sid

private static int _sid

_mid

private static int _mid

_obid

private static int _obid

_cid

private static int _cid

cmInstances

private static java.util.Map cmInstances
Constructor Detail

CacheManagerFactory

private CacheManagerFactory()
Creates a new instance of CacheManagerFactory

Method Detail

getProviderInstance

public static ICacheManager getProviderInstance()
                                         throws ProviderNotFoundException
Throws:
ProviderNotFoundException

getProviderInstance

public static ICacheManager getProviderInstance(java.lang.String providerClass)
                                         throws ProviderNotFoundException
Throws:
ProviderNotFoundException

getDefaultProviderInstance

public static ICacheManager getDefaultProviderInstance()
                                                throws ProviderNotFoundException
Throws:
ProviderNotFoundException

getProvider

private static ICacheManager getProvider(java.lang.String providerClass)
                                  throws ProviderNotFoundException
Throws:
ProviderNotFoundException

isCacheSchema

public static boolean isCacheSchema(java.lang.String schemaName)
Look in the name of the schema to identify if it is a cache schema


nextSchemaID

public static int nextSchemaID()

nextModelID

public static int nextModelID()

nextSchemaObjectID

public static int nextSchemaObjectID()

nextConstructID

public static int nextConstructID()