net.sf.asterisk.manager.action
Class DBPutAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.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,v 1.3 2005/08/07 00:09:42 srt Exp $
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.
 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.
 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 net.sf.asterisk.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.

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.


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