Examples of AcrossException


Examples of com.foreach.across.core.AcrossException

      if ( AopUtils.isJdkDynamicProxy( instance ) ) {
        return getProxyTarget( ( (Advised) instance ).getTargetSource().getTarget() );
      }
    }
    catch ( Exception e ) {
      throw new AcrossException( e );
    }

    return instance;
  }
View Full Code Here

Examples of com.foreach.across.core.AcrossException

      databaseInfo.productVersion = metaData.getDatabaseProductVersion();

      return databaseInfo;
    }
    catch ( SQLException sqle ) {
      throw new AcrossException( "Could not retrieve DatabaseInfo for DataSource", sqle );
    }
  }
View Full Code Here

Examples of com.foreach.across.core.AcrossException

        found = true;
      }
    }

    if ( !found ) {
      throw new AcrossException( "Could not find any defined table with name " + original );
    }
  }
View Full Code Here

Examples of com.foreach.across.core.AcrossException

      if ( StringUtils.equals( original, databaseObject.getOriginalName() ) ) {
        return databaseObject.getCurrentName();
      }
    }

    throw new AcrossException( "Could not find any defined table with name " + original );
  }
View Full Code Here

Examples of com.foreach.across.core.AcrossException

      if ( resource.exists() ) {
        try {
          propertySources.addLast( new ResourcePropertySource( resource ) );
        }
        catch ( IOException ioe ) {
          throw new AcrossException( "Failed to load property resource " + resource, ioe );
        }
      }
    }

    addPropertySources( propertySources );
View Full Code Here

Examples of com.foreach.across.core.AcrossException

  @Bean(destroyMethod = "close")
  @Lazy
  @DependsOn({ "acrossCoreSchemaInstaller", AcrossContext.DATASOURCE })
  public SqlBasedDistributedLockManager sqlBasedDistributedLockManager( DataSource acrossDataSource ) {
    if ( acrossDataSource == null ) {
      throw new AcrossException(
          "Unable to create the DistributedLockRepository because there is no DataSource configured.  " +
              "A DataSource is required to install the core schema."
      );
    }
View Full Code Here

Examples of com.foreach.across.core.AcrossException

  @DependsOn({ "acrossCoreSchemaInstaller", AcrossContext.DATASOURCE })
  public AcrossInstallerRepository installerRepository() {
    DataSource dataSource = acrossDataSource();

    if ( dataSource == null ) {
      throw new AcrossException(
          "Unable to create the AcrossInstallerRepository because there is no DataSource configured.  " +
              "A DataSource is required if there is at least one non-disabled installer."
      );
    }
View Full Code Here

Examples of com.foreach.across.core.AcrossException

  @DependsOn(AcrossContext.DATASOURCE)
  public AcrossCoreSchemaInstaller acrossCoreSchemaInstaller() {
    DataSource dataSource = acrossDataSource();

    if ( dataSource == null ) {
      throw new AcrossException(
          "Unable to create the AcrossCoreSchemaInstaller because there is no DataSource configured.  " +
              "A DataSource is required if there is at least one non-disabled installer."
      );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.