/** * Get the repository import location. WARNING: NOT THREAD SAFE, ONLY ONE IMPORT AT A TIME PLEASE!! * * @return the import location in the repository in the form of a repository directory. If no import location is set, * null is returned. */ public static RepositoryDirectoryInterface getRepositoryImportLocation() { if ( location == null ) { location = new RepositoryImportLocation(); } return location.repositoryDirectory; }
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); jobObjectId = repository.getTransformationID( jobName, repositoryDirectoryInterface ); }
RepositoryImportLocation.setRepositoryImportLocation( baseDirectory ); } finally { RepositoryImportLocation.setRepositoryImportLocation( null );
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
/** * Sets the repository import location. WARNING: NOT THREAD SAFE, ONLY ONE IMPORT AT A TIME PLEASE!! * * ALSO MAKE SURE TO CLEAR THE IMPORT DIRECTORY AFTER IMPORT!! (sorry for shouting) * * @param repositoryDirectory * the import location in the repository in the form of a repository directory. * */ public static void setRepositoryImportLocation( RepositoryDirectoryInterface repositoryDirectory ) { if ( location == null ) { location = new RepositoryImportLocation(); } location.repositoryDirectory = repositoryDirectory; } }
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
@Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directoryPath ); transObjectId = repository.getTransformationID( transName, repositoryDirectoryInterface ); }
/** * Look up the references after import * * @param repository the repository to reference. */ @Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the trans name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directory ); transObjectId = repository.getTransformationID( transname, repositoryDirectoryInterface ); }
/** * Look up the references after import * * @param repository * the repository to reference. */ @Override public void lookupRepositoryReferences( Repository repository ) throws KettleException { // The correct reference is stored in the job name and directory attributes... // RepositoryDirectoryInterface repositoryDirectoryInterface = RepositoryImportLocation.getRepositoryImportLocation().findDirectory( directory ); jobObjectId = repository.getJobId( jobname, repositoryDirectoryInterface ); }