Grails Framework
目錄
1
簡介
2
開始使用
3
從舊版本升級
4
設定
5
命令列
6
物件關聯對應 (GORM)
7
Web 層
8
特質
9
REST
10
非同步程式設計
11
驗證
12
服務層
13
靜態類型檢查和編譯
14
測試
15
國際化
16
安全性
17
外掛程式
18
Grails 和 Spring
19
腳手架
20
部署
21
貢獻 Grails
快速參考
(
快速參考
)
改進此文件
count
目的
傳回網域類別表格中的總列數
範例
int
bookCount =
Book
.count()
快速參考
(
隱藏
)
命令列
用法
assemble
bootRun
create-app
create-controller
create-domain-class
create-plugin
create-restapi
create-service
create-taglib
create-web-plugin
generate-all
generate-controller
generate-views
help
install-templates
list-features
schema-export
約束
用法
attributes
bindable
blank
creditCard
email
inList
matches
max
maxSize
min
minSize
notEqual
nullable
range
scale
size
unique
url
validator
widget
控制器
用法
actionName
allowedMethods
bindData
chain
controllerName
defaultAction
errors
flash
forward
grailsApplication
hasErrors
header
namespace
params
redirect
render
request
respond
response
responseFormats
scope
servletContext
session
withForm
withFormat
資料庫對應
用法
autoImport
autoTimestamp
batchSize
cache
cascade
column
comment
discriminator
dynamicInsert
dynamicUpdate
fetch
id
ignoreNotFound
indexColumn
insertable
joinTable
lazy
order
sort
table
type
updateable
version
相依版本
用法
Grails BOM
Domain 類別
用法
addTo
attach
belongsTo
clearErrors
constraints
count
countBy
createCriteria
delete
discard
embedded
errors
executeQuery
executeUpdate
exists
fetchMode
find
findAll
findAllBy
findAllWhere
findBy
findOrCreateBy
findOrCreateWhere
findOrSaveBy
findOrSaveWhere
findWhere
first
get
getAll
getDirtyPropertyNames
getPersistentValue
hasErrors
hasMany
hasOne
ident
instanceOf
isAttached
isDirty
last
list
listOrderBy
load
lock
mapWith
mappedBy
mapping
merge
namedQueries
properties
read
refresh
removeFrom
save
transients
validate
where
whereAny
withCriteria
withNewSession
withSession
withTransaction
外掛程式
用法
URL 對應
codecs
controllers
core
dataSource
domainClasses
hibernate
i18n
logging
scaffolding
services
servlets
服務
用法
scope
Servlet API
request
response
servletContext
session