AR System Java API

com.bmc.arsys.api
Class DirectSqlAction

java.lang.Object
  extended by com.bmc.arsys.api.Action
      extended by com.bmc.arsys.api.DirectSqlAction
All Implemented Interfaces:
ActiveLinkAction, FilterAction, Serializable, Cloneable

public class DirectSqlAction
extends Action
implements ActiveLinkAction, FilterAction, Cloneable, Serializable

The DirectSqlAction class represents the filter/active link action used to issue any legal SQL command to the database.

Warning Because AR System passes direct SQL commands to the database without checking the syntax, all commands are issued to the database. It is the programmer's responsibility to ensure that all issued commands achieve the desired result.

See Also:
Serialized Form

Constructor Summary
DirectSqlAction()
          construct an empty DirectSqlAction object
DirectSqlAction(String server, String command)
          construct an DirectSqlAction object using the given server name and SQL command
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 String getCommand()
          Returns the SQL command that you want to issue to the database.
 String getServer()
          Returns the AR System server where you want to run the SQL command.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setCommand(String command)
          Sets the SQL command that you want to issue to the database.
 void setServer(String server)
          Sets the AR System server where you want to run the SQL command.
 String toString()
          Returns a string description of the object.
 
Methods inherited from class com.bmc.arsys.api.Action
equals, getActionType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectSqlAction

public DirectSqlAction()
construct an empty DirectSqlAction object


DirectSqlAction

public DirectSqlAction(String server,
                       String command)
construct an DirectSqlAction object using the given server name and SQL command

Parameters:
server - the name of the server
command - the SQL command
Method Detail

getServer

public String getServer()
Returns the AR System server where you want to run the SQL command.


setServer

public void setServer(String server)
Sets the AR System server where you want to run the SQL command.


getCommand

public String getCommand()
Returns the SQL command that you want to issue to the database.


setCommand

public void setCommand(String command)
Sets the SQL command that you want to issue to the database.


clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self

Overrides:
clone in class Action
Throws:
CloneNotSupportedException

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class Action
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Action
Returns:
returns the hash code for this instance

toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class Action

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.