(Quick Reference)

exists

目的
Purpose

Checks whether an instance exists for the specified id

使用例
Examples

def accountId = …
if (Account.exists(accountId)) {
    // do something
}

詳細
Description

パラメータ:

Parameters:
  • id - The id of the object