public class SpoonJobDelegate extends SpoonDelegate
log, loggingObject, spoon
Constructor and Description |
---|
SpoonJobDelegate(Spoon spoon) |
public SpoonJobDelegate(Spoon spoon)
public JobEntryCopy newJobEntry(JobMeta jobMeta, String type_desc, boolean openit)
public JobEntryDialogInterface getJobEntryDialog(JobEntryInterface jobEntryInterface, JobMeta jobMeta)
public StepDialogInterface getStepEntryDialog(StepMetaInterface stepMeta, TransMeta transMeta, String stepName)
public void editJobEntry(JobMeta jobMeta, JobEntryCopy je)
public void deleteJobEntryCopies(JobMeta job, JobEntryCopy[] jobEntries)
public void deleteJobEntryCopies(JobMeta jobMeta, JobEntryCopy jobEntry)
public void dupeJobEntry(JobMeta jobMeta, JobEntryCopy jobEntry)
public void copyJobEntries(JobMeta jobMeta, List<JobEntryCopy> jec)
public void newJobHop(JobMeta jobMeta, JobEntryCopy fr, JobEntryCopy to)
public void ripDBWizard()
0) Select the database to rip
1) Select the tables in the database to rip
2) Select the database to dump to
3) Select the repository directory in which it will end up
4) Select a name for the new job
5) Create an empty job with the selected name.
6) Create 1 transformation for every selected table
7) add every created transformation to the job & evaluate
public JobMeta ripDB(List<DatabaseMeta> databases, String jobname, RepositoryDirectoryInterface repdir, String directory, DatabaseMeta sourceDbInfo, DatabaseMeta targetDbInfo, String[] tables)
public boolean isDefaultJobName(String name)
public boolean addJob(JobMeta jobMeta)
jobMeta
- the job to add to the mappublic void closeJob(JobMeta jobMeta)
jobMeta
- the transformation to close, make sure it's ok to dispose of it BEFORE you call this.protected Spoon getSpoon()
public void addJobGraph(JobMeta jobMeta)
public JobMeta[] getLoadedJobs()
public void removeJob(String key)
public void redoJobAction(JobMeta jobMeta, TransAction transAction)
public void undoJobAction(JobMeta jobMeta, TransAction transAction)
public void executeJob(JobMeta jobMeta, boolean local, boolean remote, Date replayDate, boolean safe, String startCopyName, int startCopyNr) throws KettleException
KettleException
Copyright © 2017 Hitachi Vantara. All rights reserved.