/** Release the organization schema. */ public void releaseOrganizationSchema() throws AdminException { synchronized (this) { nbConnected--; if (getOrganization() != null && !inTransaction && nbConnected <= 0) { com.stratelia.webactiv.organization.OrganizationSchemaPool.releaseOrganizationSchema( getOrganization()); getOrganization().close(); organization = null; } } }
/** Get an organization schema from the pool. */ public void getOrganizationSchema() throws AdminException { synchronized (this) { if (getOrganization() == null) { try { organization = OrganizationSchemaPool.getOrganizationSchema(); nbConnected = 0; } catch (AdminPersistenceException e) { throw new AdminException( "DomainDriverManager.getOrganizationSchema", SilverpeasException.FATAL, "admin.MSG_FATAL_GET_ORGANIZATION", e); } } nbConnected++; } }