Class SpoonJobDelegate
- java.lang.Object
-
- org.pentaho.di.ui.spoon.delegates.SpoonDelegate
-
- org.pentaho.di.ui.spoon.delegates.SpoonJobDelegate
-
public class SpoonJobDelegate extends SpoonDelegate
-
-
Field Summary
-
Fields inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
log, loggingObject, spoon
-
-
Constructor Summary
Constructors Constructor Description SpoonJobDelegate(Spoon spoon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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)
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()
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
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)
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)
-
Methods inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
getMaxTabLength
-
-
-
-
Constructor Detail
-
SpoonJobDelegate
public SpoonJobDelegate(Spoon spoon)
-
-
Method Detail
-
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
public void copyJobEntries(List<org.pentaho.di.job.entry.JobEntryCopy> jec)
-
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
public boolean isDefaultJobName(String name)
-
findJobGraphOfJob
public JobGraph findJobGraphOfJob(org.pentaho.di.job.JobMeta jobMeta)
-
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
protected Spoon getSpoon()
-
addJobGraph
public void addJobGraph(org.pentaho.di.job.JobMeta jobMeta)
-
getJobList
public List<org.pentaho.di.job.JobMeta> getJobList()
-
getJob
public org.pentaho.di.job.JobMeta getJob(String name)
-
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)
-
-