Codota Logo
PooledConnectionFactoryConfigurationBuilder.username
Code IndexAdd Codota to your IDE (free)

How to use
username
method
in
org.infinispan.persistence.jdbc.configuration.PooledConnectionFactoryConfigurationBuilder

Best Java code snippets using org.infinispan.persistence.jdbc.configuration.PooledConnectionFactoryConfigurationBuilder.username (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.infinispan/infinispan-tools

  private static void createConnectionConfig(StoreProperties props, JdbcStringBasedStoreConfigurationBuilder storeBuilder) {
   props.required(props.key(CONNECTION_POOL, CONNECTION_URL));
   props.required(props.key(CONNECTION_POOL, DRIVER_CLASS));

   storeBuilder.connectionPool()
      .connectionUrl(props.get(CONNECTION_POOL, CONNECTION_URL))
      .driverClass(props.get(CONNECTION_POOL, DRIVER_CLASS))
      .username(props.get(CONNECTION_POOL, USERNAME))
      .password(props.get(CONNECTION_POOL, PASSWORD))
      .create();
  }
}
origin: org.infinispan/infinispan-cachestore-jdbc

public static ConnectionFactoryConfigurationBuilder<?> configureUniqueConnectionFactory(AbstractJdbcStoreConfigurationBuilder<?, ?> store) {
 switch (dt) {
 case H2:
   return store
    .connectionPool()
      .driverClass(org.h2.Driver.class)
      .connectionUrl(String.format("jdbc:h2:mem:%s;DB_CLOSE_DELAY=-1", extractTestName() + userIndex.incrementAndGet()))
      .username("sa");
 case MYSQL:
   return store
    .simpleConnection()
      .driverClass(com.mysql.jdbc.Driver.class)
      .connectionUrl("jdbc:mysql://localhost/infinispan?user=ispn&password=ispn")
      .username("ispn")
      .password("ispn");
 default:
   throw new RuntimeException("Cannot configure connection for database type "+dt);
 }
}
origin: org.infinispan/infinispan-tools

private void parseConnectionPoolAttributes(XMLExtendedStreamReader reader,
                     PooledConnectionFactoryConfigurationBuilder<?> builder) throws XMLStreamException {
 for (int i = 0; i < reader.getAttributeCount(); i++) {
   ParseUtils.requireNoNamespaceAttribute(reader, i);
   String value = replaceProperties(reader.getAttributeValue(i));
   Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
   switch (attribute) {
    case CONNECTION_URL: {
      builder.connectionUrl(value);
      break;
    }
    case DRIVER_CLASS: {
      builder.driverClass(value);
      break;
    }
    case PASSWORD: {
      builder.password(value);
      break;
    }
    case USERNAME: {
      builder.username(value);
      break;
    }
    default: {
      throw ParseUtils.unexpectedAttribute(reader, i);
    }
   }
 }
 ParseUtils.requireNoContent(reader);
}
origin: org.infinispan/infinispan-cachestore-jdbc

builder.username(value);
break;
origin: org.infinispan/infinispan-lucene-directory

@Override
protected EmbeddedCacheManager createCacheManager() throws Exception {
 ConfigurationBuilder cb = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
 cb.persistence()
    .addStore(JdbcStringBasedStoreConfigurationBuilder.class)
    .preload(true)
    .key2StringMapper(LuceneKey2StringMapper.class)
    .table()
    .idColumnName("ID_COLUMN")
    .idColumnType("VARCHAR(255)")
    .tableNamePrefix("ISPN_JDBC")
    .dataColumnName("DATA_COLUMN")
    .dataColumnType("BLOB")
    .timestampColumnName("TIMESTAMP_COLUMN")
    .timestampColumnType("BIGINT")
    .connectionPool()
    .driverClass(org.h2.Driver.class)
    .connectionUrl("jdbc:h2:mem:infinispan;DB_CLOSE_DELAY=0")
    .username("sa");
 return TestCacheManagerFactory.createClusteredCacheManager(cb);
}
org.infinispan.persistence.jdbc.configurationPooledConnectionFactoryConfigurationBuilderusername

Popular methods of PooledConnectionFactoryConfigurationBuilder

  • connectionUrl
  • driverClass
  • password
  • create
  • fetchPersistentState
  • propertyFile
  • withProperties

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • startActivity (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now