org.pentaho.di.repository.Repository.getPartitionSchemaID()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中org.pentaho.di.repository.Repository.getPartitionSchemaID方法的一些代码示例,展示了Repository.getPartitionSchemaID的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getPartitionSchemaID方法的具体详情如下:
包路径:org.pentaho.di.repository.Repository
类名称:Repository
方法名:getPartitionSchemaID

Repository.getPartitionSchemaID介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

@Override
public ObjectId getPartitionSchemaID( String s ) throws KettleException {
 return getDelegate().getPartitionSchemaID( s );
}

代码示例来源:origin: pentaho/pentaho-kettle

public void delPartitionSchema( String partitionSchemaName ) {
 try {
  ObjectId id = rep.getPartitionSchemaID( partitionSchemaName );
  if ( id != null ) {
   rep.deletePartitionSchema( id );
  }
  refreshTree();
 } catch ( KettleException e ) {
  new ErrorDialog( shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Delete.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Delete.UnexpectedError.Message" ), e );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void editPartitionSchema( String partitionSchemaName ) {
 try {
  ObjectId id = rep.getPartitionSchemaID( partitionSchemaName );
  PartitionSchema partitionSchema = rep.loadPartitionSchema( id, null ); // Load the last version
  PartitionSchemaDialog dd =
   new PartitionSchemaDialog( shell, partitionSchema, rep.readDatabases(), variableSpace );
  if ( dd.open() ) {
   rep.insertLogEntry( "Updating partition schema '" + partitionSchema.getName() + "'" );
   rep.save( partitionSchema, Const.VERSION_COMMENT_EDIT_VERSION, null );
   if ( !partitionSchemaName.equalsIgnoreCase( partitionSchema.getName() ) ) {
    refreshTree();
   }
  }
 } catch ( KettleException e ) {
  new ErrorDialog(
   shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Edit.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Edit.UnexpectedError.Message" )
    + partitionSchemaName + "]", e );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void newPartitionSchema() {
 try {
  PartitionSchema partitionSchema = new PartitionSchema();
  PartitionSchemaDialog dd =
   new PartitionSchemaDialog( shell, partitionSchema, rep.readDatabases(), variableSpace );
  if ( dd.open() ) {
   // See if this slave server already exists...
   ObjectId idPartitionSchema = rep.getPartitionSchemaID( partitionSchema.getName() );
   if ( idPartitionSchema == null ) {
    rep.insertLogEntry( "Creating new partition schema '" + partitionSchema.getName() + "'" );
    rep.save( partitionSchema, Const.VERSION_COMMENT_INITIAL_VERSION, null );
   } else {
    MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );
    mb.setMessage( BaseMessages.getString(
     PKG, "RepositoryExplorerDialog.PartitionSchema.Create.AlreadyExists.Message" ) );
    mb.setText( BaseMessages.getString(
     PKG, "RepositoryExplorerDialog.PartitionSchema.Create.AlreadyExists.Title" ) );
    mb.open();
   }
   // Refresh tree...
   refreshTree();
  }
 } catch ( KettleException e ) {
  new ErrorDialog( shell,
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Create.UnexpectedError.Title" ),
   BaseMessages.getString( PKG, "RepositoryExplorerDialog.PartitionSchema.Create.UnexpectedError.Message" ), e );
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

partitionSchemaName = partitionSchema.getName();
ObjectId partitionId = repository.getPartitionSchemaID( partitionSchema.getName() );
if ( partitionId == null ) {
 MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );

代码示例来源:origin: pentaho/pentaho-kettle

partitionSchemaName = partitionSchema.getName();
ObjectId partitionId = repository.getPartitionSchemaID( partitionSchema.getName() );
if ( partitionId == null ) {
 MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK );

代码示例来源:origin: pentaho/pentaho-kettle

if ( partitionDialog.open() ) {
 ObjectId idPartition = repository.getPartitionSchemaID( partition.getName() );
 if ( idPartition == null ) {
  if ( partition.getName() != null && !partition.getName().equals( "" ) ) {

相关文章

Repository类方法