public SQLiteTableBuilder(SQLiteDatabase database,String tableName){
  if (database == null) {
    throw new IllegalArgumentException("Database cannot be null.");
  }
 else   if (TextUtils.isEmpty(tableName)) {
    throw new IllegalArgumentException("Table name cannot be empty.");
  }
 else   if (!tableName.matches(REGEX_SQL_IDENTIFIER)) {
    throw new IllegalArgumentException("Invalid table name.");
  }
  mDatabase=database;
  mStringBuilder=new StringBuilder();
  mStringBuilder.append(CREATE_TABLE);
  mStringBuilder.append(tableName);
  mStringBuilder.append(OPEN_PAREN);
}

public SQLiteTableBuilder ( SQLiteDatabase database , String tableName ) { if ( database == null ) { throw new IllegalArgumentException ( "Database cannot be null." ) ; } else if ( TextUtils . isEmpty ( tableName ) ) { throw new IllegalArgumentException ( "Table name cannot be empty." ) ; } else if ( ! tableName . matches ( REGEX_SQL_IDENTIFIER ) ) { throw new IllegalArgumentException ( "Invalid table name." ) ; } mDatabase = database ; mStringBuilder = new StringBuilder ( ) ; mStringBuilder . append ( CREATE_TABLE ) ; mStringBuilder . append ( tableName ) ; mStringBuilder . append ( OPEN_PAREN ) ; }
creates a new instance for creating a table with the given name in the specified database .
