org.codehaus.groovy.grails.orm.hibernate.metaclass
Class CountPersistentMethod
java.lang.Object
org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
org.codehaus.groovy.grails.orm.hibernate.metaclass.AbstractStaticPersistentMethod
org.codehaus.groovy.grails.orm.hibernate.metaclass.CountPersistentMethod
- All Implemented Interfaces:
- StaticMethodInvocation
public class CountPersistentMethod
- extends AbstractStaticPersistentMethod
Method that allows you to count the number of instances in the database
eg. Account.count() // returns how many in total
- Since:
- 17-Feb-2006
- Author:
- Graeme Rocher
CountPersistentMethod
public CountPersistentMethod(org.hibernate.SessionFactory sessionFactory,
ClassLoader classLoader)
doInvokeInternal
protected Object doInvokeInternal(Class clazz,
String methodName,
Object[] arguments)
- Specified by:
doInvokeInternal
in class AbstractStaticPersistentMethod
Copyright (c) 2005-2006 The Grails project