@Test public void TestRepoWithJavaAPIClientDatabaseClient() throws Exception { DatabaseClient databaseClient = DatabaseClientFactory.newClient(host, port, user, password, DatabaseClientFactory.Authentication.valueOf("DIGEST")); Repository rep = new MarkLogicRepository(databaseClient); rep.initialize(); Assert.assertTrue(rep instanceof Repository); RepositoryConnection conn = rep.getConnection(); Assert.assertTrue(conn instanceof RepositoryConnection); conn.close(); rep.shutDown(); }
@Override public MarkLogicRepositoryConnection getConnection() throws RepositoryException { if (!isInitialized()) { throw new RepositoryException("MarkLogicRepository not initialized."); } return new MarkLogicRepositoryConnection(this, getMarkLogicClient(), quadMode); }
MarkLogicRepository extends RepositoryBase implements Repository,MarkLogicClientDependent { @Override public MarkLogicRepositoryConnection getConnection() throws RepositoryException { if (!isInitialized()) { throw new RepositoryException("MarkLogicRepository not initialized."); } return new MarkLogicRepositoryConnection(this, getMarkLogicClient(), quadMode); } }
MarkLogicRepository extends RepositoryBase implements Repository,MarkLogicClientDependent { @Override public MarkLogicRepositoryConnection getConnection() throws RepositoryException { if (!isInitialized()) { throw new RepositoryException("MarkLogicRepository not initialized."); } return new MarkLogicRepositoryConnection(this, getMarkLogicClient(), quadMode); } MarkLogicRepository(URL connectionString);  MarkLogicRepository(String host, int port, String user, String password, String auth);  MarkLogicRepository(DatabaseClient databaseClient); }
MarkLogicRepository extends RepositoryBase implements Repository,MarkLogicClientDependent { @Override public MarkLogicRepositoryConnection getConnection() throws RepositoryException { if (!isInitialized()) { throw new RepositoryException("MarkLogicRepository not initialized."); } return new MarkLogicRepositoryConnection(this, getMarkLogicClient(), quadMode); } MarkLogicRepository(URL connectionString);  MarkLogicRepository(String host, int port, String user, String password, String auth);  MarkLogicRepository(DatabaseClient databaseClient); ValueFactory getValueFactory(); void setValueFactory(ValueFactory f); @Override File getDataDir(); @Override void setDataDir(File dataDir); @Override boolean isWritable(); @Override MarkLogicRepositoryConnection getConnection(); @Override synchronized MarkLogicClient getMarkLogicClient(); @Override synchronized void setMarkLogicClient(MarkLogicClient client); boolean isQuadMode(); void setQuadMode(boolean quadMode); }
MarkLogicRepository extends RepositoryBase implements Repository,MarkLogicClientDependent { @Override public MarkLogicRepositoryConnection getConnection() throws RepositoryException { if (!isInitialized()) { throw new RepositoryException("MarkLogicRepository not initialized."); } return new MarkLogicRepositoryConnection(this, getMarkLogicClient(), quadMode); } MarkLogicRepository(URL connectionString);  MarkLogicRepository(String host, int port, String user, String password, String auth);  MarkLogicRepository(DatabaseClient databaseClient); ValueFactory getValueFactory(); void setValueFactory(ValueFactory f); @Override File getDataDir(); @Override void setDataDir(File dataDir); @Override boolean isWritable(); @Override MarkLogicRepositoryConnection getConnection(); @Override synchronized MarkLogicClient getMarkLogicClient(); @Override synchronized void setMarkLogicClient(MarkLogicClient client); boolean isQuadMode(); void setQuadMode(boolean quadMode);  }