play.db.jpa
Class JPAPlugin.JPAModelLoader

java.lang.Object
  extended by play.db.jpa.JPAPlugin.JPAModelLoader
All Implemented Interfaces:
Model.Factory
Enclosing class:
JPAPlugin

public static class JPAPlugin.JPAModelLoader
extends java.lang.Object
implements Model.Factory


Constructor Summary
JPAPlugin.JPAModelLoader(java.lang.Class<? extends Model> clazz)
           
 
Method Summary
 java.lang.Long count(java.util.List<java.lang.String> searchFields, java.lang.String keywords, java.lang.String where)
           
 void deleteAll()
           
 java.util.List<Model> fetch(int offset, int size, java.lang.String orderBy, java.lang.String order, java.util.List<java.lang.String> searchFields, java.lang.String keywords, java.lang.String where)
           
 Model findById(java.lang.Object id)
           
 java.lang.String keyName()
           
 java.lang.Class keyType()
           
 java.lang.Object keyValue(Model m)
           
 java.util.List<Model.Property> listProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAPlugin.JPAModelLoader

public JPAPlugin.JPAModelLoader(java.lang.Class<? extends Model> clazz)
Method Detail

findById

public Model findById(java.lang.Object id)
Specified by:
findById in interface Model.Factory

fetch

public java.util.List<Model> fetch(int offset,
                                   int size,
                                   java.lang.String orderBy,
                                   java.lang.String order,
                                   java.util.List<java.lang.String> searchFields,
                                   java.lang.String keywords,
                                   java.lang.String where)
Specified by:
fetch in interface Model.Factory

count

public java.lang.Long count(java.util.List<java.lang.String> searchFields,
                            java.lang.String keywords,
                            java.lang.String where)
Specified by:
count in interface Model.Factory

deleteAll

public void deleteAll()
Specified by:
deleteAll in interface Model.Factory

listProperties

public java.util.List<Model.Property> listProperties()
Specified by:
listProperties in interface Model.Factory

keyName

public java.lang.String keyName()
Specified by:
keyName in interface Model.Factory

keyType

public java.lang.Class keyType()
Specified by:
keyType in interface Model.Factory

keyValue

public java.lang.Object keyValue(Model m)
Specified by:
keyValue in interface Model.Factory


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly