DataTypeCreateRequest.Builder

public static classDataTypeCreateRequest.BuilderextendsObject

Builder used to create new DataTypeInsertRequests.

Public Constructor Summary

Public Method Summary

DataTypeCreateRequest.Builder
addField(Stringname, 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(Stringname)
Set the name for the new data type.

Inherited Method Summary

Public Constructors

publicBuilder()

Public Methods

public DataTypeCreateRequest.BuilderaddField(Stringname, int format)

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

public DataTypeCreateRequest.BuilderaddField(Field field)

Adds the specified field to the new data type.

publicDataTypeCreateRequest build()

Finishes building and returns the request.

Throws
IllegalStateException If name or data fields are not specified.

public DataTypeCreateRequest.BuildersetName(Stringname)

Set the name for the new data type. For private data types the name must have the formatpackageName + "." + typeName,wherepackageNameis the application package name andtypeNameis a unique identifier of the DataType within the package.