當前位置: 首頁>>代碼示例>>Java>>正文


Java NoColumnsException類代碼示例

本文整理匯總了Java中com.belladati.sdk.exception.dataset.data.NoColumnsException的典型用法代碼示例。如果您正苦於以下問題:Java NoColumnsException類的具體用法?Java NoColumnsException怎麽用?Java NoColumnsException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NoColumnsException類屬於com.belladati.sdk.exception.dataset.data包,在下文中一共展示了NoColumnsException類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: AttributeOverwritePolicy

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
private AttributeOverwritePolicy(List<String> attributes) {
	if (attributes.isEmpty()) {
		throw new NoColumnsException();
	}
	List<String> temp = new ArrayList<String>(attributes);
	this.attributes = Collections.unmodifiableList(temp);
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-api,代碼行數:8,代碼來源:OverwritePolicy.java

示例2: DataTable

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
private DataTable(List<DataColumn> columns) throws NoColumnsException {
	if (columns.isEmpty()) {
		throw new NoColumnsException();
	}
	this.columns = Collections.unmodifiableList(new ArrayList<DataColumn>(columns));
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-api,代碼行數:7,代碼來源:DataTable.java

示例3: emptyDataSetTable

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/** data set without columns can't create import table */
@Test(expectedExceptions = NoColumnsException.class)
public void emptyDataSetTable() {
	DataSet dataSet = new DataSetImpl(getService(), builder.buildDataSetNode(id, name, description, owner, lastChange));
	dataSet.createDataTable();
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-java,代碼行數:7,代碼來源:DataSetStructureTest.java

示例4: attributesNone

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/** no attributes set */
@Test(expectedExceptions = NoColumnsException.class)
public void attributesNone() {
	OverwritePolicy.byAttributes(Collections.<String> emptyList());
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-java,代碼行數:6,代碼來源:OverwritePolicyTest.java

示例5: noColumns

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/** table must have columns */
@Test(expectedExceptions = NoColumnsException.class)
public void noColumns() {
	DataTable.createBasicInstance(Collections.<String> emptyList());
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-java,代碼行數:6,代碼來源:DataSetDataTest.java

示例6: emptyDataSetTable

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/** data set without columns can't create import table */
@Test(expectedExceptions = NoColumnsException.class)
public void emptyDataSetTable() {
	DataSet dataSet = new DataSetImpl(service, builder.buildDataSetNode(id, name, description, owner, lastChange));
	dataSet.createDataTable();
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-android,代碼行數:7,代碼來源:DataSetStructureTest.java

示例7: createBasicInstance

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/**
 * Creates a new instance with the given column setup. At least one column
 * must be specified in the table. Rows are allowed to be empty.
 * <p>
 * Columns should be unique, but the table doesn't enforce this.
 * 
 * @param columns columns for the table
 * @return new DataTable
 * @throws NoColumnsException if the list is empty
 */
public static DataTable createBasicInstance(List<String> columns) throws NoColumnsException {
	List<DataColumn> list = new ArrayList<DataColumn>();
	for (String column : columns) {
		list.add(new DataColumn(column));
	}
	return new DataTable(list);
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-api,代碼行數:18,代碼來源:DataTable.java

示例8: createDetailedInstance

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/**
 * Creates a new instance with the given column setup. At least one column
 * must be specified in the table. Rows are allowed to be empty.
 * <p>
 * Columns should be unique, but the table doesn't enforce this.
 * 
 * @param columns columns for the table
 * @return mew data table
 * @throws NoColumnsException if the list is empty
 */
public static DataTable createDetailedInstance(List<DataColumn> columns) throws NoColumnsException {
	return new DataTable(columns);
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-api,代碼行數:14,代碼來源:DataTable.java

示例9: byAttributes

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/**
 * Returns an {@link OverwritePolicy} that deletes records that are
 * identical in the specified attributes with a record being imported. As a
 * result, no two records can exist in the data set that have the same
 * values for all of those attributes at once. <br>
 * At least one attribute needs to be specified.
 * <p>
 * Empty attribute values in existing data are treated as matching anything.
 * Existing records that match an imported record on all non-empty
 * attributes are deleted.
 * 
 * @param attributes attributes to match
 * @return a policy deleting non-unique data by selected attributes
 * @throws NoColumnsException if the list is empty
 */
public static OverwritePolicy byAttributes(List<String> attributes) throws NoColumnsException {
	return new AttributeOverwritePolicy(attributes);
}
 
開發者ID:BellaDati,項目名稱:belladati-sdk-api,代碼行數:19,代碼來源:OverwritePolicy.java

示例10: createDataTable

import com.belladati.sdk.exception.dataset.data.NoColumnsException; //導入依賴的package包/類
/**
 * Returns an empty data table matching this data set's structure. Populate
 * this table in order to import data for the data set.
 * 
 * @return an empty data table matching this data set's structure
 * @throws NoColumnsException if the data set doesn't have any columns
 */
DataTable createDataTable() throws NoColumnsException;
 
開發者ID:BellaDati,項目名稱:belladati-sdk-api,代碼行數:9,代碼來源:DataSet.java


注:本文中的com.belladati.sdk.exception.dataset.data.NoColumnsException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。