DataTypeCreateRequest.Builder

public static class DataTypeCreateRequest.Builder extends Object

Builder used to create new DataTypeInsertRequests.

Public Constructor Summary

Public Method Summary

DataTypeCreateRequest.Builder
addField(String name, int format)
Adds a new field with the specified name and format to the new data type.
DataTypeCreateRequest.Builder
addField(Field field)
Adds the specified field to the new data type.
DataTypeCreateRequest
build()
Finishes building and returns the request.
DataTypeCreateRequest.Builder
setName(String name)
Set the name for the new data type.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public DataTypeCreateRequest.Builder addField (String name, int format)

Adds a new field with the specified name and format to the new data type.

public DataTypeCreateRequest.Builder addField (Field field)

Adds the specified field to the new data type.

public DataTypeCreateRequest build ()

Finishes building and returns the request.

Throws
IllegalStateException If name or data fields are not specified.

public DataTypeCreateRequest.Builder setName (String name)

Set the name for the new data type. For private data types the name must have the format packageName + "." + typeName, where packageName is the application package name and typeName is a unique identifier of the DataType within the package.