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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddJob(org.pentaho.di.job.JobMeta jobMeta) Add a job to the job mapvoidaddJobGraph(org.pentaho.di.job.JobMeta jobMeta) voidcloseJob(org.pentaho.di.job.JobMeta jobMeta) voidcopyJobEntries(List<org.pentaho.di.job.entry.JobEntryCopy> jec) voiddeleteJobEntryCopies(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) voiddeleteJobEntryCopies(org.pentaho.di.job.JobMeta job, org.pentaho.di.job.entry.JobEntryCopy[] jobEntries) voiddupeJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy jobEntry) voideditJobEntry(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy je) voidexecuteJob(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.JobMetaorg.pentaho.di.job.entry.JobEntryDialogInterfacegetJobEntryDialog(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 SpoongetSpoon()booleanisDefaultJobName(String name) org.pentaho.di.job.entry.JobEntryCopynewJobEntry(org.pentaho.di.job.JobMeta jobMeta, String type_desc, boolean openit) voidnewJobHop(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.job.entry.JobEntryCopy fr, org.pentaho.di.job.entry.JobEntryCopy to) voidvoidredoJobAction(org.pentaho.di.job.JobMeta jobMeta, org.pentaho.di.core.undo.TransAction transAction) org.pentaho.di.job.JobMetaripDB(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) voidCreate a job that extracts tables & data from a database.voidundoJobAction(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
-