The following are methods for System. All methods are static.
- abortJob(String)
Stops the specified job. The stopped job is still visible in the job queue in the Salesforce user interface. - assert(Boolean, Object)
Asserts that the specified condition is true. If it is not, a fatal error is returned that causes code execution to halt. - assertEquals(Object, Object, Object)
Asserts that the first two arguments are the same. If they are not, a fatal error is returned that causes code execution to halt. - assertNotEquals(Object, Object, Object)
Asserts that the first two arguments are different. If they are the same, a fatal error is returned that causes code execution to halt. - currentPageReference()
Returns a reference to the current page. This is used with Visualforce pages. - currentTimeMillis()
Returns the current time in milliseconds, which is expressed as the difference between the current time and midnight, January 1, 1970 UTC. - debug(Object)
Writes the specified message, in string format, to the execution debug log. The DEBUG log level is used. - debug(LoggingLevel, Object)
Writes the specified message, in string format, to the execution debug log with the specified log level. - enqueueJob(Object)
Adds a job to the Apex job queue that corresponds to the specified queueable class and returns the job ID. - equals(Object, Object)
Returns true if both arguments are equal. Otherwise, returns false. - getApplicationReadWriteMode()
Returns the read write mode set for an organization during Salesforce.com upgrades and downtimes. - hashCode(Object)
Returns the hash code of the specified object. - isBatch()
Returns true if the currently executing code is invoked by a batch Apex job; false otherwise. - isFuture()
Returns true if the currently executing code is invoked by code contained in a method annotated with future; false otherwise. - isScheduled()
Returns true if the currently executing code is invoked by a scheduled Apex job; false otherwise. - now()
Returns the current date and time in the GMT time zone. - process(List<Ids>, String, String, String)
Processes the list of work item IDs. - purgeOldAsyncJobs(Date)
Deletes asynchronous Apex job records for jobs that have finished execution before the specified date with a Completed, Aborted, or Failed status, and returns the number of records deleted. - requestVersion()
Returns a two-part version that contains the major and minor version numbers of a package. - resetPassword(ID, Boolean)
Resets the password for the specified user. - runAs(System.Version)
Changes the current package version to the package version specified in the argument. - runAs(User)
Changes the current user to the specified user. - schedule(String, String, Object)
Use schedule with an Apex class that implements the Schedulable interface to schedule the class to run at the time specified by a Cron expression. - scheduleBatch(Database.Batchable, String, Integer)
Schedules a batch job to run once in the future after the specified time interval and with the specified job name. - scheduleBatch(Database.Batchable, String, Integer, Integer)
Schedules a batch job to run once in the future after the specified the time interval, with the specified job name and scope size. Returns the scheduled job ID (CronTrigger ID). - setPassword(ID, String)
Sets the password for the specified user. - submit(List<ID>, String, String)
Submits the processed approvals. The current user is the submitter and the entry criteria is evaluated for all processes applicable to the current user. - today()
Returns the current date in the current user's time zone.
No comments:
Post a Comment