Package org.codehaus.groovy.grails.orm.hibernate.metaclass

Class Summary
AbstractClausedStaticPersistentMethod  
AbstractClausedStaticPersistentMethod.GrailsMethodExpression  
AbstractDynamicPersistentMethod  
AbstractSavePersistentMethod Abstract class for different implementations that perform saving to implement
AbstractStaticPersistentMethod Abstract base class for static persistent methods
CountByPersistentMethod Dynamic method that allows counting the values of the specified property names eg.
CountPersistentMethod Method that allows you to count the number of instances in the database eg.
CreateCriteriaPersistentMethod Creates a HibernateCriteriaBuilder instance for the current class and returns it.
DeletePersistentMethod  
DiscardPersistentMethod A method that allows you to discard changes to a domain class
DomainClassMethods A class responsible for dealing with matching and dispatching to dynamic finder methods
ExecuteQueryPersistentMethod Allows the executing of abituary HQL queries

eg.

ExistsPersistentMethod A static method that checks whether an entity exists in the database for the specified id eg.
FindAllByPersistentMethod The "findBy*" static persistent method.
FindAllPersistentMethod The "findAll" persistent static method allows searching for instances using either an example instance or an HQL query.
FindAllWherePersistentMethod The "findAllWhere" persistent static method.
FindByPersistentMethod The "findBy*" static persistent method.
FindPersistentMethod The "find" persistent static method allows searching for instances using either an example instance or an HQL query.
FindWherePersistentMethod The "findWhere" persistent static method.
GetAllPersistentMethod The "getAll" static persistent method for Grails domain classes.
GetPersistentMethod The "get" static persistent method for Grails domain classes.
ListOrderByPersistentMethod The "listOrderBy*" static persistent method.
ListPersistentMethod The "list" persistent static method.
MergePersistentMethod The merge() method follows the semantics of merge which attempts to "merge" an object with a long lived session
RefreshPersistentMethod The "refresh" persistent instance method.
SavePersistentMethod This method follows the semantics of saveOrUpdate of scheduling the object for persistence when a flush occurs.
ValidatePersistentMethod A method that validates an instance of a domain class against its constraints
WithCriteriaDynamicPersistentMethod Lets you call criteria inline: books = Book.withCriteria { or { inList("author.name", ["Dierk Koenig", "Graeme Rocher"]) ilike("title", "Groovy") } }
WithTransactionPersistentMethod  
 



Copyright (c) 2005-2006 The Grails project