Package com.socrata.builders

Source Code of com.socrata.builders.DatasetInfoBuilder

package com.socrata.builders;

import com.socrata.model.importer.Dataset;
import com.socrata.model.importer.DatasetInfo;

/**
* Just builds the DatasetInfo portion of a Dataset, using a builder model.  This is useful
* when building up the changes to a dataset that need to be made outside the publishing cycle.
*
* Since, any of the properties in a DatasetInfo can be upldated on a pulished dataset, objects created
* through this builder can be updated on the server without requiring a working copy (which can be expensive)
*/
public class DatasetInfoBuilder extends AbstractDatasetInfoBuilder<DatasetInfoBuilder, DatasetInfo>
{
    public DatasetInfoBuilder()
    {
    }

    public DatasetInfoBuilder(DatasetInfo datasetInfo)
    {
        super(datasetInfo);
    }

    @Override
    public DatasetInfo build()
    {
        final DatasetInfo retVal = new Dataset();
        populate(retVal);
        return retVal;
    }
}
TOP

Related Classes of com.socrata.builders.DatasetInfoBuilder

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.