autohit.call
Class Call_INSERT_TABLE

java.lang.Object
  extended byautohit.call.Call
      extended byautohit.call.Call_INSERT_TABLE

public class Call_INSERT_TABLE
extends Call

CALL. INSERT_TABLE Inserts a name(n)/value(v) into a TABLE in persist. It will replace the name(n)/value(v) is the name alredy exists.

 REQURIES: logger, core
 IGNORES: 
 PARAMETERS (INPUT):
 name= name of the table in which to insert.  REQUIRED
 n= name of the table entry  REQUIRED
 v= value of the table entry  REQUIRED
 
RETURNS: empty string.

Version:
1.0 Version History EPG - Initial - 28Jun03
Author:
Erich P. Gatejen

Field Summary
 
Fields inherited from class autohit.call.Call
CALL_TEXT_HEADER, log, sc, u, vmc
 
Constructor Summary
Call_INSERT_TABLE()
           
 
Method Summary
 java.lang.String call()
          Execute it.
 java.lang.String call(Universe uni)
          Execute using the passed universe, rather than the loaded.
 void load_chain()
          Implement this to handle load time initialization.
 java.lang.String name()
          Implement this to return the name of the CALL
 
Methods inherited from class autohit.call.Call
debug, desired, desiredString, error, format, info, load, optionalString, required, required, requiredPersist, requiredString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Call_INSERT_TABLE

public Call_INSERT_TABLE()
Method Detail

load_chain

public void load_chain()
                throws CallException
Implement this to handle load time initialization. The four main fields will already be set--vmc, sc, log, and u. You must implement this, but you don't have to do anything. Remember that calls are cached per VM and reused as often as possible. There will be no thread-safety issues with the VMCore or log, but the SystemContecxt and Universe may be shared.

Specified by:
load_chain in class Call
Throws:
CallException

name

public java.lang.String name()
Implement this to return the name of the CALL

Specified by:
name in class Call
Returns:
name of the CALL

call

public java.lang.String call()
                      throws CallException
Execute it.

Specified by:
call in class Call
Returns:
the result or null if there is no result
Throws:
CallException

call

public java.lang.String call(Universe uni)
                      throws CallException
Execute using the passed universe, rather than the loaded.

Specified by:
call in class Call
Parameters:
uni - a universe
Returns:
the result or null if there is no result
Throws:
CallException
See Also:
Universe


Test.