int bookCount = Book.count()
count
Purpose
Returns the total number of rows in the domain class table
(Quick Reference)
countPurposeReturns the total number of rows in the domain class table Examples
|
APICommand LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServlet APITag LibrariesTags - GSPVersions |