Add fluent-setters

This commit is contained in:
Darin Kelkhoff
2021-11-30 18:07:52 -06:00
parent 62f27f1be4
commit 99dd839373

View File

@ -33,6 +33,17 @@ public class QRecord
/*******************************************************************************
**
*******************************************************************************/
public QRecord withValue(String fieldName, Serializable value)
{
setValue(fieldName, value);
return (this);
}
/*******************************************************************************
** Getter for tableName
**
@ -55,6 +66,18 @@ public class QRecord
/*******************************************************************************
** Setter for tableName
**
*******************************************************************************/
public QRecord withTableName(String tableName)
{
this.tableName = tableName;
return (this);
}
/*******************************************************************************
** Getter for primaryKey
**
@ -77,6 +100,18 @@ public class QRecord
/*******************************************************************************
** Setter for primaryKey
**
*******************************************************************************/
public QRecord withPrimaryKey(Serializable primaryKey)
{
this.primaryKey = primaryKey;
return (this);
}
/*******************************************************************************
** Getter for values
**