Package net.sf.hajdbc.dialect

Examples of net.sf.hajdbc.dialect.Dialect


  }
 
  private synchronized void setDatabaseProperties(Connection connection) throws SQLException
  {
    DatabaseMetaData metaData = connection.getMetaData();
    Dialect dialect = this.cluster.getDialect();
    this.properties = new EagerDatabaseProperties(metaData, dialect);
  }
View Full Code Here


  }
 
  private DatabaseProperties createDatabaseProperties(Connection connection) throws SQLException
  {
    DatabaseMetaData metaData = connection.getMetaData();
    Dialect dialect = this.cluster.getDialect();
    return new EagerDatabaseProperties(metaData, dialect);
  }
View Full Code Here

    {
      // Use default dialect
      factory = ServiceLoaders.findRequiredService(DialectFactory.class);
    }
   
    Dialect dialect = factory.createDialect();

    Connection connection = this.pool.take();
   
    try
    {
View Full Code Here

  public <Z, D extends Database<Z>, T, R, E extends Exception> SortedMap<D, R> invoke(ProxyFactory<Z, D, T, E> map, Invoker<Z, D, T, R, E> invoker) throws E
  {
    DatabaseCluster<Z, D> cluster = map.getRoot().getDatabaseCluster();
    ExceptionFactory<E> exceptionFactory = map.getExceptionFactory();
    Balancer<Z, D> balancer = cluster.getBalancer();
    Dialect dialect = cluster.getDialect();
    StateManager stateManager = cluster.getStateManager();
   
    while (true)
    {
      D database = this.selector.selectDatabase(balancer);
View Full Code Here

   */
  @Override
  public <Z, D extends Database<Z>, T, R, E extends Exception> SortedMap<D, R> invoke(ProxyFactory<Z, D, T, E> map, Invoker<Z, D, T, R, E> invoker) throws E
  {
    DatabaseCluster<Z, D> cluster = map.getDatabaseCluster();
    Dialect dialect = cluster.getDialect();
    StateManager stateManager = cluster.getStateManager();

    for (Map.Entry<D, T> entry: map.entries())
    {
      D database = entry.getKey();
View Full Code Here

   */
  @Override
  public <Z, D extends Database<Z>, T, R, E extends Exception> SortedMap<D, R> invoke(ProxyFactory<Z, D, T, E> map, Invoker<Z, D, T, R, E> invoker) throws E
  {
    DatabaseCluster<Z, D> cluster = map.getDatabaseCluster();
    Dialect dialect = cluster.getDialect();
    StateManager stateManager = cluster.getStateManager();

    for (Map.Entry<D, T> entry: map.entries())
    {
      D database = entry.getKey();
View Full Code Here

    SortedMap<D, E> exceptionMap = results.getValue();
   
    if (!exceptionMap.isEmpty())
    {
      DatabaseCluster<Z, D> cluster = map.getDatabaseCluster();
      Dialect dialect = cluster.getDialect();
     
      List<D> failedDatabases = new ArrayList<D>(exceptionMap.size());
     
      // Determine which exceptions are due to failures
      for (Map.Entry<D, E> entry: exceptionMap.entrySet())
View Full Code Here

  public <Z, D extends Database<Z>, T, R, E extends Exception> SortedMap<D, R> invoke(ProxyFactory<Z, D, T, E> map, Invoker<Z, D, T, R, E> invoker) throws E
  {
    DatabaseCluster<Z, D> cluster = map.getRoot().getDatabaseCluster();
    ExceptionFactory<E> exceptionFactory = map.getExceptionFactory();
    Balancer<Z, D> balancer = cluster.getBalancer();
    Dialect dialect = cluster.getDialect();
    StateManager stateManager = cluster.getStateManager();
   
    while (true)
    {
      D database = this.selector.selectDatabase(balancer);
View Full Code Here

    {
      // Use default dialect
      factory = ServiceLoaders.findRequiredService(DialectFactory.class);
    }
   
    Dialect dialect = factory.createDialect();

    Connection connection = this.pool.take();
   
    try
    {
View Full Code Here

   * @see net.sf.hajdbc.SynchronizationStrategy#synchronize(net.sf.hajdbc.sync.SynchronizationContext)
   */
  @Override
  public <Z, D extends Database<Z>> void synchronize(SynchronizationContext<Z, D> context) throws SQLException
  {
    Dialect dialect = context.getDialect();
    Decoder decoder = context.getDecoder();
    DumpRestoreSupport support = dialect.getDumpRestoreSupport();
   
    if (support == null)
    {
      throw new SQLException(Messages.DUMP_RESTORE_UNSUPPORTED.getMessage(dialect));
    }
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.dialect.Dialect

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.