find() and exist() table methods

public static Table find(RecordId _recordId, boolean _update = false) { Table table; table.selectForUpdate(_update); if (_recordId) { select firstonly table index hint RecordIdIdx where table.RecordId == _recordId; } return table; } public boolean exist(RecordId _recordId) { return Table::find(_recordId).RecId != 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.