本文整理汇总了Java中org.pentaho.di.core.util.Assert.assertNotBlank方法的典型用法代码示例。如果您正苦于以下问题:Java Assert.assertNotBlank方法的具体用法?Java Assert.assertNotBlank怎么用?Java Assert.assertNotBlank使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.util.Assert
的用法示例。
在下文中一共展示了Assert.assertNotBlank方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: beginLoading
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
* Issue begin loading with default error tables.
*
* @param table
* the target table.
* @return this.
* @throws IllegalArgumentException
* if table is invalid.
*/
public FastloadControlBuilder beginLoading( final String schemaName, final String table ) throws IllegalArgumentException {
Assert.assertNotBlank( table );
this.builder.append( "BEGIN LOADING " );
this.builder.append( table );
this.builder.append( " ERRORFILES " );
if ( !Utils.isEmpty( schemaName ) ) {
this.builder.append( schemaName );
this.builder.append( "." );
this.builder.append( DEFAULT_ERROR_TABLE1 );
this.builder.append( "," );
this.builder.append( schemaName );
this.builder.append( "." );
this.builder.append( DEFAULT_ERROR_TABLE2 );
} else {
this.builder.append( DEFAULT_ERROR_TABLE1 );
this.builder.append( "," );
this.builder.append( DEFAULT_ERROR_TABLE2 );
}
return this.newline();
}
示例2: GoogleAnalyticsApiFacade
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
public GoogleAnalyticsApiFacade( HttpTransport httpTransport, JsonFactory jsonFactory, String application,
String oathServiceEmail, File keyFile )
throws IOException, GeneralSecurityException {
Assert.assertNotNull( httpTransport, "HttpTransport cannot be null" );
Assert.assertNotNull( jsonFactory, "JsonFactory cannot be null" );
Assert.assertNotBlank( application, "Application name cannot be empty" );
Assert.assertNotBlank( oathServiceEmail, "OAuth Service Email name cannot be empty" );
Assert.assertNotNull( keyFile, "OAuth secret key file cannot be null" );
this.httpTransport = httpTransport;
Credential credential = new GoogleCredential.Builder()
.setTransport( httpTransport )
.setJsonFactory( jsonFactory )
.setServiceAccountScopes( AnalyticsScopes.all() )
.setServiceAccountId( oathServiceEmail )
.setServiceAccountPrivateKeyFromP12File( keyFile )
.build();
analytics = new Analytics.Builder( httpTransport, jsonFactory, credential )
.setApplicationName( application )
.build();
}
示例3: logon
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
* Append log on.
*
* @param dbhost
* DB host, e.g localtd
* @param user
* the user.
* @param password
* the password.
* @return this
* @throws IllegalArgumentException
* if input is invalid.
*/
public FastloadControlBuilder logon(final String dbhost, final String user, final String password)
throws IllegalArgumentException {
Assert.assertNotBlank(dbhost, "DB host must not be blank");
Assert.assertNotBlank(user, "User must not be blank");
Assert.assertNotNull(password, "Password must not be null");
this.builder.append("LOGON ");
this.builder.append(dbhost);
this.builder.append('/');
this.builder.append(user);
this.builder.append(',');
this.builder.append(password);
return this.newline();
}
示例4: beginLoading
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
* Issue begin loading with default error tables.
*
* @param table
* the target table.
* @return this.
* @throws IllegalArgumentException
* if table is invalid.
*/
public FastloadControlBuilder beginLoading(final String table) throws IllegalArgumentException {
Assert.assertNotBlank(table);
this.builder.append("BEGIN LOADING ");
this.builder.append(table);
this.builder.append(" ERRORFILES ");
this.builder.append(DEFAULT_ERROR_TABLE1);
this.builder.append(",");
this.builder.append(DEFAULT_ERROR_TABLE2);
return this.newline();
}
示例5: logon
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
* Append log on.
*
* @param dbhost
* DB host, e.g localtd
* @param user
* the user.
* @param password
* the password.
* @return this
* @throws IllegalArgumentException
* if input is invalid.
*/
public FastloadControlBuilder logon( final String dbhost, final String user, final String password ) throws IllegalArgumentException {
Assert.assertNotBlank( dbhost, "DB host must not be blank" );
Assert.assertNotBlank( user, "User must not be blank" );
Assert.assertNotNull( password, "Password must not be null" );
this.builder.append( "LOGON " );
this.builder.append( dbhost );
this.builder.append( '/' );
this.builder.append( user );
this.builder.append( ',' );
this.builder.append( password );
return this.newline();
}
示例6: setRecordFormat
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
*
* @param format
* the format.
* @return this.
* @throws IllegalArgumentException
* if format is invalid.
*/
public FastloadControlBuilder setRecordFormat(final String format) throws IllegalArgumentException {
Assert.assertNotBlank(format, "Format must not be blank");
return line("SET RECORD " + format);
}
示例7: setRecordFormat
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
*
* @param format
* the format.
* @return this.
* @throws IllegalArgumentException
* if format is invalid.
*/
public FastloadControlBuilder setRecordFormat( final String format ) throws IllegalArgumentException {
Assert.assertNotBlank( format, "Format must not be blank" );
return line( "SET RECORD " + format );
}