public class KettleDatabaseRepositoryJobDelegate extends KettleDatabaseRepositoryBaseDelegate
Modifier and Type | Field and Description |
---|---|
static String |
JOB_ATTRIBUTE_PREFIX |
Constructor and Description |
---|
KettleDatabaseRepositoryJobDelegate(KettleDatabaseRepository repository) |
Modifier and Type | Method and Description |
---|---|
int |
countJobParameter(org.pentaho.di.repository.ObjectId id_job)
Count the number of parameters of a job.
|
boolean |
existsJobMeta(String name,
org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory,
org.pentaho.di.repository.RepositoryObjectType objectType) |
org.pentaho.di.core.RowMetaAndData |
getJob(org.pentaho.di.repository.ObjectId id_job) |
boolean |
getJobAttributeBoolean(org.pentaho.di.repository.ObjectId id_job,
int nr,
String code) |
long |
getJobAttributeInteger(org.pentaho.di.repository.ObjectId id_job,
int nr,
String code) |
String |
getJobAttributeString(org.pentaho.di.repository.ObjectId id_job,
int nr,
String code) |
org.pentaho.di.core.RowMetaAndData |
getJobHop(org.pentaho.di.repository.ObjectId id_job_hop) |
org.pentaho.di.repository.ObjectId |
getJobHopID(org.pentaho.di.repository.ObjectId id_job,
org.pentaho.di.repository.ObjectId id_jobentry_copy_from,
org.pentaho.di.repository.ObjectId id_jobentry_copy_to) |
org.pentaho.di.repository.ObjectId |
getJobID(String name,
org.pentaho.di.repository.ObjectId id_directory) |
String |
getJobParameterDefault(org.pentaho.di.repository.ObjectId id_job,
int nr)
Get a job parameter default.
|
String |
getJobParameterDescription(org.pentaho.di.repository.ObjectId id_job,
int nr)
Get a job parameter description.
|
String |
getJobParameterKey(org.pentaho.di.repository.ObjectId id_job,
int nr)
Get a job parameter key.
|
String[] |
getJobsWithIDList(List<Object[]> list,
org.pentaho.di.core.row.RowMetaInterface rowMeta) |
String[] |
getJobsWithIDList(org.pentaho.di.repository.ObjectId[] ids) |
int |
getNrJobHops(org.pentaho.di.repository.ObjectId id_job) |
int |
getNrJobs() |
int |
getNrJobs(org.pentaho.di.repository.ObjectId id_directory) |
org.pentaho.di.repository.ObjectId |
insertJobHop(org.pentaho.di.repository.ObjectId id_job,
org.pentaho.di.repository.ObjectId id_jobentry_copy_from,
org.pentaho.di.repository.ObjectId id_jobentry_copy_to,
boolean enabled,
boolean evaluation,
boolean unconditional) |
void |
insertJobParameter(org.pentaho.di.repository.ObjectId id_job,
long nr,
String key,
String defValue,
String description)
Insert a parameter for a job in the repository.
|
JobHopMeta |
loadJobHopMeta(org.pentaho.di.repository.ObjectId id_job_hop,
List<JobEntryCopy> jobcopies) |
JobMeta |
loadJobMeta(String jobname,
org.pentaho.di.repository.RepositoryDirectoryInterface repdir)
Load a job from the repository
|
JobMeta |
loadJobMeta(String jobname,
org.pentaho.di.repository.RepositoryDirectoryInterface repdir,
org.pentaho.di.core.ProgressMonitorListener monitor)
Load a job in a directory
|
void |
moveJob(String jobname,
org.pentaho.di.repository.ObjectId id_directory_from,
org.pentaho.di.repository.ObjectId id_directory_to) |
void |
readDatabases(JobMeta jobMeta)
Read the database connections in the repository and add them to this job
if they are not yet present.
|
void |
readDatabases(JobMeta jobMeta,
boolean overWriteShared)
Read the database connections in the repository and add them to this job
if they are not yet present.
|
SharedObjects |
readSharedObjects(JobMeta jobMeta) |
void |
readSlaves(JobMeta jobMeta,
boolean overWriteShared)
Read the slave servers in the repository and add them to this transformation if they are not yet present.
|
void |
renameJob(org.pentaho.di.repository.ObjectId id_job,
org.pentaho.di.repository.RepositoryDirectoryInterface newParentDir,
String newname) |
void |
saveJob(JobMeta jobMeta,
String versionComment,
org.pentaho.di.core.ProgressMonitorListener monitor,
boolean overwrite)
Stored a job in the repository
|
void |
saveJobHopMeta(JobHopMeta hop,
org.pentaho.di.repository.ObjectId id_job) |
quote, quoteTable
public static final String JOB_ATTRIBUTE_PREFIX
public KettleDatabaseRepositoryJobDelegate(KettleDatabaseRepository repository)
public org.pentaho.di.core.RowMetaAndData getJob(org.pentaho.di.repository.ObjectId id_job) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public org.pentaho.di.core.RowMetaAndData getJobHop(org.pentaho.di.repository.ObjectId id_job_hop) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public org.pentaho.di.repository.ObjectId getJobHopID(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_jobentry_copy_from, org.pentaho.di.repository.ObjectId id_jobentry_copy_to) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void saveJob(JobMeta jobMeta, String versionComment, org.pentaho.di.core.ProgressMonitorListener monitor, boolean overwrite) throws org.pentaho.di.core.exception.KettleException
jobMeta
- The job to storemonitor
- the (optional) UI progress monitoroverwrite
- Overwrite existing object(s)?org.pentaho.di.core.exception.KettleException
- in case some IO error occurs.public boolean existsJobMeta(String name, org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory, org.pentaho.di.repository.RepositoryObjectType objectType) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public JobMeta loadJobMeta(String jobname, org.pentaho.di.repository.RepositoryDirectoryInterface repdir) throws org.pentaho.di.core.exception.KettleException
jobname
- The name of the jobrepdir
- The directory in which the job resides.org.pentaho.di.core.exception.KettleException
public JobMeta loadJobMeta(String jobname, org.pentaho.di.repository.RepositoryDirectoryInterface repdir, org.pentaho.di.core.ProgressMonitorListener monitor) throws org.pentaho.di.core.exception.KettleException
log
- the logging channelrep
- The Repositoryjobname
- The name of the jobrepdir
- The directory in which the job resides.org.pentaho.di.core.exception.KettleException
public String getJobParameterKey(org.pentaho.di.repository.ObjectId id_job, int nr) throws org.pentaho.di.core.exception.KettleException
id_job
- job idnr
- number of the parameterorg.pentaho.di.core.exception.KettleException
- Upon any error.public String getJobParameterDefault(org.pentaho.di.repository.ObjectId id_job, int nr) throws org.pentaho.di.core.exception.KettleException
id_job
- job idnr
- number of the parameterorg.pentaho.di.core.exception.KettleException
- Upon any error.public String getJobParameterDescription(org.pentaho.di.repository.ObjectId id_job, int nr) throws org.pentaho.di.core.exception.KettleException
id_job
- job idnr
- number of the parameterorg.pentaho.di.core.exception.KettleException
- Upon any error.public void insertJobParameter(org.pentaho.di.repository.ObjectId id_job, long nr, String key, String defValue, String description) throws org.pentaho.di.core.exception.KettleException
id_job
- job idnr
- number of the parameter to insertkey
- key to insertdefValue
- default value for keydescription
- description to insertorg.pentaho.di.core.exception.KettleException
- Upon any error.public int countJobParameter(org.pentaho.di.repository.ObjectId id_job) throws org.pentaho.di.core.exception.KettleException
id_job
- job idorg.pentaho.di.core.exception.KettleException
- Upon any error.public JobHopMeta loadJobHopMeta(org.pentaho.di.repository.ObjectId id_job_hop, List<JobEntryCopy> jobcopies) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void saveJobHopMeta(JobHopMeta hop, org.pentaho.di.repository.ObjectId id_job) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void readDatabases(JobMeta jobMeta) throws org.pentaho.di.core.exception.KettleException
jobMeta
- the job to put the database connections inorg.pentaho.di.core.exception.KettleException
public void readDatabases(JobMeta jobMeta, boolean overWriteShared) throws org.pentaho.di.core.exception.KettleException
jobMeta
- the job to put the database connections inoverWriteShared
- set to true if you want to overwrite shared connections while loading.org.pentaho.di.core.exception.KettleException
public void readSlaves(JobMeta jobMeta, boolean overWriteShared) throws org.pentaho.di.core.exception.KettleException
jobMeta
- The job to put the slave servers inoverWriteShared
- if an object with the same name exists, overwriteorg.pentaho.di.core.exception.KettleException
public SharedObjects readSharedObjects(JobMeta jobMeta) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public org.pentaho.di.repository.ObjectId getJobID(String name, org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public int getNrJobs() throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public int getNrJobs(org.pentaho.di.repository.ObjectId id_directory) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public int getNrJobHops(org.pentaho.di.repository.ObjectId id_job) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public String[] getJobsWithIDList(List<Object[]> list, org.pentaho.di.core.row.RowMetaInterface rowMeta) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public String[] getJobsWithIDList(org.pentaho.di.repository.ObjectId[] ids) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public org.pentaho.di.repository.ObjectId insertJobHop(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.ObjectId id_jobentry_copy_from, org.pentaho.di.repository.ObjectId id_jobentry_copy_to, boolean enabled, boolean evaluation, boolean unconditional) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public String getJobAttributeString(org.pentaho.di.repository.ObjectId id_job, int nr, String code) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public long getJobAttributeInteger(org.pentaho.di.repository.ObjectId id_job, int nr, String code) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public boolean getJobAttributeBoolean(org.pentaho.di.repository.ObjectId id_job, int nr, String code) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void moveJob(String jobname, org.pentaho.di.repository.ObjectId id_directory_from, org.pentaho.di.repository.ObjectId id_directory_to) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public void renameJob(org.pentaho.di.repository.ObjectId id_job, org.pentaho.di.repository.RepositoryDirectoryInterface newParentDir, String newname) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException