public DB forSite(final long siteId) {
      return siteId == this.siteId ? this : new DB(this.connectionSupplier, siteId, this.taxonomyTermCaches.keySet(), this.taxonomyCacheTimeout,
              this.userCache, this.usernameCache, this.metrics);
   }
public DB forSite ( final long siteId ) { return siteId == this . siteId ? this : new DB ( this . connectionSupplier , siteId , this . taxonomyTermCaches . keySet ( ) , this . taxonomyCacheTimeout , this . userCache , this . usernameCache , this . metrics ) ; }
Creates a database for another site with shared user caches, metrics and taxonomy terms.
@param siteId The site id.
@return The site-specific database.