public class DatabasePutCommand extends AbstractAgiCommand
Returns 1 if successful, 0 otherwise.
| Constructor and Description |
|---|
DatabasePutCommand(String family,
String key,
String value)
Creates a new DatabasePutCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getFamily()
Returns the family of the key to set.
|
String |
getKey()
Returns the the key to set.
|
String |
getValue()
Returns the value to set.
|
void |
setFamily(String family)
Sets the family of the key to set.
|
void |
setKey(String key)
Sets the key to set.
|
void |
setValue(String value)
Sets the value to set.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic String getFamily()
public void setFamily(String family)
family - the family of the key to set.public String getKey()
public void setKey(String key)
key - the key to set.public String getValue()
public void setValue(String value)
value - the value to set.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2021. All rights reserved.