public OracleDatabaseImpl(OracleConnection conn,DescriptorCache descriptorCache,MetricsCollector metrics,boolean localCaching){
  this.conn=conn;
  this.sharedDescriptorCache=descriptorCache;
  this.metrics=metrics;
  if (localCaching) {
    localDescriptorCache=new HashMap<String,CollectionDescriptor>();
    localCollectionCache=new HashMap<String,OracleCollectionImpl>();
  }
 else {
    localDescriptorCache=null;
    localCollectionCache=null;
  }
}

public OracleDatabaseImpl ( OracleConnection conn , DescriptorCache descriptorCache , MetricsCollector metrics , boolean localCaching ) { this . conn = conn ; this . sharedDescriptorCache = descriptorCache ; this . metrics = metrics ; if ( localCaching ) { localDescriptorCache = new HashMap < String , CollectionDescriptor > ( ) ; localCollectionCache = new HashMap < String , OracleCollectionImpl > ( ) ; } else { localDescriptorCache = null ; localCollectionCache = null ; } }
not part of a public api . used internally by the rest component . construct a database implementation for the specified connection . provide a metrics collector and a collection metadata descriptor cache .
