use of org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryJobDelegate in project pentaho-kettle by pentaho.
the class KettleDatabaseRepository method init.
private void init() {
// Create the delegates...
//
this.transDelegate = new KettleDatabaseRepositoryTransDelegate(this);
this.jobDelegate = new KettleDatabaseRepositoryJobDelegate(this);
this.databaseDelegate = new KettleDatabaseRepositoryDatabaseDelegate(this);
this.slaveServerDelegate = new KettleDatabaseRepositorySlaveServerDelegate(this);
this.clusterSchemaDelegate = new KettleDatabaseRepositoryClusterSchemaDelegate(this);
this.partitionSchemaDelegate = new KettleDatabaseRepositoryPartitionSchemaDelegate(this);
this.directoryDelegate = new KettleDatabaseRepositoryDirectoryDelegate(this);
this.connectionDelegate = new KettleDatabaseRepositoryConnectionDelegate(this, repositoryMeta.getConnection());
this.userDelegate = new KettleDatabaseRepositoryUserDelegate(this);
this.conditionDelegate = new KettleDatabaseRepositoryConditionDelegate(this);
this.valueDelegate = new KettleDatabaseRepositoryValueDelegate(this);
this.notePadDelegate = new KettleDatabaseRepositoryNotePadDelegate(this);
this.stepDelegate = new KettleDatabaseRepositoryStepDelegate(this);
this.jobEntryDelegate = new KettleDatabaseRepositoryJobEntryDelegate(this);
this.metaStoreDelegate = new KettleDatabaseRepositoryMetaStoreDelegate(this);
this.creationHelper = new KettleDatabaseRepositoryCreationHelper(this);
}
use of org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryJobDelegate in project pentaho-kettle by pentaho.
the class KettleDatabaseRepository_GetObjectInformation_Test method getObjectInformation_ExistingJob_IsDeletedFlagNotSet.
@Test
public void getObjectInformation_ExistingJob_IsDeletedFlagNotSet() throws Exception {
KettleDatabaseRepositoryJobDelegate jobDelegate = spy(new KettleDatabaseRepositoryJobDelegate(repository));
RowMeta meta = createMetaForJob();
Object[] values = new Object[meta.size()];
values[Arrays.asList(meta.getFieldNames()).indexOf(KettleDatabaseRepositoryBase.FIELD_JOB_NAME)] = EXISTING_ID;
doReturn(new RowMetaAndData(meta, values)).when(jobDelegate).getJob(new StringObjectId(EXISTING_ID));
assertIsDeletedNotSet_ForExistingObject(null, jobDelegate, RepositoryObjectType.JOB);
}
use of org.pentaho.di.repository.kdr.delegates.KettleDatabaseRepositoryJobDelegate in project pentaho-kettle by pentaho.
the class KettleDatabaseRepository_GetObjectInformation_Test method getObjectInformation_AbsentJob_IsDeletedFlagSet.
@Test
public void getObjectInformation_AbsentJob_IsDeletedFlagSet() throws Exception {
KettleDatabaseRepositoryJobDelegate jobDelegate = spy(new KettleDatabaseRepositoryJobDelegate(repository));
RowMeta meta = createMetaForJob();
doReturn(new RowMetaAndData(meta, new Object[meta.size()])).when(jobDelegate).getJob(new StringObjectId(ABSENT_ID));
assertIsDeletedSet_ForAbsentObject(null, jobDelegate, RepositoryObjectType.JOB);
}
Aggregations