当前位置: 首页>>代码示例>>Java>>正文


Java JobEntryBase类代码示例

本文整理汇总了Java中org.pentaho.di.job.entry.JobEntryBase的典型用法代码示例。如果您正苦于以下问题:Java JobEntryBase类的具体用法?Java JobEntryBase怎么用?Java JobEntryBase使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JobEntryBase类属于org.pentaho.di.job.entry包,在下文中一共展示了JobEntryBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: insertJobEntry

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public synchronized long insertJobEntry(long id_job, JobEntryBase jobEntryBase)
		throws KettleException
{
	long id = getNextJobEntryID();

	long id_jobentry_type = getJobEntryTypeID(jobEntryBase.getTypeCode());

	log.logDebug(toString(), "ID_JobEntry_type = " + id_jobentry_type + " for type = [" + jobEntryBase.getTypeCode() + "]");

	RowMetaAndData table = new RowMetaAndData();

	table.addValue(new ValueMeta(FIELD_JOBENTRY_ID_JOBENTRY, ValueMetaInterface.TYPE_INTEGER), new Long(id));
	table.addValue(new ValueMeta(FIELD_JOBENTRY_ID_JOB, ValueMetaInterface.TYPE_INTEGER), new Long(id_job));
	table.addValue(new ValueMeta(FIELD_JOBENTRY_ID_JOBENTRY_TYPE, ValueMetaInterface.TYPE_INTEGER), new Long(id_jobentry_type));
	table.addValue(new ValueMeta(FIELD_JOBENTRY_NAME, ValueMetaInterface.TYPE_STRING), jobEntryBase.getName());
	table.addValue(new ValueMeta(FIELD_JOBENTRY_DESCRIPTION, ValueMetaInterface.TYPE_STRING), jobEntryBase.getDescription());

	database.prepareInsert(table.getRowMeta(), TABLE_R_JOBENTRY);
	database.setValuesInsert(table);
	database.insertRow();
	database.closeInsert();

	return id;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:25,代码来源:Repository.java

示例2: insertJobEntry

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public synchronized ObjectId insertJobEntry(ObjectId id_job, JobEntryBase jobEntryBase) throws KettleException {
	ObjectId id = repository.connectionDelegate.getNextJobEntryID();

	ObjectId id_jobentry_type = getJobEntryTypeID(jobEntryBase.getPluginId());

	log.logDebug("ID_JobEntry_type = " + id_jobentry_type + " for type = [" + jobEntryBase.getPluginId() + "]");

	RowMetaAndData table = new RowMetaAndData();

	table.addValue(new ValueMeta(KettleDatabaseRepository.FIELD_JOBENTRY_ID_JOBENTRY, ValueMetaInterface.TYPE_INTEGER), id);
	table.addValue(new ValueMeta(KettleDatabaseRepository.FIELD_JOBENTRY_ID_JOB, ValueMetaInterface.TYPE_INTEGER), id_job);
	table.addValue(new ValueMeta(KettleDatabaseRepository.FIELD_JOBENTRY_ID_JOBENTRY_TYPE, ValueMetaInterface.TYPE_INTEGER), id_jobentry_type);
	table.addValue(new ValueMeta(KettleDatabaseRepository.FIELD_JOBENTRY_NAME, ValueMetaInterface.TYPE_STRING), jobEntryBase.getName());
	table.addValue(new ValueMeta(KettleDatabaseRepository.FIELD_JOBENTRY_DESCRIPTION, ValueMetaInterface.TYPE_STRING), jobEntryBase.getDescription());

	repository.connectionDelegate.getDatabase().prepareInsert(table.getRowMeta(), KettleDatabaseRepository.TABLE_R_JOBENTRY);
	repository.connectionDelegate.getDatabase().setValuesInsert(table);
	repository.connectionDelegate.getDatabase().insertRow();
	repository.connectionDelegate.getDatabase().closeInsert();

	jobEntryBase.setObjectId(id);
	
	return id;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:25,代码来源:KettleDatabaseRepositoryJobEntryDelegate.java

示例3: loadJobEntryBase

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public void loadJobEntryBase(JobEntryBase jobEntryBase, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers) throws KettleException {
	try {
		RowMetaAndData r = getJobEntry(id_jobentry);
		if (r != null) {
			jobEntryBase.setName(r.getString("NAME", null));

			jobEntryBase.setDescription(r.getString("DESCRIPTION", null));
			long id_jobentry_type = r.getInteger("ID_JOBENTRY_TYPE", 0);
			RowMetaAndData jetrow = getJobEntryType(new LongObjectId(id_jobentry_type) );
			if (jetrow != null) {
				jobEntryBase.setPluginId(jetrow.getString("CODE", null));
			}
		}
	} catch (KettleDatabaseException dbe) {
		throw new KettleException("Unable to load base job entry information from the repository for id_jobentry=" + id_jobentry, dbe);
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:18,代码来源:KettleDatabaseRepositoryJobEntryDelegate.java

示例4: loadJobEntryBase

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public void loadJobEntryBase( JobEntryBase jobEntryBase, ObjectId id_jobentry, List<DatabaseMeta> databases,
  List<SlaveServer> slaveServers ) throws KettleException {
  try {
    RowMetaAndData r = getJobEntry( id_jobentry );
    if ( r != null ) {
      jobEntryBase.setName( r.getString( "NAME", null ) );

      jobEntryBase.setDescription( r.getString( "DESCRIPTION", null ) );
      long id_jobentry_type = r.getInteger( "ID_JOBENTRY_TYPE", 0 );
      RowMetaAndData jetrow = getJobEntryType( new LongObjectId( id_jobentry_type ) );
      if ( jetrow != null ) {
        jobEntryBase.setPluginId( jetrow.getString( "CODE", null ) );
      }
    }
  } catch ( KettleDatabaseException dbe ) {
    throw new KettleException( "Unable to load base job entry information from the repository for id_jobentry="
      + id_jobentry, dbe );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:20,代码来源:KettleDatabaseRepositoryJobEntryDelegate.java

示例5: use

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
/**
* 获取数据库操作对象 <br/>
* @author jingma
* @param jee 
* @param dbCode
* @return
*/
public static Db use(JobEntryBase jee, String dbCode) {
    try {
        DataSource dataSource = ( new DatabaseUtil() ).getNamedDataSource( dbCode );
        return new Db(dataSource,dbCode);
    } catch (KettleException e) {
        if(jee!=null){
            jee.logError("获取数据库失败:"+dbCode, e);
        }else{
            log.error("获取数据库失败:"+dbCode, e);
        }
    }
    return null;
}
 
开发者ID:majinju,项目名称:KettleEasyExpand,代码行数:21,代码来源:Db.java

示例6: insertJobEntry

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public synchronized ObjectId insertJobEntry( ObjectId id_job, JobEntryBase jobEntryBase ) throws KettleException {
  ObjectId id = repository.connectionDelegate.getNextJobEntryID();

  ObjectId id_jobentry_type = getJobEntryTypeID( jobEntryBase.getPluginId() );

  log.logDebug( "ID_JobEntry_type = " + id_jobentry_type + " for type = [" + jobEntryBase.getPluginId() + "]" );

  RowMetaAndData table = new RowMetaAndData();

  table.addValue( new ValueMetaInteger(
    KettleDatabaseRepository.FIELD_JOBENTRY_ID_JOBENTRY ), id );
  table.addValue(
    new ValueMetaInteger( KettleDatabaseRepository.FIELD_JOBENTRY_ID_JOB ), id_job );
  table
    .addValue(
      new ValueMetaInteger(
        KettleDatabaseRepository.FIELD_JOBENTRY_ID_JOBENTRY_TYPE ),
      id_jobentry_type );
  table.addValue(
    new ValueMetaString( KettleDatabaseRepository.FIELD_JOBENTRY_NAME ),
    jobEntryBase.getName() );
  table.addValue( new ValueMetaString(
    KettleDatabaseRepository.FIELD_JOBENTRY_DESCRIPTION ), jobEntryBase
    .getDescription() );

  repository.connectionDelegate.getDatabase().prepareInsert(
    table.getRowMeta(), KettleDatabaseRepository.TABLE_R_JOBENTRY );
  repository.connectionDelegate.getDatabase().setValuesInsert( table );
  repository.connectionDelegate.getDatabase().insertRow();
  repository.connectionDelegate.getDatabase().closeInsert();

  jobEntryBase.setObjectId( id );

  return id;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:36,代码来源:KettleDatabaseRepositoryJobEntryDelegate.java

示例7: JobEntryUnZip

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntryUnZip(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntryUnZip.java

示例8: JobEntryMysqlBulkLoad

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntryMysqlBulkLoad(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntryMysqlBulkLoad.java

示例9: JobEntrySuccess

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntrySuccess(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntrySuccess.java

示例10: JobEntrySFTPPUT

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntrySFTPPUT(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntrySFTPPUT.java

示例11: JobEntryWaitForSQL

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntryWaitForSQL(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntryWaitForSQL.java

示例12: JobEntryFolderIsEmpty

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntryFolderIsEmpty(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntryFolderIsEmpty.java

示例13: JobEntryXSLT

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntryXSLT(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntryXSLT.java

示例14: JobEntrySimpleEval

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntrySimpleEval(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntrySimpleEval.java

示例15: JobEntryMsgBoxInfo

import org.pentaho.di.job.entry.JobEntryBase; //导入依赖的package包/类
public JobEntryMsgBoxInfo(JobEntryBase jeb)
{
	super(jeb);
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:5,代码来源:JobEntryMsgBoxInfo.java


注:本文中的org.pentaho.di.job.entry.JobEntryBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。