public abstract class RowChange extends Object implements IRow, Measurable
若是PutRow操作,请参考RowPutChange
。
若是UpdateRow操作,请参考RowUpdateChange
。
若是DeleteRow操作,请参考RowDeleteChange
。
构造器和说明 |
---|
RowChange(String tableName)
构造函数。
|
RowChange(String tableName,
PrimaryKey primaryKey)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
void |
addReturnColumn(String columnName) |
int |
compareTo(IRow row) |
Condition |
getCondition()
获取判断条件。
|
PrimaryKey |
getPrimaryKey()
获取该行的主键。
|
Set<String> |
getReturnColumnNames() |
ReturnType |
getReturnType() |
String |
getTableName()
获取表的名称。
|
void |
setCondition(Condition condition)
设置判断条件。
|
void |
setPrimaryKey(PrimaryKey primaryKey)
添加主键(Primary Key)列的名称和值。
|
void |
setReturnType(ReturnType returnType) |
void |
setTableName(String tableName)
设置表的名称。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSize
public RowChange(String tableName, PrimaryKey primaryKey)
表的名称不能为null或者为空。
行的主键不能为null或者为空。
tableName
- 表的名称primaryKey
- 表的主键public RowChange(String tableName)
表的名称不能为null或者为空。
tableName
- 表的名称public void setTableName(String tableName)
public String getTableName()
public void setPrimaryKey(PrimaryKey primaryKey)
primaryKey
- 行的主键。public PrimaryKey getPrimaryKey()
getPrimaryKey
在接口中 IRow
public Condition getCondition()
public void setCondition(Condition condition)
condition
- 判断条件。public int compareTo(IRow row)
compareTo
在接口中 Comparable<IRow>
public ReturnType getReturnType()
public void setReturnType(ReturnType returnType)
public void addReturnColumn(String columnName)
Copyright © 2018. All Rights Reserved.