public abstract class RowChange extends Object implements IRow, Measurable
若是PutRow操作,请参考RowPutChange。
若是UpdateRow操作,请参考RowUpdateChange。
若是DeleteRow操作,请参考RowDeleteChange。
| Constructor and Description |
|---|
RowChange(String tableName)
构造函数。
internal use
|
RowChange(String tableName,
PrimaryKey primaryKey)
构造函数。
internal use
|
| Modifier and Type | Method and Description |
|---|---|
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, waitgetDataSizepublic 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 in interface IRowpublic Condition getCondition()
public void setCondition(Condition condition)
condition - 判断条件。public int compareTo(IRow row)
compareTo in interface Comparable<IRow>public ReturnType getReturnType()
public void setReturnType(ReturnType returnType)
public void addReturnColumn(String columnName)
Copyright © 2024. All Rights Reserved.