Builder used to create new DataTypeInsertRequests.
Public Constructor Summary
Builder()
|
Public Method Summary
DataTypeCreateRequest.Builder | |
DataTypeCreateRequest.Builder | |
DataTypeCreateRequest |
build()
Finishes building and returns the request.
|
DataTypeCreateRequest.Builder |
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
,wherepackageName
is the
application package name andtypeName
is a unique identifier of the
DataType
within the package.