Class SpoonJobDelegate
java.lang.Object
org.pentaho.di.ui.spoon.delegates.SpoonDelegate
org.pentaho.di.ui.spoon.delegates.SpoonJobDelegate
-
Field Summary
Fields inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
log, loggingObject, spoon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addJob
(org.pentaho.di.job.JobMeta jobMeta) Add a job to the job mapvoid
addJobGraph
(org.pentaho.di.job.JobMeta jobMeta) void
closeJob
(org.pentaho.di.job.JobMeta jobMeta) void
copyJobEntries
(List<org.pentaho.di.job.entry.JobEntryCopy> jec) void
deleteJobEntryCopies
(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) void
deleteJobEntryCopies
(org.pentaho.di.job.JobMeta job, org.pentaho.di.job.entry.JobEntryCopy[] jobEntries) 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) findJobGraphOfJob
(org.pentaho.di.job.JobMeta jobMeta) org.pentaho.di.job.JobMeta
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>
org.pentaho.di.job.JobMeta[]
protected Spoon
getSpoon()
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
void
redoJobAction
(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.undo.TransAction transAction) 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
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) Methods inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
getMaxTabLength
-
Constructor Details
-
SpoonJobDelegate
-
-
Method Details
-
newJobEntry
public org.pentaho.di.job.entry.JobEntryCopy newJobEntry(org.pentaho.di.job.JobMeta jobMeta, String type_desc, boolean openit) -
getJobEntryDialog
public org.pentaho.di.job.entry.JobEntryDialogInterface getJobEntryDialog(org.pentaho.di.job.entry.JobEntryInterface jobEntryInterface, org.pentaho.di.job.JobMeta jobMeta) -
editJobEntry
public void editJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy je) -
deleteJobEntryCopies
public void deleteJobEntryCopies(org.pentaho.di.job.JobMeta job, org.pentaho.di.job.entry.JobEntryCopy[] jobEntries) -
deleteJobEntryCopies
public void deleteJobEntryCopies(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) -
dupeJobEntry
public void dupeJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) -
copyJobEntries
-
pasteXML
public void pasteXML(org.pentaho.di.job.JobMeta jobMeta, String clipcontent, org.pentaho.di.core.gui.Point loc) -
newJobHop
public void newJobHop(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy fr, org.pentaho.di.job.entry.JobEntryCopy to) -
ripDBWizard
public void ripDBWizard()Create a job that extracts tables & data from a database.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
-
ripDB
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) -
isDefaultJobName
-
findJobGraphOfJob
-
addJob
public boolean addJob(org.pentaho.di.job.JobMeta jobMeta) Add a job to the job map- Parameters:
jobMeta
- the job to add to the map- Returns:
- true if the job was added
-
closeJob
public void closeJob(org.pentaho.di.job.JobMeta jobMeta) - Parameters:
jobMeta
- the transformation to close, make sure it's ok to dispose of it BEFORE you call this.
-
getSpoon
-
addJobGraph
public void addJobGraph(org.pentaho.di.job.JobMeta jobMeta) -
getJobList
-
getJob
-
getLoadedJobs
public org.pentaho.di.job.JobMeta[] getLoadedJobs() -
redoJobAction
public void redoJobAction(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.undo.TransAction transAction) -
undoJobAction
public void undoJobAction(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.undo.TransAction transAction) -
executeJob
public void executeJob(org.pentaho.di.job.JobMeta jobMeta, boolean local, boolean remote, Date replayDate, boolean safe, String startCopyName, int startCopyNr) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-