public class SpoonJobDelegate extends SpoonDelegate
log, loggingObject, spoon
Constructor and Description |
---|
SpoonJobDelegate(Spoon spoon) |
Modifier and Type | Method and Description |
---|---|
boolean |
addJob(JobMeta jobMeta)
Add a job to the job map
|
void |
addJobGraph(JobMeta jobMeta) |
void |
closeJob(JobMeta jobMeta) |
void |
copyJobEntries(List<JobEntryCopy> jec) |
void |
deleteJobEntryCopies(JobMeta jobMeta,
JobEntryCopy jobEntry) |
void |
deleteJobEntryCopies(JobMeta job,
JobEntryCopy[] jobEntries) |
void |
dupeJobEntry(JobMeta jobMeta,
JobEntryCopy jobEntry) |
void |
editJobEntry(JobMeta jobMeta,
JobEntryCopy je) |
void |
executeJob(JobMeta jobMeta,
boolean local,
boolean remote,
Date replayDate,
boolean safe,
String startCopyName,
int startCopyNr) |
JobGraph |
findJobGraphOfJob(JobMeta jobMeta) |
JobMeta |
getJob(String name) |
JobEntryDialogInterface |
getJobEntryDialog(JobEntryInterface jobEntryInterface,
JobMeta jobMeta) |
List<JobMeta> |
getJobList() |
JobMeta[] |
getLoadedJobs() |
protected Spoon |
getSpoon() |
boolean |
isDefaultJobName(String name) |
JobEntryCopy |
newJobEntry(JobMeta jobMeta,
String type_desc,
boolean openit) |
void |
newJobHop(JobMeta jobMeta,
JobEntryCopy fr,
JobEntryCopy to) |
void |
pasteXML(JobMeta jobMeta,
String clipcontent,
Point loc) |
void |
redoJobAction(JobMeta jobMeta,
TransAction transAction) |
JobMeta |
ripDB(List<DatabaseMeta> databases,
String jobname,
RepositoryDirectoryInterface repdir,
String directory,
DatabaseMeta sourceDbInfo,
DatabaseMeta targetDbInfo,
String[] tables) |
void |
ripDBWizard()
Create a job that extracts tables & data from a database.
|
void |
undoJobAction(JobMeta jobMeta,
TransAction transAction) |
getMaxTabLength
public SpoonJobDelegate(Spoon spoon)
public JobEntryCopy newJobEntry(JobMeta jobMeta, String type_desc, boolean openit)
public JobEntryDialogInterface getJobEntryDialog(JobEntryInterface jobEntryInterface, JobMeta jobMeta)
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(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 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 © 2019 Hitachi Vantara. All rights reserved.