public class Dataset extends DatasetInfo
| Modifier and Type | Field and Description |
|---|---|
static com.sun.jersey.api.client.GenericType<List<Dataset>> |
LIST_TYPE |
DATASET_TYPE, EXTERNAL_TYPE, FILE_TYPE, PUBLISHED, UNPUBLISHED| Constructor and Description |
|---|
Dataset() |
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
getColumns()
Gets the list of columns in this dataset.
|
List<String> |
getFlags()
Flags describing different characteristics about the dataset.
|
Integer |
getRowIdentifierColumnId()
Gets the ID of the row identifier column (like a primary key)
|
Column |
lookupRowIdentifierColumn()
returns the column for the row identifier column, based on the id.
|
void |
setColumns(List<Column> columns)
Sets the list of columns in this dataset.
|
void |
setFlags(List<String> flags)
Sets the flags describing this dataset.
|
void |
setRowIdentifierColumnId(Integer rowIdentifierColumnId)
Sets the row identier column ID for the (like a primary key).
|
void |
setupRowIdentifierColumn(Column column)
Sets a column to be a row identifier for this dataset.
|
void |
setupRowIdentifierColumnByName(String columnName)
Looks up a column by it's name and uses that to setup the row identifier column.
|
copy, getAttribution, getAttributionLink, getCategory, getDescription, getExternalId, getGrants, getId, getLicense, getLicenseId, getMetadata, getName, getPrivateMetadata, getPublicationStage, getResourceName, getRights, getRowsUpdatedAt, getTags, getViewType, setAttribution, setAttributionLink, setCategory, setDescription, setExternalId, setGrants, setId, setLicense, setLicenseId, setMetadata, setName, setPrivateMetadata, setPublicationStage, setResourceName, setRights, setRowsUpdatedAt, setTags, setupLicense, setViewTypepublic List<Column> getColumns()
public void setColumns(List<Column> columns)
columns - the list of columns in this dataset.public List<String> getFlags()
public void setFlags(List<String> flags)
flags - the flags describing this dataset.public void setupRowIdentifierColumnByName(String columnName)
columnName - name of the columnpublic void setupRowIdentifierColumn(Column column)
column - the column to use as the row identifier. This MUST have the field set.
If null, this will clear out the row identifier so the dataset will use the system built-in primary key.public Integer getRowIdentifierColumnId()
public Column lookupRowIdentifierColumn()
public void setRowIdentifierColumnId(Integer rowIdentifierColumnId)
rowIdentifierColumnId - the id of the row identifier column (like a primary key)Copyright © 2013. All Rights Reserved.