public class SqlMenu extends Menu implements Cloneable, Serializable
SqlMenu class returns information for SQL menu.| Constructor and Description |
|---|
SqlMenu(String server,
String sqlCommand,
int labelIndex,
int valueIndex) |
SqlMenu(String server,
String sqlCommand,
List<Integer> labelIndex,
int valueIndex) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<Integer> |
getLabelIndex()
Returns numerical index of the database column that contains the information to display as the menu item label
when user chooses the menu item.
|
String |
getServer()
Returns server where SQL menu is located.
|
String |
getSQLCommand()
Returns SQL command issued to the database that is used in SQL menu.
|
int |
getValueIndex()
Returns numerical index of the database column that contains the information to load in the field when user
chooses the menu item.
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setLabelIndex(List<Integer> index)
Sets numerical index of the database column that contains the information to display as the menu item label when
user chooses the menu item.
|
void |
setServer(String server)
Sets server where SQL menu is located.
|
void |
setSQLCommand(String sqlCommand)
Sets SQL command issued to the database that is used in SQL menu.
|
void |
setValueIndex(int index)
Sets numerical index of the database column that contains the information to load in the field when user chooses
the menu item.
|
String |
toString()
Returns a string description of the object.
|
getContent, getKey, getMenuType, getProperties, getRefreshCode, setContent, setKey, setProperties, setRefreshCodeappendDiaryText, clear, getChangeFlags, getDiary, getHelpText, getLastChangedBy, getLastUpdateTime, getName, getNewName, getOwner, getPermissions, setChangeFlags, setDiary, setDiary, setHelpText, setLastChangedBy, setName, setNewName, setOwner, setPermissionspublic Object clone() throws CloneNotSupportedException
Menuclone in class MenuCloneNotSupportedExceptionpublic String getServer()
public String getSQLCommand()
public List<Integer> getLabelIndex()
public int getValueIndex()
public boolean equals(Object obj)
public int hashCode()
public String toString()
public void setServer(String server)
public void setSQLCommand(String sqlCommand)
public void setLabelIndex(List<Integer> index)
public void setValueIndex(int index)
? Copyright 2013 BMC Software, Inc.