Asterisk-Java

org.asteriskjava.manager.action
Class DbPutAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.DbPutAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class DbPutAction
extends AbstractManagerAction

Adds or updates an entry in the Asterisk database for a given family, key, and value.

Available since Asterisk 1.2

Since:
0.2
Version:
$Id: DbPutAction.java 1041 2008-04-24 01:30:23Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
DbPutAction()
          Creates a new empty DbPutAction.
DbPutAction(java.lang.String family, java.lang.String key, java.lang.String val)
          Creates a new DbPutAction that sets the value of the database entry with the given key in the given family.
 
Method Summary
 java.lang.String getAction()
          Returns the name of the action for example "Hangup".
 java.lang.String getFamily()
          Returns the family of the key to set.
 java.lang.String getKey()
          Returns the the key to set.
 java.lang.String getVal()
          Returns the value to set.
 java.lang.String getValue()
          Returns the value to set for BRIstuffed versions.
 void setFamily(java.lang.String family)
          Sets the family of the key to set.
 void setKey(java.lang.String key)
          Sets the key to set.
 void setVal(java.lang.String val)
          Sets the value to set.
 
Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbPutAction

public DbPutAction()
Creates a new empty DbPutAction.


DbPutAction

public DbPutAction(java.lang.String family,
                   java.lang.String key,
                   java.lang.String val)
Creates a new DbPutAction that sets the value of the database entry with the given key in the given family.

Parameters:
family - the family of the key
key - the key of the entry to set
val - the value to set
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Description copied from interface: ManagerAction
Returns the name of the action for example "Hangup".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getFamily

public java.lang.String getFamily()
Returns the family of the key to set.

Returns:
the family of the key to set.

setFamily

public void setFamily(java.lang.String family)
Sets the family of the key to set.

Parameters:
family - the family of the key to set.

getKey

public java.lang.String getKey()
Returns the the key to set.

Returns:
the key to set.

setKey

public void setKey(java.lang.String key)
Sets the key to set.

Parameters:
key - the key to set.

getVal

public java.lang.String getVal()
Returns the value to set.

Returns:
the value to set.

setVal

public void setVal(java.lang.String val)
Sets the value to set.

Parameters:
val - the value to set.

getValue

public java.lang.String getValue()
Returns the value to set for BRIstuffed versions.

Returns:
the value to set.
Since:
1.0.0

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.