Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.LocalDatabase


      ConnectorType connectorType) throws SQLException {
    // If I can successfully establish a Connection to the database,
    // assume the JdbcDatabase is functional.
    jdbcDatabase.getDataSource().getConnection().close();

    final LocalDatabase localDatabase =
        new LocalDatabaseImpl(jdbcDatabase, connectorTypeName, connectorType);
    return new ConnectorPersistentStore() {
      @Override
      public com.google.enterprise.connector.spi.LocalDocumentStore getLocalDocumentStore() {
        return null;
View Full Code Here


    ConnectorPersistentStore cpStore =
        factory.newConnectorPersistentStore("test", "TestConnectorA", null);
    assertNotNull(cpStore);

    LocalDatabase localDb = cpStore.getLocalDatabase();
    assertNotNull(localDb);
    assertSame(database.getDataSource(), localDb.getDataSource());
    assertEquals(database.getDatabaseType(), localDb.getDatabaseType());

    assertNull(cpStore.getLocalDocumentStore());
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.LocalDatabase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.