JACL Scripts

The following tables list the method details of common bean objects initialized by script execution. The bean and the method are accessed from JACL script as follows:

$ISStatementAdmin executeStatement "alter sandbox set batch mode"

where $ISStatementAdmin is the bean exposed by the framework, executeStatement is the method on the bean, and the string is the argument to the method.

Note:

See the sample model in install-root/samples/sample for examples of different JACL scripts.

Table 7. DBAdmin Method Summary

BeanMethod
ConnectiongetConnection()
StringgetFormattedServerDate()
DategetServerDate()
longgetServerTime()
StringgetServerTimeAsString()
StringtoOracleDate(Date date)
DatetoSqlDate(Date date)
StringtoSQLServerDate(Date date)
TimetoSqlTime(Date date)
TimestamptoSqlTimestamp(Date date)

Table 8. EmailAdmin Method Summary

BeanMethod
MailMessage

createMessage(String toUser,

String ccUser,

String fromUser,

String subject,

String content,

String attachmentPath)

Table 9. ISStatementAdmin Method Summary

Bean

Method

Object

executeStatement(String statement)

Table 10. ModelAdmin Method Summary

Bean

Method

Model

getReadOnly()

Model

getReadWrite()

Table 11. SandboxAdmin Method Summary

Bean

Method

ListWrapper

getSandboxNamesForResponsesWithChanges(

String responseType)

Table 12.  SessionAdmin Method Summary

Bean

Method

long

getCurrentSandboxID()

String

getCurrentSandboxName()

boolean

isScriptAccessExclusive(String lockName)

void

setExclusiveScriptAccess(String lockName)

Table 13. TaskAdmin Method Summary

Bean

Method

void

addTask(String taskCmd, String groupName)

boolean

containsPendingTask(String taskCmd, String groupName)

void

deleteTasks(String groupName)

void

executeTasks(String groupName, boolean waitForCompletion)