public class ModifyData extends Object
| Constructor and Description |
|---|
ModifyData(String tblName,
Map<String,Expression> fldVals,
Predicate pred)
Saves the table name, the modified field and its new value, and the
predicate.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
newValue(String fldName)
Returns an expression.
|
Predicate |
pred()
Returns the predicate that describes which records should be modified.
|
String |
tableName()
Returns the name of the affected table.
|
Collection<String> |
targetFields()
Returns the fields whose values will be modified
|
public ModifyData(String tblName, Map<String,Expression> fldVals, Predicate pred)
tblName - the name of the affected tablefldVals - the list of names of the target fieldspred - the modification predicatepublic String tableName()
public Collection<String> targetFields()
public Expression newValue(String fldName)
fldName - the name of the modified fieldpublic Predicate pred()
Copyright © 2022 VanillaDB Organization. All rights reserved.