Package com.uc4.api.objects
Class Variable
java.lang.Object
com.uc4.api.objects.UC4Object
com.uc4.api.objects.Variable
This class represents UC4 Variable objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new entry to this variable.void
Adds a new entry to this static variable.Returns attributes of this variable.backend()
This method provides access to the backend panel.This method provides access to the Composite settings of this VARA object.This method provides Dynamic Executable Variable Tab.fileList()
This method provides access to the file list panel.Returns the value for the given validity keyword.String[]
Returns all values of the row with the specified key as String array.header()
Returns the header data of this object.boolean
Returnstrue
if this Object can be executed.Returns anjava.util.Iterator
of validity keywords.protected void
loadContent
(com.uc4.util.XMLDocument doc, ConnectionAttributes info) boolean
Removes an entry from this variable.void
Removes all entries in this variable.void
setDuplicateKeysAllowed
(boolean allowed) Allow duplicate keys to be passed for a static variable object.int
size()
Returns the number of entries in this variable.sql()
This method provides access to the SQL settings of this VARA object.This method provides access to the SQL (Automation Engine DB) settings of this VARA object.This method provides access to the Secure SQL (Automation Engine DB) settings of this VARA object.This method provides access to the Secure SQL settings of this VARA object.protected void
storeContent
(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) void
validate()
Validates the object.Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store
-
Constructor Details
-
Variable
public Variable()
-
-
Method Details
-
loadContent
-
sql
This method provides access to the SQL settings of this VARA object.- Returns:
- Object which can be used to read/modify SQL settings of this Variable.
-
sqlIntern
This method provides access to the SQL (Automation Engine DB) settings of this VARA object.- Returns:
- Object which can be used to read/modify SQL statements
-
sqlSecure
This method provides access to the Secure SQL settings of this VARA object.- Returns:
- Object which can be used to read/modify Secure SQL settings of this Variable.
-
sqlInternSecure
This method provides access to the Secure SQL (Automation Engine DB) settings of this VARA object.- Returns:
- Object which can be used to read/modify Secure SQL statements
-
dynamicExecVariable
This method provides Dynamic Executable Variable Tab.- Returns:
- Object which can be used to read/modify Dynamic Executable Variable Tab
-
composite
This method provides access to the Composite settings of this VARA object.- Returns:
- Composite settings
-
fileList
This method provides access to the file list panel.- Returns:
- File list settings
-
backend
This method provides access to the backend panel.- Returns:
- backend settings
-
header
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
keyIterator
Returns anjava.util.Iterator
of validity keywords. Each validity keyword is stored asjava.lang.String
. The order of the returned validity keywords is undefined.- Returns:
- Iterator
-
add
Adds a new entry to this variable. AnIllegalArgumentException
is thrown ifkey
orvalue
are not conforming to the current variable attributes.- Parameters:
key
- Keyvalue
- Value
-
add
public void add(String key, String value1, String value2, String value3, String value4, String value5) Adds a new entry to this static variable. AnIllegalArgumentException
is thrown ifkey
orvalue
are not conforming to the current variable attributes.- Parameters:
key
- Keyvalue1
- Value for column 1value2
- Value for column 2value3
- Value for column 3value4
- Value for column 4value5
- Value for column 5
-
get
Returns the value for the given validity keyword.- Parameters:
validityKeyword
- validity keyword- Returns:
- value
-
getRow
Returns all values of the row with the specified key as String array.- Parameters:
key
- Key, must be unique- Returns:
- Array of Strings containing the values
-
validate
Description copied from class:UC4Object
Validates the object. If the object is not valid anInvalidObjectException
is thrown.- Overrides:
validate
in classUC4Object
- Throws:
InvalidObjectException
- If the object is not valid
-
remove
Removes an entry from this variable. The returns value indicates if an entry with the given validity keyword was removed.- Parameters:
validityKeyword
- validity keyword- Returns:
true
if the entry was removedfalse
otherwise
-
attributes
Returns attributes of this variable.- Returns:
- variable attributes
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) -
size
public int size()Returns the number of entries in this variable.- Returns:
- number of entries
-
removeAll
public void removeAll()Removes all entries in this variable. -
isExecutable
public boolean isExecutable()Description copied from class:UC4Object
Returnstrue
if this Object can be executed.- Specified by:
isExecutable
in classUC4Object
- Returns:
- true if the Object can be executed, false if not.
-
setDuplicateKeysAllowed
public void setDuplicateKeysAllowed(boolean allowed) Allow duplicate keys to be passed for a static variable object. Duplicate keys are all replaced by the first one- Parameters:
allowed
- true if duplicate keys should be allowed. Default is false
-