Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class InsertParams

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .LinkedList, .List, .Map, java.util.stream.Collectors, com.mysql.cj.x.protobuf.MysqlxCrud.Column, .MysqlxCrud.Insert.TypedRow

Helper class for collecting parameters for relational insert command.

Field Summary

Modifier and TypeField and Description
private List<MysqlxCrud.Column>
private List<MysqlxCrud.Insert.TypedRow>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addRow(List<Object>
field value expressions for this row
row
)

Add new X Protocol row.

public Object

Returns:

X Protocol Column objects list
getProjection
()

Get X Protocol Column objects list for projection.

public Object

Returns:

X Protocol rows list
getRows
()

Get X Protocol rows list.

public void
setFieldsAndValues(Map<String, Object>
projection_expression -> value_expression map
fieldsAndValues
)

Fill insert parameters from projection_expression -> value_expression map.

public void
setProjection(String[]
projection expressions
projection
)

Set X Protocol Column objects list for projection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

projectionback to summary
private List<MysqlxCrud.Column> projection
rowsback to summary
private List<MysqlxCrud.Insert.TypedRow> rows

Constructor Detail

InsertParamsback to summary
public InsertParams()

Method Detail

addRowback to summary
public void addRow(List<Object> row)

Add new X Protocol row.

Parameters
row:List<Object>

field value expressions for this row

getProjectionback to summary
public Object getProjection()

Get X Protocol Column objects list for projection.

Returns:Object

X Protocol Column objects list

getRowsback to summary
public Object getRows()

Get X Protocol rows list.

Returns:Object

X Protocol rows list

setFieldsAndValuesback to summary
public void setFieldsAndValues(Map<String, Object> fieldsAndValues)

Fill insert parameters from projection_expression -> value_expression map.

Parameters
fieldsAndValues:Map<String, Object>

projection_expression -> value_expression map

setProjectionback to summary
public void setProjection(String[] projection)

Set X Protocol Column objects list for projection.

Parameters
projection:String[]

projection expressions