public class SpoonJobDelegate extends SpoonDelegate
loggingObject
Constructor and Description |
---|
SpoonJobDelegate(Spoon spoon) |
Modifier and Type | Method and Description |
---|---|
boolean |
addJob(org.pentaho.di.job.JobMeta jobMeta)
Add a job to the job map
|
void |
addJobGraph(org.pentaho.di.job.JobMeta jobMeta) |
void |
closeJob(org.pentaho.di.job.JobMeta jobMeta) |
void |
copyJobEntries(org.pentaho.di.job.JobMeta jobMeta,
List<org.pentaho.di.job.entry.JobEntryCopy> jec) |
void |
deleteJobEntryCopies(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.job.entry.JobEntryCopy jobEntry) |
void |
dupeJobEntry(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.job.entry.JobEntryCopy jobEntry) |
void |
editJobEntry(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.job.entry.JobEntryCopy je) |
void |
executeJob(org.pentaho.di.job.JobMeta jobMeta,
boolean local,
boolean remote,
Date replayDate,
boolean safe,
String startCopyName,
int startCopyNr) |
JobGraph |
findJobGraphOfJob(org.pentaho.di.job.JobMeta jobMeta) |
org.pentaho.di.job.JobMeta |
getJob(String name) |
org.pentaho.di.job.entry.JobEntryDialogInterface |
getJobEntryDialog(org.pentaho.di.job.entry.JobEntryInterface jobEntryInterface,
org.pentaho.di.job.JobMeta jobMeta) |
List<org.pentaho.di.job.JobMeta> |
getJobList() |
org.pentaho.di.job.JobMeta[] |
getLoadedJobs() |
org.pentaho.di.trans.step.StepDialogInterface |
getStepEntryDialog(org.pentaho.di.trans.step.StepMetaInterface stepMeta,
org.pentaho.di.trans.TransMeta transMeta,
String stepName) |
boolean |
isDefaultJobName(String name) |
org.pentaho.di.job.entry.JobEntryCopy |
newJobEntry(org.pentaho.di.job.JobMeta jobMeta,
String type_desc,
boolean openit) |
void |
newJobHop(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.job.entry.JobEntryCopy fr,
org.pentaho.di.job.entry.JobEntryCopy to) |
void |
pasteXML(org.pentaho.di.job.JobMeta jobMeta,
String clipcontent,
org.pentaho.di.core.gui.Point loc) |
void |
redoJobAction(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.core.undo.TransAction transAction) |
void |
removeJob(String key) |
org.pentaho.di.job.JobMeta |
ripDB(List<org.pentaho.di.core.database.DatabaseMeta> databases,
String jobname,
org.pentaho.di.repository.RepositoryDirectoryInterface repdir,
String directory,
org.pentaho.di.core.database.DatabaseMeta sourceDbInfo,
org.pentaho.di.core.database.DatabaseMeta targetDbInfo,
String[] tables) |
void |
ripDBWizard()
Create a job that extracts tables & data from a database.
|
void |
undoJobAction(org.pentaho.di.job.JobMeta jobMeta,
org.pentaho.di.core.undo.TransAction transAction) |
public SpoonJobDelegate(Spoon spoon)
public org.pentaho.di.job.entry.JobEntryCopy newJobEntry(org.pentaho.di.job.JobMeta jobMeta, String type_desc, boolean openit)
public org.pentaho.di.job.entry.JobEntryDialogInterface getJobEntryDialog(org.pentaho.di.job.entry.JobEntryInterface jobEntryInterface, org.pentaho.di.job.JobMeta jobMeta)
public org.pentaho.di.trans.step.StepDialogInterface getStepEntryDialog(org.pentaho.di.trans.step.StepMetaInterface stepMeta, org.pentaho.di.trans.TransMeta transMeta, String stepName)
public void editJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy je)
public void deleteJobEntryCopies(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry)
public void dupeJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry)
public void copyJobEntries(org.pentaho.di.job.JobMeta jobMeta, List<org.pentaho.di.job.entry.JobEntryCopy> jec)
public void pasteXML(org.pentaho.di.job.JobMeta jobMeta, String clipcontent, org.pentaho.di.core.gui.Point loc)
public void newJobHop(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy fr, org.pentaho.di.job.entry.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 org.pentaho.di.job.JobMeta ripDB(List<org.pentaho.di.core.database.DatabaseMeta> databases, String jobname, org.pentaho.di.repository.RepositoryDirectoryInterface repdir, String directory, org.pentaho.di.core.database.DatabaseMeta sourceDbInfo, org.pentaho.di.core.database.DatabaseMeta targetDbInfo, String[] tables)
public boolean isDefaultJobName(String name)
public JobGraph findJobGraphOfJob(org.pentaho.di.job.JobMeta jobMeta)
public boolean addJob(org.pentaho.di.job.JobMeta jobMeta)
jobMeta
- the job to add to the mappublic void closeJob(org.pentaho.di.job.JobMeta jobMeta)
jobMeta
- the transformation to close, make sure it's ok to dispose of it BEFORE you call this.public void addJobGraph(org.pentaho.di.job.JobMeta jobMeta)
public List<org.pentaho.di.job.JobMeta> getJobList()
public org.pentaho.di.job.JobMeta getJob(String name)
public org.pentaho.di.job.JobMeta[] getLoadedJobs()
public void removeJob(String key)
public void redoJobAction(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.undo.TransAction transAction)
public void undoJobAction(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.undo.TransAction transAction)