Tabnine Logo
ClientProperties.getDatastores
Code IndexAdd Tabnine to your IDE (free)

How to use
getDatastores
method
in
com.impetus.kundera.configure.ClientProperties

Best Java code snippets using com.impetus.kundera.configure.ClientProperties.getDatastores (Showing top 17 results out of 315)

origin: Impetus/Kundera

private HashMap<String, String> initializeProperties()
{
  if (clientProperties != null && clientProperties.getDatastores() != null)
  {
    for (DataStore dataStore : clientProperties.getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("redis"))
      {
        return new HashMap(dataStore.getConnection().getProperties());
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

  public DataStore getDataStore()
  {
    if (getClientProperties() != null && getClientProperties().getDatastores() != null)
    {
      for (DataStore dataStore : getClientProperties().getDatastores())
      {
        if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("hbase"))
        {
          return dataStore;
        }
      }
    }
    return null;
  }
}
origin: Impetus/Kundera

public DataStore getDataStore()
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("mongo"))
      {
        return dataStore;
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

  /**
   * Gets the data store.
   * 
   * @return the data store
   */
  public DataStore getDataStore()
  {
    if (getClientProperties() != null && getClientProperties().getDatastores() != null)
    {
      for (DataStore dataStore : getClientProperties().getDatastores())
      {
        if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(HBASE))
        {
          return dataStore;
        }
      }
    }
    return null;
  }
}
origin: Impetus/Kundera

/**
 * Gets the data store.
 * 
 * @param datastore
 *            the datastore
 * @return the data store
 */
public DataStore getDataStore(String datastore)
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(datastore))
      {
        return dataStore;
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

  protected DataStore getDataStore(final String dataStoreName)
  {
    if (getClientProperties() != null)
    {
      if (getClientProperties().getDatastores() != null)
      {
        for (DataStore dataStore : getClientProperties().getDatastores())
        {
          if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(dataStoreName))
          {
            return dataStore;
          }
        }
      }
      if (log.isWarnEnabled())
      {
        log.warn("No data store configuration found, returning null.");
      }
    }
    return null;
  }
}
origin: Impetus/Kundera

/**
 * Returns datastore instance for given {@link ClientProperties} for
 * OracleNoSQL
 * 
 * @return
 */
public DataStore getDataStore()
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(ORACLE_NOSQL_DATASTORE))
      {
        return dataStore;
      }
    }
  }
  return null;
}

origin: Impetus/Kundera

/**
 * Gets the data store.
 * 
 * @param datastore
 *            the datastore
 * @return the data store
 */
public DataStore getDataStore(String datastore)
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(datastore))
      {
        return dataStore;
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

/**
 * Gets the data store.
 * 
 * @param datastore
 *            the datastore
 * @return the data store
 */
public DataStore getDataStore(String datastore)
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(datastore))
      {
        return dataStore;
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

  /**
   * Returns datastore instance for given {@link ClientProperties} for
   * Neo4j
   * 
   * @return
   */
  public DataStore getDataStore()
  {
    if (getClientProperties() != null && getClientProperties().getDatastores() != null)
    {
      for (DataStore dataStore : getClientProperties().getDatastores())
      {
        if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(NEO4J_DATASTORE))
        {
          return dataStore;
        }
      }
    }
    return null;
  }
}
origin: Impetus/Kundera

/**
 * Gets the data store.
 * 
 * @param datastore
 *            the datastore
 * @return the data store
 */
public DataStore getDataStore(String datastore)
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(datastore))
      {
        return dataStore;
      }
    }
  }
  return null;
}
origin: Impetus/Kundera

private void assertValues(ClientProperties cp)
  Assert.assertNotNull(cp.getDatastores());
  Assert.assertEquals(3, cp.getDatastores().size());
  for (DataStore store : cp.getDatastores())
origin: com.impetus.client/kundera-redis

private HashMap<String, String> initializeProperties()
{
  if (clientProperties != null && clientProperties.getDatastores() != null)
  {
    for (DataStore dataStore : clientProperties.getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("redis"))
      {
        return new HashMap(dataStore.getConnection().getProperties());
      }
    }
  }
  return null;
}
origin: com.impetus.client/kundera-hbase

  public DataStore getDataStore()
  {
    if (getClientProperties() != null && getClientProperties().getDatastores() != null)
    {
      for (DataStore dataStore : getClientProperties().getDatastores())
      {
        if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("hbase"))
        {
          return dataStore;
        }
      }
    }
    return null;
  }
}
origin: com.impetus.kundera.client/kundera-mongo

public DataStore getDataStore()
{
  if (getClientProperties() != null && getClientProperties().getDatastores() != null)
  {
    for (DataStore dataStore : getClientProperties().getDatastores())
    {
      if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("mongo"))
      {
        return dataStore;
      }
    }
  }
  return null;
}
origin: com.impetus.kundera.client/kundera-hbase

  public DataStore getDataStore()
  {
    if (getClientProperties() != null && getClientProperties().getDatastores() != null)
    {
      for (DataStore dataStore : getClientProperties().getDatastores())
      {
        if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase("hbase"))
        {
          return dataStore;
        }
      }
    }
    return null;
  }
}
origin: com.impetus.kundera.client/kundera-neo4j

  /**
   * Returns datastore instance for given {@link ClientProperties} for
   * Neo4j
   * 
   * @return
   */
  public DataStore getDataStore()
  {
    if (getClientProperties() != null && getClientProperties().getDatastores() != null)
    {
      for (DataStore dataStore : getClientProperties().getDatastores())
      {
        if (dataStore.getName() != null && dataStore.getName().trim().equalsIgnoreCase(NEO4J_DATASTORE))
        {
          return dataStore;
        }
      }
    }
    return null;
  }
}
com.impetus.kundera.configureClientPropertiesgetDatastores

Popular methods of ClientProperties

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getContentResolver (Context)
    • onRequestPermissionsResult (Fragment)
    • getResourceAsStream (ClassLoader)
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • Menu (java.awt)
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • Set (java.util)
      A Set is a data structure which does not allow duplicate elements.
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • Github Copilot alternatives
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now