diff --git a/.gitignore b/.gitignore index 7c730a2..c865aaa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ build.bat .classpath .project .eclipse -play-morphia.jar dist +/eclipse diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/README.textile b/README.textile index aa4f300..eaa3021 100644 --- a/README.textile +++ b/README.textile @@ -1,155 +1,155 @@ -h1. PlayMorphia overview - -The PlayMorphia module a powerful and yet easy to use framework that provides "MongoDB":http://www.mongodb.org/ access to your Play!framework application. This module is built on top of the famous "Morphia project":http://code.google.com/p/morphia/. - -Stick to the philosophy of Play!Framework, PlayMorphia provides a data layer infrastructure to help developer focusing on the business logic instead of technical details. PlayMorphia is by far the most welcome MongoDB access module in the community - -h2. Easy to use Model class - -Thanks to the super powerful code enhancement mechanism of Play!framework, we could bring you a very simple model class and provides all weapons you need in the same time. - -You define a model class as: - -bc. @Entity -public class User extends Model { - public String fName; - public String lName; - public String region; - public String department; - public int age; - public int score; - - public User(String firstName, String lastName, region, department) { - this.fName = firstName; - this.lName = lastName; - this.region = region; - this.department = department; - } -} - -You use the model in your application in the following ways: - -bc. User user = new User("John", "Smith", "AU", "IT").save() -Object id = user.getId(); -... -User user = User.findById(id); -... -user.region = "ZH"; -user.department = "Sales"; -user.save(); -... -user.delete(); - -h2. Powerful query interface - -As shown above you could use @Model.findById@ interface to fetch an entity by it's identifier. But how to query data using non-id properties? Don't worry, PlayMorphia provides comprehensive query interfaces enable you to dig out every bit of data in whatever way you want: - -bc. List allUsers = User.findAll(); -... -List auUsers = User.find("region", "AU").asList(); -... -List auITUsers; -auITUsers = User.find("region department", "AU", "IT").asList(); -auITUsers = User.find("region,department", "AU", "IT").asList(); -auITUsers = User.find("byRegionAndDepartment", "AU", "IT").asList(); -auITUsers = User.q().filter("region", "AU").filter("department", "IT").asList(); -auITUsers = User.q().findBy("region department", "AU", "IT").asList();... -... -List auLittleUsers = User.find("region", "AU").filter("age <", 18).asList(); - -h3. Sort data returned - -It's bit of easy to sort data in ascend or descend order: - -bc. List usersByAgeAsc = User.q().order("age").asList(); -... -List usersByAgeDes = User.q().order("-age").asList(); - -h3. Pagination Support - -Usually you couldn't present all data in one request. This is why we need "Pagination":http://en.wikipedia.org/wiki/Pagination. Leveraging morphia's query interface, PlayMorphia provides an easy way to support query pagination: - -bc. List users = User.q().offset(30).limit(10).asList(); - -h2. Statistics - -"Map-Reduce":http://www.mongodb.org/display/DOCS/MapReduce is no doubt a powerful weapon provided by MongoDB for data aggregation. However it's by no means an easy tool in terms of Java programming. PlayMorphia module hide all the complexity behind a set of simple clean interfaces: - -bc. long userCount = User.count(); -long auUserCount = User.find("region", "AU").count(); -int minAge = User._min("age"); -int maxAge = User._max("age"); -int totalScore = User._sum("score"); -int averageScore = User._average("score"); -... -// group aggregation interface is still so easy to use -AggregationResult minValueDistribution = User.groupMin("age", "region department"); -int minAge_AU_IT = (int)minValueDistribution.get("region department", "AU", "IT"); -... - -h2. Entity Lifecycle callbacks - -Sometimes it's interesting to listen to the lifecycle events of an entity and proceed with relevant logics. For example, you want to log an entry input, or you want to send an notification email on entry removed. PlayMorphia provides a set of lifecycle annotations to mark the methods to be called when certain event triggered: - -bc. @Entity public class User { - public String fName; - public String lName; - @OnLoad void beforeLoad() { - Logger.info("user entity about to load data from mongodb"); - } - @Loaded void afterLoad() { - Logger.info("user entity now filled with data from mongodb"); - } - @OnAdd void beforeAddNew() { - Logger.info("About to create new user record"); - } - @Added void afterAddNew() { - Logger.info("new user record created in the database"); - } - @OnUpdate void beforeSaveUpdated(){ - Logger.info("About to persist updated user into database"); - } - @Updated void afterUpdatedSaved() { - Logger.info("Updated user data persisted to the database"); - } - @OnDelete void beforeDelete() { - Logger.info("About to delete a user record from the database"); - } - @Deleted void afterDelete() { - Logger.info("This user record is removed from mongodb"); - } - @OnBatchDelete static void beforeBatchDelete(MorphiaQuery q) { - Logger.info("About to delete all records specified by the query"); - } - @BatchDeleted static void afterBatchDelete(MorphiaQuery q) { - Logger.info("Records specified by the query has been deleted"; - // Note q.count() will always return 0 in this method as the - // records specified by the query has already been removed - } -} - -h2. Low level interface - -The facilities directly provided by PlayMorphia can cover almost all cases you could encountered when dealing with MongoDB. Though I want to say that , you could go to the low level interfaces exposed by PlayMorphia. - -h3. Morphia interface - -Once you installed PlayMorphia you get everything out of Morphia already. But trust me you almost have no chance to use them: - -bc. // get Morphia object -com.google.code.morphia.Morphia morphia = MorphiaPlugin.morphia(); -// get Datastore -com.google.code.morphia.Datastore ds = MorphiaPlugin.ds(); -// get AdvancedDatastore -com.google.code.morphia.AdvancedDatastore ds = (AdvancedDatastore)MorphiaPlugin.ds(); - -h3. The MongoDB Java Driver interface - -This is listed here just for curious: - -bc. // get Mongo object -com.mongodb.Mongo mongo = MorphiaPlugin.ds().getMongo(); - -p(note). **Give it a try** - +h1. PlayMorphia overview + +The PlayMorphia module a powerful and yet easy to use framework that provides "MongoDB":http://www.mongodb.org/ access to your Play!framework application. This module is built on top of the famous "Morphia project":http://code.google.com/p/morphia/. + +Stick to the philosophy of Play!Framework, PlayMorphia provides a data layer infrastructure to help developer focusing on the business logic instead of technical details. PlayMorphia is by far the most welcome MongoDB access module in the community + +h2. Easy to use Model class + +Thanks to the super powerful code enhancement mechanism of Play!framework, we could bring you a very simple model class and provides all weapons you need in the same time. + +You define a model class as: + +bc. @Entity +public class User extends Model { + public String fName; + public String lName; + public String region; + public String department; + public int age; + public int score; + + public User(String firstName, String lastName, region, department) { + this.fName = firstName; + this.lName = lastName; + this.region = region; + this.department = department; + } +} + +You use the model in your application in the following ways: + +bc. User user = new User("John", "Smith", "AU", "IT").save() +Object id = user.getId(); +... +User user = User.findById(id); +... +user.region = "ZH"; +user.department = "Sales"; +user.save(); +... +user.delete(); + +h2. Powerful query interface + +As shown above you could use @Model.findById@ interface to fetch an entity by it's identifier. But how to query data using non-id properties? Don't worry, PlayMorphia provides comprehensive query interfaces enable you to dig out every bit of data in whatever way you want: + +bc. List allUsers = User.findAll(); +... +List auUsers = User.find("region", "AU").asList(); +... +List auITUsers; +auITUsers = User.find("region department", "AU", "IT").asList(); +auITUsers = User.find("region,department", "AU", "IT").asList(); +auITUsers = User.find("byRegionAndDepartment", "AU", "IT").asList(); +auITUsers = User.q().filter("region", "AU").filter("department", "IT").asList(); +auITUsers = User.q().findBy("region department", "AU", "IT").asList();... +... +List auLittleUsers = User.find("region", "AU").filter("age <", 18).asList(); + +h3. Sort data returned + +It's bit of easy to sort data in ascend or descend order: + +bc. List usersByAgeAsc = User.q().order("age").asList(); +... +List usersByAgeDes = User.q().order("-age").asList(); + +h3. Pagination Support + +Usually you couldn't present all data in one request. This is why we need "Pagination":http://en.wikipedia.org/wiki/Pagination. Leveraging morphia's query interface, PlayMorphia provides an easy way to support query pagination: + +bc. List users = User.q().offset(30).limit(10).asList(); + +h2. Statistics + +"Map-Reduce":http://www.mongodb.org/display/DOCS/MapReduce is no doubt a powerful weapon provided by MongoDB for data aggregation. However it's by no means an easy tool in terms of Java programming. PlayMorphia module hide all the complexity behind a set of simple clean interfaces: + +bc. long userCount = User.count(); +long auUserCount = User.find("region", "AU").count(); +int minAge = User._min("age"); +int maxAge = User._max("age"); +int totalScore = User._sum("score"); +int averageScore = User._average("score"); +... +// group aggregation interface is still so easy to use +AggregationResult minValueDistribution = User.groupMin("age", "region department"); +int minAge_AU_IT = (int)minValueDistribution.get("region department", "AU", "IT"); +... + +h2. Entity Lifecycle callbacks + +Sometimes it's interesting to listen to the lifecycle events of an entity and proceed with relevant logics. For example, you want to log an entry input, or you want to send an notification email on entry removed. PlayMorphia provides a set of lifecycle annotations to mark the methods to be called when certain event triggered: + +bc. @Entity public class User { + public String fName; + public String lName; + @OnLoad void beforeLoad() { + Logger.info("user entity about to load data from mongodb"); + } + @Loaded void afterLoad() { + Logger.info("user entity now filled with data from mongodb"); + } + @OnAdd void beforeAddNew() { + Logger.info("About to create new user record"); + } + @Added void afterAddNew() { + Logger.info("new user record created in the database"); + } + @OnUpdate void beforeSaveUpdated(){ + Logger.info("About to persist updated user into database"); + } + @Updated void afterUpdatedSaved() { + Logger.info("Updated user data persisted to the database"); + } + @OnDelete void beforeDelete() { + Logger.info("About to delete a user record from the database"); + } + @Deleted void afterDelete() { + Logger.info("This user record is removed from mongodb"); + } + @OnBatchDelete static void beforeBatchDelete(MorphiaQuery q) { + Logger.info("About to delete all records specified by the query"); + } + @BatchDeleted static void afterBatchDelete(MorphiaQuery q) { + Logger.info("Records specified by the query has been deleted"; + // Note q.count() will always return 0 in this method as the + // records specified by the query has already been removed + } +} + +h2. Low level interface + +The facilities directly provided by PlayMorphia can cover almost all cases you could encountered when dealing with MongoDB. Though I want to say that , you could go to the low level interfaces exposed by PlayMorphia. + +h3. Morphia interface + +Once you installed PlayMorphia you get everything out of Morphia already. But trust me you almost have no chance to use them: + +bc. // get Morphia object +com.google.code.morphia.Morphia morphia = MorphiaPlugin.morphia(); +// get Datastore +com.google.code.morphia.Datastore ds = MorphiaPlugin.ds(); +// get AdvancedDatastore +com.google.code.morphia.AdvancedDatastore ds = (AdvancedDatastore)MorphiaPlugin.ds(); + +h3. The MongoDB Java Driver interface + +This is listed here just for curious: + +bc. // get Mongo object +com.mongodb.Mongo mongo = MorphiaPlugin.ds().getMongo(); + +p(note). **Give it a try** + "Install the PlayMorphia plugin":http://www.playframework.org/modules/morphia and start developing your application with MongoDB! \ No newline at end of file diff --git a/conf/dependencies.yml b/conf/dependencies.yml index a4c2191..8ed89f8 100644 --- a/conf/dependencies.yml +++ b/conf/dependencies.yml @@ -1,4 +1,4 @@ self: play -> morphia 1.2.4 require: - - play 1.2 + - play 1.2 \ No newline at end of file diff --git a/documentation/api/allclasses-frame.html b/documentation/api/allclasses-frame.html index 3fac46b..b07f702 100644 --- a/documentation/api/allclasses-frame.html +++ b/documentation/api/allclasses-frame.html @@ -1,97 +1,99 @@ - - - - - - -All Classes (PlayMorphia API) - - - - - - - - - - - -All Classes -
- - - - - -
AggregationResult -
-Blob -
-IdGenerator -
-Model -
-Model.Added -
-Model.AutoTimestamp -
-Model.BatchDeleted -
-Model.ByPass -
-Model.Column -
-Model.Deleted -
-Model.Loaded -
-Model.MorphiaQuery -
-Model.NoId -
-Model.OnAdd -
-Model.OnBatchDelete -
-Model.OnDelete -
-Model.OnLoad -
-Model.OnUpdate -
-Model.Updated -
-MorphiaEnhancer -
-MorphiaEvent -
-MorphiaEvent.IMorphiaEventHandler -
-MorphiaEvent.MorphiaEventHandlerAdaptor -
-MorphiaPlugin -
-MorphiaPlugin.IdType -
-MorphiaPlugin.MorphiaModelLoader -
-ObjectIdGsonAdapter -
-PlayLogr -
-PlayLogrFactory -
-Serializer -
-SilentLogrFactory -
-StringUtil -
-Watch -
-WatchBy -
-
- - - + + + + + + +All Classes (PlayMorphia API) + + + + + + + + + + + +All Classes +
+ + + + + +
AggregationResult +
+Blob +
+IdGenerator +
+Model +
+Model.Added +
+Model.AutoTimestamp +
+Model.BatchDeleted +
+Model.ByPass +
+Model.Column +
+Model.Datasource +
+Model.Deleted +
+Model.Loaded +
+Model.MorphiaQuery +
+Model.NoId +
+Model.OnAdd +
+Model.OnBatchDelete +
+Model.OnDelete +
+Model.OnLoad +
+Model.OnUpdate +
+Model.Updated +
+MorphiaEnhancer +
+MorphiaEvent +
+MorphiaEvent.IMorphiaEventHandler +
+MorphiaEvent.MorphiaEventHandlerAdaptor +
+MorphiaPlugin +
+MorphiaPlugin.IdType +
+MorphiaPlugin.MorphiaModelLoader +
+ObjectIdGsonAdapter +
+PlayLogr +
+PlayLogrFactory +
+Serializer +
+SilentLogrFactory +
+StringUtil +
+Watch +
+WatchBy +
+
+ + + diff --git a/documentation/api/allclasses-noframe.html b/documentation/api/allclasses-noframe.html index c848f29..bc81bcd 100644 --- a/documentation/api/allclasses-noframe.html +++ b/documentation/api/allclasses-noframe.html @@ -1,97 +1,99 @@ - - - - - - -All Classes (PlayMorphia API) - - - - - - - - - - - -All Classes -
- - - - - -
AggregationResult -
-Blob -
-IdGenerator -
-Model -
-Model.Added -
-Model.AutoTimestamp -
-Model.BatchDeleted -
-Model.ByPass -
-Model.Column -
-Model.Deleted -
-Model.Loaded -
-Model.MorphiaQuery -
-Model.NoId -
-Model.OnAdd -
-Model.OnBatchDelete -
-Model.OnDelete -
-Model.OnLoad -
-Model.OnUpdate -
-Model.Updated -
-MorphiaEnhancer -
-MorphiaEvent -
-MorphiaEvent.IMorphiaEventHandler -
-MorphiaEvent.MorphiaEventHandlerAdaptor -
-MorphiaPlugin -
-MorphiaPlugin.IdType -
-MorphiaPlugin.MorphiaModelLoader -
-ObjectIdGsonAdapter -
-PlayLogr -
-PlayLogrFactory -
-Serializer -
-SilentLogrFactory -
-StringUtil -
-Watch -
-WatchBy -
-
- - - + + + + + + +All Classes (PlayMorphia API) + + + + + + + + + + + +All Classes +
+ + + + + +
AggregationResult +
+Blob +
+IdGenerator +
+Model +
+Model.Added +
+Model.AutoTimestamp +
+Model.BatchDeleted +
+Model.ByPass +
+Model.Column +
+Model.Datasource +
+Model.Deleted +
+Model.Loaded +
+Model.MorphiaQuery +
+Model.NoId +
+Model.OnAdd +
+Model.OnBatchDelete +
+Model.OnDelete +
+Model.OnLoad +
+Model.OnUpdate +
+Model.Updated +
+MorphiaEnhancer +
+MorphiaEvent +
+MorphiaEvent.IMorphiaEventHandler +
+MorphiaEvent.MorphiaEventHandlerAdaptor +
+MorphiaPlugin +
+MorphiaPlugin.IdType +
+MorphiaPlugin.MorphiaModelLoader +
+ObjectIdGsonAdapter +
+PlayLogr +
+PlayLogrFactory +
+Serializer +
+SilentLogrFactory +
+StringUtil +
+Watch +
+WatchBy +
+
+ + + diff --git a/documentation/api/constant-values.html b/documentation/api/constant-values.html index 5bdff93..2198a10 100644 --- a/documentation/api/constant-values.html +++ b/documentation/api/constant-values.html @@ -1,258 +1,264 @@ - - - - - - -Constant Field Values (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Constant Field Values

-
-
-Contents - - - - - - -
-play.modules.*
- -

- - - - - - - - - - - - -
play.modules.morphia.Model
-public static final java.lang.StringALL"__all__"
- -

- -

- - - - - - - - - - - - -
play.modules.morphia.MorphiaEnhancer
-public static final java.lang.StringPACKAGE_NAME"play.modules.morphia"
- -

- -

- - - - - - - - - - - - -
play.modules.morphia.MorphiaEvent
-public static final java.lang.StringPREFIX"MORPHIA_"
- -

- -

- - - - - - - - - - - - - - - - - -
play.modules.morphia.MorphiaPlugin
-public static final java.lang.StringPREFIX"morphia.db."
-public static final java.lang.StringVERSION"1.2.4"
- -

- -

- - - - - - - - - - - - - - - - - -
play.modules.morphia.utils.StringUtil
-public static final intIGNORECASE4096
-public static final intIGNORESPACE8192
- -

- -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Constant Field Values (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+play.modules.*
+ +

+ + + + + + + + + + + + +
play.modules.morphia.Model
+public static final java.lang.StringALL"__all__"
+ +

+ +

+ + + + + + + + + + + + +
play.modules.morphia.MorphiaEnhancer
+public static final java.lang.StringPACKAGE_NAME"play.modules.morphia"
+ +

+ +

+ + + + + + + + + + + + +
play.modules.morphia.MorphiaEvent
+public static final java.lang.StringPREFIX"MORPHIA_"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + +
play.modules.morphia.MorphiaPlugin
+public static final java.lang.StringDEFAULT_DS_NAME"default"
+public static final java.lang.StringPREFIX"morphia.db."
+public static final java.lang.StringVERSION"1.2.4a"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
play.modules.morphia.utils.StringUtil
+public static final intIGNORECASE4096
+public static final intIGNORESPACE8192
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/deprecated-list.html b/documentation/api/deprecated-list.html index df61ce6..e7d2e43 100644 --- a/documentation/api/deprecated-list.html +++ b/documentation/api/deprecated-list.html @@ -1,176 +1,191 @@ - - - - - - -Deprecated List (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Deprecated API

-
-
-Contents - - - - - - - - - - - - - - - - - - -
-Deprecated Methods
play.modules.morphia.Model.MorphiaQuery.disableTimeout() -
-           
play.modules.morphia.Model.MorphiaQuery.enableTimeout() -
-           
play.modules.morphia.Model.isEmbedded_() -
-            
play.modules.morphia.Model.MorphiaQuery.skip(int) -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Deprecated List (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Deprecated Methods
play.modules.morphia.Model.db() +
+           
play.modules.morphia.Model.MorphiaQuery.disableTimeout() +
+           
play.modules.morphia.MorphiaPlugin.ds() +
+           
play.modules.morphia.Model.ds() +
+           
play.modules.morphia.Model.MorphiaQuery.enableTimeout() +
+           
play.modules.morphia.Model.isEmbedded_() +
+            
play.modules.morphia.Model.MorphiaQuery.skip(int) +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/help-doc.html b/documentation/api/help-doc.html index 884031b..2bfa395 100644 --- a/documentation/api/help-doc.html +++ b/documentation/api/help-doc.html @@ -1,223 +1,223 @@ - - - - - - -API Help (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-How This API Document Is Organized

-
-This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

-Overview

-
- -

-The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

-

-Package

-
- -

-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    -
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
-
-

-Class/Interface

-
- -

-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    -
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description -

    -

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary -

    -

  • Field Detail
  • Constructor Detail
  • Method Detail
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
- -

-Annotation Type

-
- -

-Each annotation type has its own separate page with the following sections:

    -
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
-
- -

-Enum

-
- -

-Each enum has its own separate page with the following sections:

    -
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
-
-

-Use

-
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-

-Tree (Class Hierarchy)

-
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    -
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
-
-

-Deprecated API

-
-The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-

-Index

-
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-

-Prev/Next

-These links take you to the next or previous class, interface, package, or related page.

-Frames/No Frames

-These links show and hide the HTML frames. All pages are available with or without frames. -

-

-Serialized Form

-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. -

-

-Constant Field Values

-The Constant Field Values page lists the static final fields and their values. -

- - -This help file applies to API documentation generated using the standard doclet. - -
-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +API Help (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/index-all.html b/documentation/api/index-all.html index d3421c4..a13158b 100644 --- a/documentation/api/index-all.html +++ b/documentation/api/index-all.html @@ -1,1172 +1,1180 @@ - - - - - - -Index (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -A B C D E F G H I J K L M O P Q R S T U V W _
-

-A

-
-
added(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
added(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
AggregationResult - Class in play.modules.morphia
 
AggregationResult(List<CommandResult>, String) - -Constructor for class play.modules.morphia.AggregationResult -
  -
ALL - -Static variable in class play.modules.morphia.Model -
  -
all() - -Static method in class play.modules.morphia.Model -
  -
and(Criteria...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
asBitSet(byte[]) - -Static method in class play.modules.morphia.utils.Serializer -
  -
asKeyList() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
asList() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
average(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-B

-
-
batchDeleted(Model.MorphiaQuery) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
batchDeleted(Model.MorphiaQuery) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
batchSize(int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
bind(String, Class, Type, Annotation[], Map<String, String[]>) - -Method in class play.modules.morphia.MorphiaPlugin -
  -
bind(String, Object, Map<String, String[]>) - -Method in class play.modules.morphia.MorphiaPlugin -
  -
Blob - Class in play.modules.morphia
 
Blob() - -Constructor for class play.modules.morphia.Blob -
  -
Blob(InputStream, String) - -Constructor for class play.modules.morphia.Blob -
  -
Blob(File, String) - -Constructor for class play.modules.morphia.Blob -
  -
Blob(String) - -Constructor for class play.modules.morphia.Blob -
  -
blobChanged(String) - -Method in class play.modules.morphia.Model -
  -
blobFieldsTracker - -Variable in class play.modules.morphia.Model -
  -
-
-

-C

-
-
clearAllModelEventHandler() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
clearGlobalEventHandler() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
clearModelEventHandler(Class<? extends Model>) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
clone() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
cloud(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
col() - -Static method in class play.modules.morphia.Model -
Return MongoDB DBCollection for this model -
col() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
configured() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
count() - -Static method in class play.modules.morphia.Model -
  -
count(String, Object...) - -Static method in class play.modules.morphia.Model -
  -
count() - -Method in class play.modules.morphia.Model.MorphiaQuery -
Alias of countAll() -
count(List<String>, String, String) - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
countAll() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
create(Class<?>, String, Map<String, String[]>, Annotation[]) - -Static method in class play.modules.morphia.Model -
  -
create(String, Params) - -Static method in class play.modules.morphia.Model -
  -
create() - -Method in class play.modules.morphia.Model -
store (ie insert) the entity. -
createQuery() - -Static method in class play.modules.morphia.Model -
  -
criteria(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-D

-
-
db() - -Static method in class play.modules.morphia.Model -
Return MongoDB DB instance -
debug(String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
debug(Throwable, String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
debug(String) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
debug(String, Object...) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
debug(String, Throwable) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
delete() - -Method in class play.modules.morphia.Blob -
  -
delete(String) - -Static method in class play.modules.morphia.Blob -
  -
delete() - -Method in class play.modules.morphia.Model -
  -
delete(Model.MorphiaQuery) - -Static method in class play.modules.morphia.Model -
  -
delete() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
deleteAll() - -Static method in class play.modules.morphia.Model -
Shortcut to Model.delete(find()) -
deleteAll() - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
deleteBlobs() - -Method in class play.modules.morphia.Model -
  -
deleteBlobsInBatch(Model.MorphiaQuery) - -Method in class play.modules.morphia.Model -
  -
deleted(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
deleted(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
deserialize(JsonElement, Type, JsonDeserializationContext) - -Method in class play.modules.morphia.utils.ObjectIdGsonAdapter -
  -
disableCursorTimeout() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
disableSnapshotMode() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
disableTimeout() - -Method in class play.modules.morphia.Model.MorphiaQuery -
Deprecated.  -
disableValidation() - -Static method in class play.modules.morphia.Model -
  -
disableValidation() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
distinct(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
ds() - -Static method in class play.modules.morphia.Model -
Return Morphia Datastore instance -
ds() - -Static method in class play.modules.morphia.Model.MorphiaQuery -
  -
ds() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
ds(String) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
ds() - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
-
-

-E

-
-
edit(Object, String, Map<String, String[]>, Annotation[]) - -Static method in class play.modules.morphia.Model -
  -
edit(String, Map<String, String[]>) - -Method in class play.modules.morphia.Model -
  -
enableCursorTimeout() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
enableSnapshotMode() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
enableTimeout() - -Method in class play.modules.morphia.Model.MorphiaQuery -
Deprecated.  -
enableValidation() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
enhance(ApplicationClass) - -Method in class play.modules.morphia.MorphiaPlugin -
  -
enhanceThisClass(ApplicationClass) - -Method in class play.modules.morphia.MorphiaEnhancer -
  -
equals(Object) - -Method in class play.modules.morphia.Model + + + + + + +Index (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I J K L M O P Q R S T U V W _
+

+A

+
+
added(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
added(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
AggregationResult - Class in play.modules.morphia
 
AggregationResult(List<CommandResult>, String) - +Constructor for class play.modules.morphia.AggregationResult +
  +
ALL - +Static variable in class play.modules.morphia.Model +
  +
all() - +Static method in class play.modules.morphia.Model +
  +
and(Criteria...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
asBitSet(byte[]) - +Static method in class play.modules.morphia.utils.Serializer +
  +
asKeyList() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
asList() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
average(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+B

+
+
batchDeleted(Model.MorphiaQuery) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
batchDeleted(Model.MorphiaQuery) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
batchSize(int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
bind(String, Class, Type, Annotation[], Map<String, String[]>) - +Method in class play.modules.morphia.MorphiaPlugin +
  +
bind(String, Object, Map<String, String[]>) - +Method in class play.modules.morphia.MorphiaPlugin +
  +
Blob - Class in play.modules.morphia
 
Blob() - +Constructor for class play.modules.morphia.Blob +
  +
Blob(InputStream, String) - +Constructor for class play.modules.morphia.Blob +
  +
Blob(File, String) - +Constructor for class play.modules.morphia.Blob +
  +
Blob(String) - +Constructor for class play.modules.morphia.Blob +
  +
blobChanged(String) - +Method in class play.modules.morphia.Model +
  +
blobFieldsTracker - +Variable in class play.modules.morphia.Model +
  +
+
+

+C

+
+
clearAllModelEventHandler() - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
clearGlobalEventHandler() - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
clearModelEventHandler(Class<? extends Model>) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
clone() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
cloud(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
col() - +Static method in class play.modules.morphia.Model +
Return MongoDB DBCollection for this model +
col(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
configured() - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
count() - +Static method in class play.modules.morphia.Model +
  +
count(String, Object...) - +Static method in class play.modules.morphia.Model +
  +
count() - +Method in class play.modules.morphia.Model.MorphiaQuery +
Alias of countAll() +
count(List<String>, String, String) - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
countAll() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
create(Class<?>, String, Map<String, String[]>, Annotation[]) - +Static method in class play.modules.morphia.Model +
  +
create(String, Params) - +Static method in class play.modules.morphia.Model +
  +
create() - +Method in class play.modules.morphia.Model +
store (ie insert) the entity. +
createQuery() - +Static method in class play.modules.morphia.Model +
  +
criteria(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+D

+
+
db() - +Static method in class play.modules.morphia.Model +
Deprecated.  +
debug(String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
debug(Throwable, String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
debug(String) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
debug(String, Object...) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
debug(String, Throwable) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
DEFAULT_DS_NAME - +Static variable in class play.modules.morphia.MorphiaPlugin +
  +
delete() - +Method in class play.modules.morphia.Blob +
  +
delete(String) - +Static method in class play.modules.morphia.Blob +
  +
delete() - +Method in class play.modules.morphia.Model +
  +
delete(Model.MorphiaQuery) - +Static method in class play.modules.morphia.Model +
  +
delete() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
deleteAll() - +Static method in class play.modules.morphia.Model +
Shortcut to Model.delete(find()) +
deleteAll() - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
deleteBlobs() - +Method in class play.modules.morphia.Model +
  +
deleteBlobsInBatch(Model.MorphiaQuery) - +Method in class play.modules.morphia.Model +
  +
deleted(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
deleted(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
deserialize(JsonElement, Type, JsonDeserializationContext) - +Method in class play.modules.morphia.utils.ObjectIdGsonAdapter +
  +
disableCursorTimeout() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
disableSnapshotMode() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
disableTimeout() - +Method in class play.modules.morphia.Model.MorphiaQuery +
Deprecated.  +
disableValidation() - +Static method in class play.modules.morphia.Model +
  +
disableValidation() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
distinct(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
ds() - +Static method in class play.modules.morphia.Model +
Deprecated.  +
ds(String) - +Static method in class play.modules.morphia.Model +
  +
ds(String) - +Static method in class play.modules.morphia.Model.MorphiaQuery +
  +
ds() - +Static method in class play.modules.morphia.MorphiaPlugin +
Deprecated.  +
ds(String) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
ds(String) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
+
+

+E

+
+
edit(Object, String, Map<String, String[]>, Annotation[]) - +Static method in class play.modules.morphia.Model +
  +
edit(String, Map<String, String[]>) - +Method in class play.modules.morphia.Model +
  +
enableCursorTimeout() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
enableSnapshotMode() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
enableTimeout() - +Method in class play.modules.morphia.Model.MorphiaQuery +
Deprecated.  +
enableValidation() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
enhance(ApplicationClass) - +Method in class play.modules.morphia.MorphiaPlugin +
  +
enhanceThisClass(ApplicationClass) - +Method in class play.modules.morphia.MorphiaEnhancer +
  +
equals(Object) - +Method in class play.modules.morphia.Model
For sub class with \@Embedded annotation specified, it's better to - override this method -
error(String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
error(Throwable, String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
error(String) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
error(String, Object...) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
error(String, Throwable) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
exists() - -Method in class play.modules.morphia.Blob -
  -
-
-

-F

-
-
fatal(String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
fatal(Throwable, String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
fetch(int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
Retrieve results of the query -
fetch(int, int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
Retrieve a page of result -
fetch() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
fetch(int, int, String, String, List<String>, String, String) - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
fetchAll() - -Method in class play.modules.morphia.Model.MorphiaQuery + override this method +
error(String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
error(Throwable, String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
error(String) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
error(String, Object...) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
error(String, Throwable) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
exists() - +Method in class play.modules.morphia.Blob +
  +
+
+

+F

+
+
fatal(String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
fatal(Throwable, String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
fetch(int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
Retrieve results of the query +
fetch(int, int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
Retrieve a page of result +
fetch() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
fetch(int, int, String, String, List<String>, String, String) - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
fetchAll() - +Method in class play.modules.morphia.Model.MorphiaQuery
Retrieve all results of the query This is a correspondence to JPAQuery's fetch(), which however, used - as another method signature of Morphia Query -
fetchEmptyEntities() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
fetchKeys() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
field(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
filter(String, Object) - -Static method in class play.modules.morphia.Model -
Morphia style filter method. -
filter(String, Object) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
find() - -Static method in class play.modules.morphia.Model -
Shortcut to createQuery() -
find(String, Object...) - -Static method in class play.modules.morphia.Model -
JPA style find method -
findAll() - -Static method in class play.modules.morphia.Model -
  -
findBy(String, Object...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
Used to simulate JPA.find("byXXAndYY", ...); -
findById(Object) - -Static method in class play.modules.morphia.Model -
  -
findById(Object) - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
findFile(String) - -Static method in class play.modules.morphia.Blob -
  -
first() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
forId(String) - -Static method in enum play.modules.morphia.MorphiaEvent -
  -
from(int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
Set the position to start -
fromBitSet(BitSet) - -Static method in class play.modules.morphia.utils.Serializer -
  -
-
-

-G

-
-
generateId(Model) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
generateLongId(T) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
generateLongId(Class<T>) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
generateObjectIdId(T) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
generateObjectIdId(Class<T>) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
get() - -Method in class play.modules.morphia.Blob -
  -
get() - -Static method in class play.modules.morphia.Model -
Return the first element in the data storage. -
get() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
get(Class<?>) - -Method in class play.modules.morphia.utils.PlayLogrFactory -
  -
get(Class<?>) - -Method in class play.modules.morphia.utils.SilentLogrFactory -
  -
getBlobFileName(String) - -Method in class play.modules.morphia.Model -
  -
getBlobFileName(String, Object, String) - -Static method in class play.modules.morphia.Model -
  -
getEntityClass() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
getFactory(Class<? extends Model>) - -Static method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
getGridFSFile() - -Method in class play.modules.morphia.Blob -
  -
getId() - -Method in class play.modules.morphia.Model + as another method signature of Morphia Query +
fetchEmptyEntities() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
fetchKeys() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
field(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
filter(String, Object) - +Static method in class play.modules.morphia.Model +
Morphia style filter method. +
filter(String, Object) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
find() - +Static method in class play.modules.morphia.Model +
Shortcut to createQuery() +
find(String, Object...) - +Static method in class play.modules.morphia.Model +
JPA style find method +
findAll() - +Static method in class play.modules.morphia.Model +
  +
findBy(String, Object...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
Used to simulate JPA.find("byXXAndYY", ...); +
findById(Object) - +Static method in class play.modules.morphia.Model +
  +
findById(Object) - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
findFile(String) - +Static method in class play.modules.morphia.Blob +
  +
first() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
forId(String) - +Static method in enum play.modules.morphia.MorphiaEvent +
  +
from(int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
Set the position to start +
fromBitSet(BitSet) - +Static method in class play.modules.morphia.utils.Serializer +
  +
+
+

+G

+
+
generateId(Model) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
generateLongId(T) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
generateLongId(Class<T>) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
generateObjectIdId(T) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
generateObjectIdId(Class<T>) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
get() - +Method in class play.modules.morphia.Blob +
  +
get() - +Static method in class play.modules.morphia.Model +
Return the first element in the data storage. +
get() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
get(Class<?>) - +Method in class play.modules.morphia.utils.PlayLogrFactory +
  +
get(Class<?>) - +Method in class play.modules.morphia.utils.SilentLogrFactory +
  +
getBlobFileName(String) - +Method in class play.modules.morphia.Model +
  +
getBlobFileName(String, Object, String) - +Static method in class play.modules.morphia.Model +
  +
getDatasourceNameFromAnnotation(Class) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
getEntityClass() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
getFactory(Class<? extends Model>) - +Static method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
getGridFSFile() - +Method in class play.modules.morphia.Blob +
  +
getId() - +Method in class play.modules.morphia.Model
MorphiaEnhancer will override this method for sub class without \@Embedded annotation specified If user defined customized \@Id field, it's better to override this - method for the sake of performance. -
getId() - -Method in enum play.modules.morphia.MorphiaEvent -
  -
getIdType() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
getIdTypeName() - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
getKey() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
getModelFactory() - -Static method in class play.modules.morphia.Model -
  -
getMorphiaQuery() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
getQueryObject() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
getResult() - -Method in class play.modules.morphia.AggregationResult -
  -
getResult(String, Object...) - -Method in class play.modules.morphia.AggregationResult -
  -
gridFs() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
group(String, DBObject, String, String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
groupAverage(String, String...) - -Static method in class play.modules.morphia.Model -
  -
groupAverage(String, String...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
groupCount(String, String...) - -Static method in class play.modules.morphia.Model -
  -
groupCount(String, String...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
groupMax(String, String...) - -Static method in class play.modules.morphia.Model -
  -
groupMax(String, String...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
groupMin(String, String...) - -Static method in class play.modules.morphia.Model -
  -
groupMin(String, String...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
groupSum(String, String...) - -Static method in class play.modules.morphia.Model -
  -
groupSum(String, String...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-H

-
-
h_Added() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
h_BatchDeleted(Model.MorphiaQuery) - -Method in class play.modules.morphia.Model -
  -
h_Deleted() - -Method in class play.modules.morphia.Model -
  -
h_Loaded() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
h_OnAdd() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
h_OnBatchDelete(Model.MorphiaQuery) - -Method in class play.modules.morphia.Model -
  -
h_OnDelete() - -Method in class play.modules.morphia.Model -
  -
h_OnLoad() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
h_OnUpdate() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
h_Updated() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
hashCode() - -Method in class play.modules.morphia.Model + method for the sake of performance. +
getId() - +Method in enum play.modules.morphia.MorphiaEvent +
  +
getIdType() - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
getIdTypeName() - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
getKey() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
getModelFactory() - +Static method in class play.modules.morphia.Model +
  +
getMorphiaQuery() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
getQueryObject() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
getResult() - +Method in class play.modules.morphia.AggregationResult +
  +
getResult(String, Object...) - +Method in class play.modules.morphia.AggregationResult +
  +
gridFs() - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
group(String, DBObject, String, String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
groupAverage(String, String...) - +Static method in class play.modules.morphia.Model +
  +
groupAverage(String, String...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
groupCount(String, String...) - +Static method in class play.modules.morphia.Model +
  +
groupCount(String, String...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
groupMax(String, String...) - +Static method in class play.modules.morphia.Model +
  +
groupMax(String, String...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
groupMin(String, String...) - +Static method in class play.modules.morphia.Model +
  +
groupMin(String, String...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
groupSum(String, String...) - +Static method in class play.modules.morphia.Model +
  +
groupSum(String, String...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+H

+
+
h_Added() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
h_BatchDeleted(Model.MorphiaQuery) - +Method in class play.modules.morphia.Model +
  +
h_Deleted() - +Method in class play.modules.morphia.Model +
  +
h_Loaded() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
h_OnAdd() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
h_OnBatchDelete(Model.MorphiaQuery) - +Method in class play.modules.morphia.Model +
  +
h_OnDelete() - +Method in class play.modules.morphia.Model +
  +
h_OnLoad() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
h_OnUpdate() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
h_Updated() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
hashCode() - +Method in class play.modules.morphia.Model
For sub class with \@Embedded annotation specified, it's better to - override this method -
hintIndex(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-I

-
-
IdGenerator - Class in play.modules.morphia.utils
 
IdGenerator() - -Constructor for class play.modules.morphia.utils.IdGenerator -
  -
IGNORECASE - -Static variable in class play.modules.morphia.utils.StringUtil -
  -
IGNORESPACE - -Static variable in class play.modules.morphia.utils.StringUtil -
  -
info(String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
info(Throwable, String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
info(String) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
info(String, Object...) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
info(String, Throwable) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
invokeOn(MorphiaEvent.IMorphiaEventHandler, Object) - -Method in enum play.modules.morphia.MorphiaEvent -
  -
isDebugEnabled() - -Method in class play.modules.morphia.utils.PlayLogr -
  -
isEmbedded_() - -Method in class play.modules.morphia.Model -
Deprecated.   -
isEmpty(String) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
isEqual(String, String) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
isEqual(String, String, int) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
isErrorEnabled() - -Method in class play.modules.morphia.utils.PlayLogr -
  -
isInfoEnabled() - -Method in class play.modules.morphia.utils.PlayLogr -
  -
isNew() - -Method in class play.modules.morphia.Model + override this method +
hintIndex(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+I

+
+
IdGenerator - Class in play.modules.morphia.utils
 
IdGenerator() - +Constructor for class play.modules.morphia.utils.IdGenerator +
  +
IGNORECASE - +Static variable in class play.modules.morphia.utils.StringUtil +
  +
IGNORESPACE - +Static variable in class play.modules.morphia.utils.StringUtil +
  +
info(String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
info(Throwable, String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
info(String) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
info(String, Object...) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
info(String, Throwable) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
invokeOn(MorphiaEvent.IMorphiaEventHandler, Object) - +Method in enum play.modules.morphia.MorphiaEvent +
  +
isDebugEnabled() - +Method in class play.modules.morphia.utils.PlayLogr +
  +
isEmbedded_() - +Method in class play.modules.morphia.Model +
Deprecated.   +
isEmpty(String) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
isEqual(String, String) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
isEqual(String, String, int) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
isErrorEnabled() - +Method in class play.modules.morphia.utils.PlayLogr +
  +
isInfoEnabled() - +Method in class play.modules.morphia.utils.PlayLogr +
  +
isNew() - +Method in class play.modules.morphia.Model
A utility method determine whether this entity is a newly constructed - object in memory or represents a data from mongodb -
isTraceEnabled() - -Method in class play.modules.morphia.utils.PlayLogr -
  -
isUserDefinedId_() - -Method in class play.modules.morphia.Model + object in memory or represents a data from mongodb +
isTraceEnabled() - +Method in class play.modules.morphia.utils.PlayLogr +
  +
isUserDefinedId_() - +Method in class play.modules.morphia.Model
MorphiaEnhancer will override this method for sub class with \@Id - annotation specified -
isWarningEnabled() - -Method in class play.modules.morphia.utils.PlayLogr -
  -
iterator() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-J

-
-
join(String, Collection<?>) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
join(String, Collection<?>, boolean) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
join(String, String, String, Collection<?>, boolean) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
join(String, String, String, Collection<?>) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
join(String, String...) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
-
-

-K

-
-
keyName() - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
keyType() - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
keyValue(play.db.Model) - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
-
-

-L

-
-
length() - -Method in class play.modules.morphia.Blob -
  -
limit(int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
listProperties() - -Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
loadBlobs() - -Method in class play.modules.morphia.Model -
  -
loaded(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
loaded(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
loggerRegistered() - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
lowerFirstChar(String) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
-
-

-M

-
-
main(String[]) - -Static method in enum play.modules.morphia.MorphiaEvent -
  -
main(String[]) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
max(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
merge() - -Method in class play.modules.morphia.Model -
This method has no effect at all -
min(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
Model - Class in play.modules.morphia
This class provides the abstract declarations for all Models.
Model() - -Constructor for class play.modules.morphia.Model -
  -
Model.Added - Annotation Type in play.modules.morphia
Added mark a method be called after an new entity is saved.
Model.AutoTimestamp - Annotation Type in play.modules.morphia
 
Model.BatchDeleted - Annotation Type in play.modules.morphia
Deleted mark a method be called after an a query deletion executed
Model.ByPass - Annotation Type in play.modules.morphia
 
Model.Column - Annotation Type in play.modules.morphia
 
Model.Deleted - Annotation Type in play.modules.morphia
Deleted mark a method be called after an entity is deleted
Model.Loaded - Annotation Type in play.modules.morphia
OnLoad mark a method be called immediately after an entity loaded from mongodb
Model.MorphiaQuery - Class in play.modules.morphia
 
Model.MorphiaQuery(Class<? extends Model>) - -Constructor for class play.modules.morphia.Model.MorphiaQuery -
  -
Model.MorphiaQuery(Class<? extends Model>, DBCollection, Datastore) - -Constructor for class play.modules.morphia.Model.MorphiaQuery -
  -
Model.MorphiaQuery(Class<? extends Model>, DBCollection, Datastore, int, int) - -Constructor for class play.modules.morphia.Model.MorphiaQuery -
  + annotation specified +
isWarningEnabled() - +Method in class play.modules.morphia.utils.PlayLogr +
  +
iterator() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+J

+
+
join(String, Collection<?>) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
join(String, Collection<?>, boolean) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
join(String, String, String, Collection<?>, boolean) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
join(String, String, String, Collection<?>) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
join(String, String...) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
+
+

+K

+
+
keyName() - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
keyType() - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
keyValue(play.db.Model) - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
+
+

+L

+
+
length() - +Method in class play.modules.morphia.Blob +
  +
limit(int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
listProperties() - +Method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
loadBlobs() - +Method in class play.modules.morphia.Model +
  +
loaded(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
loaded(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
loggerRegistered() - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
lowerFirstChar(String) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
+
+

+M

+
+
main(String[]) - +Static method in enum play.modules.morphia.MorphiaEvent +
  +
main(String[]) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
max(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
merge() - +Method in class play.modules.morphia.Model +
This method has no effect at all +
min(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
Model - Class in play.modules.morphia
This class provides the abstract declarations for all Models.
Model() - +Constructor for class play.modules.morphia.Model +
  +
Model.Added - Annotation Type in play.modules.morphia
Added mark a method be called after an new entity is saved.
Model.AutoTimestamp - Annotation Type in play.modules.morphia
 
Model.BatchDeleted - Annotation Type in play.modules.morphia
Deleted mark a method be called after an a query deletion executed
Model.ByPass - Annotation Type in play.modules.morphia
 
Model.Column - Annotation Type in play.modules.morphia
 
Model.Datasource - Annotation Type in play.modules.morphia
Associate an entity with a named Datasource.
Model.Deleted - Annotation Type in play.modules.morphia
Deleted mark a method be called after an entity is deleted
Model.Loaded - Annotation Type in play.modules.morphia
OnLoad mark a method be called immediately after an entity loaded from mongodb
Model.MorphiaQuery - Class in play.modules.morphia
 
Model.MorphiaQuery(Class<? extends Model>) - +Constructor for class play.modules.morphia.Model.MorphiaQuery +
  +
Model.MorphiaQuery(Class<? extends Model>, DBCollection, Datastore) - +Constructor for class play.modules.morphia.Model.MorphiaQuery +
  +
Model.MorphiaQuery(Class<? extends Model>, DBCollection, Datastore, int, int) - +Constructor for class play.modules.morphia.Model.MorphiaQuery +
 
Model.NoId - Annotation Type in play.modules.morphia
NoID is used to annotate on sub types which is sure to get ID field from - parent type
Model.OnAdd - Annotation Type in play.modules.morphia
OnAdd mark a method be called before an new entity is saved.
Model.OnBatchDelete - Annotation Type in play.modules.morphia
OnBatchDelete mark a method be called before a query's delete method get called.
Model.OnDelete - Annotation Type in play.modules.morphia
OnDelete mark a method be called before an entity is deleted.
Model.OnLoad - Annotation Type in play.modules.morphia
OnLoad mark a method be called after an new instance of an entity is initialized and - before the properties are filled with mongo db columns
Model.OnUpdate - Annotation Type in play.modules.morphia
OnUpdate mark a method be called before an existing entity is saved.
Model.Updated - Annotation Type in play.modules.morphia
Updated mark a method be called after an existing entity is saved.
modelFactory(Class<? extends play.db.Model>) - -Method in class play.modules.morphia.MorphiaPlugin -
  -
morphia() - -Static method in class play.modules.morphia.MorphiaPlugin -
  + parent type
Model.OnAdd - Annotation Type in play.modules.morphia
OnAdd mark a method be called before an new entity is saved.
Model.OnBatchDelete - Annotation Type in play.modules.morphia
OnBatchDelete mark a method be called before a query's delete method get called.
Model.OnDelete - Annotation Type in play.modules.morphia
OnDelete mark a method be called before an entity is deleted.
Model.OnLoad - Annotation Type in play.modules.morphia
 
Model.OnUpdate - Annotation Type in play.modules.morphia
OnUpdate mark a method be called before an existing entity is saved.
Model.Updated - Annotation Type in play.modules.morphia
Updated mark a method be called after an existing entity is saved.
modelFactory(Class<? extends play.db.Model>) - +Method in class play.modules.morphia.MorphiaPlugin +
  +
morphia(String) - +Static method in class play.modules.morphia.MorphiaPlugin +
 
MorphiaEnhancer - Class in play.modules.morphia
This class uses the Play framework enhancement process to enhance classes - marked with the morphia annotations.
MorphiaEnhancer() - -Constructor for class play.modules.morphia.MorphiaEnhancer -
  -
MorphiaEvent - Enum in play.modules.morphia
 
MorphiaEvent.IMorphiaEventHandler - Interface in play.modules.morphia
 
MorphiaEvent.MorphiaEventHandlerAdaptor - Class in play.modules.morphia
 
MorphiaEvent.MorphiaEventHandlerAdaptor() - -Constructor for class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
MorphiaPlugin - Class in play.modules.morphia
The plugin for the Morphia module.
MorphiaPlugin() - -Constructor for class play.modules.morphia.MorphiaPlugin -
  -
MorphiaPlugin.IdType - Enum in play.modules.morphia
 
MorphiaPlugin.MorphiaModelLoader - Class in play.modules.morphia
 
-
-

-O

-
-
ObjectIdGsonAdapter - Class in play.modules.morphia.utils
 
ObjectIdGsonAdapter() - -Constructor for class play.modules.morphia.utils.ObjectIdGsonAdapter -
  -
offset(int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
onAdd(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
onAdd(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
onApplicationStart() - -Method in class play.modules.morphia.MorphiaPlugin -
  -
onBatchDelete(Model.MorphiaQuery) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
onBatchDelete(Model.MorphiaQuery) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
onConfigurationRead() - -Method in class play.modules.morphia.MorphiaPlugin -
  -
onDelete(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
onDelete(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
onInvocationException(Throwable) - -Method in class play.modules.morphia.MorphiaPlugin -
  -
onLoad(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
onLoad(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
onUpdate(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
onUpdate(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
or(Criteria...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
order(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-P

-
-
PACKAGE_NAME - -Static variable in class play.modules.morphia.MorphiaEnhancer -
  -
play.modules.morphia - package play.modules.morphia
 
play.modules.morphia.utils - package play.modules.morphia.utils
 
PlayLogr - Class in play.modules.morphia.utils
 
PlayLogr() - -Constructor for class play.modules.morphia.utils.PlayLogr -
  -
PlayLogrFactory - Class in play.modules.morphia.utils
 
PlayLogrFactory() - -Constructor for class play.modules.morphia.utils.PlayLogrFactory -
  -
PREFIX - -Static variable in enum play.modules.morphia.MorphiaEvent -
  -
PREFIX - -Static variable in class play.modules.morphia.MorphiaPlugin -
  -
processId(Object) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
processId_(Object) - -Static method in class play.modules.morphia.Model -
Any sub class with \@Id annotation specified need to rewrite this method -
processLongId(Object) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
processObjectId(Object) - -Static method in class play.modules.morphia.utils.IdGenerator -
  -
processWhere(<any>, String) - -Static method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -
  -
-
-

-Q

-
-
q() - -Static method in class play.modules.morphia.Model -
Shortcut to createQuery -
q(String, Object) - -Static method in class play.modules.morphia.Model -
Shortcut to find(String, Object...) -
queryNonPrimary() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
queryPrimaryOnly() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-R

-
-
raw() - -Method in class play.modules.morphia.AggregationResult -
  -
refresh() - -Method in class play.modules.morphia.Model -
Refresh the entity state. -
registerGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
registerModelEventHandler(Class<? extends Model>, MorphiaEvent.IMorphiaEventHandler) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
removeGridFSFiles(String, Object, String...) - -Static method in class play.modules.morphia.Model -
  -
removeGridFSFiles(Model.MorphiaQuery, String...) - -Static method in class play.modules.morphia.Model -
  -
retrievedFields(boolean, String...) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-S

-
-
save() - -Method in class play.modules.morphia.Model -
Save and return this entity -
save2() - -Method in class play.modules.morphia.Model -
Save and return Morphia Key -
saveBlobs() - -Method in class play.modules.morphia.Model -
  -
serialize(ObjectId, Type, JsonSerializationContext) - -Method in class play.modules.morphia.utils.ObjectIdGsonAdapter -
  + marked with the morphia annotations.
MorphiaEnhancer() - +Constructor for class play.modules.morphia.MorphiaEnhancer +
  +
MorphiaEvent - Enum in play.modules.morphia
 
MorphiaEvent.IMorphiaEventHandler - Interface in play.modules.morphia
 
MorphiaEvent.MorphiaEventHandlerAdaptor - Class in play.modules.morphia
 
MorphiaEvent.MorphiaEventHandlerAdaptor() - +Constructor for class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
MorphiaPlugin - Class in play.modules.morphia
The plugin for the Morphia module.
MorphiaPlugin() - +Constructor for class play.modules.morphia.MorphiaPlugin +
  +
MorphiaPlugin.IdType - Enum in play.modules.morphia
 
MorphiaPlugin.MorphiaModelLoader - Class in play.modules.morphia
 
+
+

+O

+
+
ObjectIdGsonAdapter - Class in play.modules.morphia.utils
 
ObjectIdGsonAdapter() - +Constructor for class play.modules.morphia.utils.ObjectIdGsonAdapter +
  +
offset(int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
onAdd(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
onAdd(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
onApplicationStart() - +Method in class play.modules.morphia.MorphiaPlugin +
  +
onBatchDelete(Model.MorphiaQuery) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
onBatchDelete(Model.MorphiaQuery) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
onConfigurationRead() - +Method in class play.modules.morphia.MorphiaPlugin +
  +
onDelete(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
onDelete(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
onInvocationException(Throwable) - +Method in class play.modules.morphia.MorphiaPlugin +
  +
onLoad(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
onLoad(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
onUpdate(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
onUpdate(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
or(Criteria...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
order(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+P

+
+
PACKAGE_NAME - +Static variable in class play.modules.morphia.MorphiaEnhancer +
  +
play.modules.morphia - package play.modules.morphia
 
play.modules.morphia.utils - package play.modules.morphia.utils
 
PlayLogr - Class in play.modules.morphia.utils
 
PlayLogr() - +Constructor for class play.modules.morphia.utils.PlayLogr +
  +
PlayLogrFactory - Class in play.modules.morphia.utils
 
PlayLogrFactory() - +Constructor for class play.modules.morphia.utils.PlayLogrFactory +
  +
PREFIX - +Static variable in enum play.modules.morphia.MorphiaEvent +
  +
PREFIX - +Static variable in class play.modules.morphia.MorphiaPlugin +
  +
processId(Object) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
processId_(Object) - +Static method in class play.modules.morphia.Model +
Any sub class with \@Id annotation specified need to rewrite this method +
processLongId(Object) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
processObjectId(Object) - +Static method in class play.modules.morphia.utils.IdGenerator +
  +
processWhere(<any>, String) - +Static method in class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +
  +
+
+

+Q

+
+
q() - +Static method in class play.modules.morphia.Model +
Shortcut to createQuery +
q(String, Object) - +Static method in class play.modules.morphia.Model +
Shortcut to find(String, Object...) +
queryNonPrimary() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
queryPrimaryOnly() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+R

+
+
raw() - +Method in class play.modules.morphia.AggregationResult +
  +
refresh() - +Method in class play.modules.morphia.Model +
Refresh the entity state. +
registerGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
registerModelEventHandler(Class<? extends Model>, MorphiaEvent.IMorphiaEventHandler) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
removeGridFSFiles(String, Object, String...) - +Static method in class play.modules.morphia.Model +
  +
removeGridFSFiles(Model.MorphiaQuery, String...) - +Static method in class play.modules.morphia.Model +
  +
retrievedFields(boolean, String...) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+S

+
+
save() - +Method in class play.modules.morphia.Model +
Save and return this entity +
save2() - +Method in class play.modules.morphia.Model +
Save and return Morphia Key +
saveBlobs() - +Method in class play.modules.morphia.Model +
  +
serialize(ObjectId, Type, JsonSerializationContext) - +Method in class play.modules.morphia.utils.ObjectIdGsonAdapter +
 
Serializer - Class in play.modules.morphia.utils
Helper class to help serialize java object like BitSet The code dealing with BitSet/byte[] conversion comes from - http://stackoverflow.com/questions/1378171/writing-a-bitset-to-a-file-in-java
Serializer() - -Constructor for class play.modules.morphia.utils.Serializer -
  -
set(File, String) - -Method in class play.modules.morphia.Blob -
  -
set(InputStream, String) - -Method in class play.modules.morphia.Blob -
  -
setBlobChanged(String) - -Method in class play.modules.morphia.Model -
  -
setId(Object) - -Method in class play.modules.morphia.Model -
  -
setId_(Object) - -Method in class play.modules.morphia.Model + http://stackoverflow.com/questions/1378171/writing-a-bitset-to-a-file-in-java
Serializer() - +Constructor for class play.modules.morphia.utils.Serializer +
  +
set(File, String) - +Method in class play.modules.morphia.Blob +
  +
set(InputStream, String) - +Method in class play.modules.morphia.Blob +
  +
setBlobChanged(String) - +Method in class play.modules.morphia.Model +
  +
setId(Object) - +Method in class play.modules.morphia.Model +
  +
setId_(Object) - +Method in class play.modules.morphia.Model
MorphiaEnhancer will override this method for sub class without user - annotated \@Id fields -
SilentLogrFactory - Class in play.modules.morphia.utils
 
SilentLogrFactory() - -Constructor for class play.modules.morphia.utils.SilentLogrFactory -
  -
skip(int) - -Method in class play.modules.morphia.Model.MorphiaQuery -
Deprecated.  -
StringUtil - Class in play.modules.morphia.utils
 
StringUtil() - -Constructor for class play.modules.morphia.utils.StringUtil -
  -
sum(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-T

-
-
toString() - -Method in class play.modules.morphia.Blob -
  -
toString() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
toString() - -Method in class play.modules.morphia.Model -
  -
trace(String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
trace(Throwable, String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
trace(String) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
trace(String, Object...) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
trace(String, Throwable) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
type() - -Method in class play.modules.morphia.Blob -
  -
-
-

-U

-
-
unregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
unregisterModelEventHandler(Class<? extends Model>, MorphiaEvent.IMorphiaEventHandler) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
updated(Model) - -Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler -
  -
updated(Model) - -Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -
  -
upperFirstChar(String) - -Static method in class play.modules.morphia.utils.StringUtil -
  -
-
-

-V

-
-
validateAndCreate() - -Method in class play.modules.morphia.Model -
  -
validateAndSave() - -Method in class play.modules.morphia.Model -
  -
valueOf(String) - -Static method in enum play.modules.morphia.MorphiaEvent -
Returns the enum constant of this type with the specified name. -
valueOf(String) - -Static method in enum play.modules.morphia.MorphiaPlugin.IdType -
Returns the enum constant of this type with the specified name. -
values() - -Static method in enum play.modules.morphia.MorphiaEvent + annotated \@Id fields +
SilentLogrFactory - Class in play.modules.morphia.utils
 
SilentLogrFactory() - +Constructor for class play.modules.morphia.utils.SilentLogrFactory +
  +
skip(int) - +Method in class play.modules.morphia.Model.MorphiaQuery +
Deprecated.  +
StringUtil - Class in play.modules.morphia.utils
 
StringUtil() - +Constructor for class play.modules.morphia.utils.StringUtil +
  +
sum(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+T

+
+
toString() - +Method in class play.modules.morphia.Blob +
  +
toString() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
toString() - +Method in class play.modules.morphia.Model +
  +
trace(String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
trace(Throwable, String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
trace(String) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
trace(String, Object...) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
trace(String, Throwable) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
type() - +Method in class play.modules.morphia.Blob +
  +
+
+

+U

+
+
unregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
unregisterModelEventHandler(Class<? extends Model>, MorphiaEvent.IMorphiaEventHandler) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
updated(Model) - +Method in interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler +
  +
updated(Model) - +Method in class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +
  +
upperFirstChar(String) - +Static method in class play.modules.morphia.utils.StringUtil +
  +
+
+

+V

+
+
validateAndCreate() - +Method in class play.modules.morphia.Model +
  +
validateAndSave() - +Method in class play.modules.morphia.Model +
  +
valueOf(String) - +Static method in enum play.modules.morphia.MorphiaEvent +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum play.modules.morphia.MorphiaPlugin.IdType +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum play.modules.morphia.MorphiaEvent
Returns an array containing the constants of this enum type, in -the order they are declared. -
values() - -Static method in enum play.modules.morphia.MorphiaPlugin.IdType +the order they are declared. +
values() - +Static method in enum play.modules.morphia.MorphiaPlugin.IdType
Returns an array containing the constants of this enum type, in -the order they are declared. -
VERSION - -Static variable in class play.modules.morphia.MorphiaPlugin -
  -
-
-

-W

-
-
warn(String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
warn(Throwable, String, Object...) - -Static method in class play.modules.morphia.MorphiaPlugin -
  -
warning(String) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
warning(String, Object...) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
warning(String, Throwable) - -Method in class play.modules.morphia.utils.PlayLogr -
  -
Watch - Annotation Type in play.modules.morphia
 
WatchBy - Annotation Type in play.modules.morphia
 
where(String) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
where(CodeWScope) - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
-
-

-_

-
-
_average(String) - -Static method in class play.modules.morphia.Model -
  -
_cloud(String) - -Static method in class play.modules.morphia.Model -
  -
_delete() - -Method in class play.modules.morphia.Model -
  -
_distinct(String) - -Static method in class play.modules.morphia.Model -
Return a Set of distinct values for the given key -
_get() - -Method in class play.modules.morphia.Model.MorphiaQuery -
  -
_getCreated() - -Method in class play.modules.morphia.Model -
  -
_getModified() - -Method in class play.modules.morphia.Model -
  -
_h_Loaded() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
_h_OnLoad() - -Method in class play.modules.morphia.Model -
for PlayMorphia internal usage only -
_key() - -Method in class play.modules.morphia.Model -
  -
_max(String) - -Static method in class play.modules.morphia.Model -
  -
_min(String) - -Static method in class play.modules.morphia.Model -
  -
_save() - -Method in class play.modules.morphia.Model -
  -
_sum(String) - -Static method in class play.modules.morphia.Model -
  -
-
-A B C D E F G H I J K L M O P Q R S T U V W _ - - - - - - - - - - - - - - -
- -
- - - -
- - - +the order they are declared. +
VERSION - +Static variable in class play.modules.morphia.MorphiaPlugin +
  +
+
+

+W

+
+
warn(String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
warn(Throwable, String, Object...) - +Static method in class play.modules.morphia.MorphiaPlugin +
  +
warning(String) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
warning(String, Object...) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
warning(String, Throwable) - +Method in class play.modules.morphia.utils.PlayLogr +
  +
Watch - Annotation Type in play.modules.morphia
 
WatchBy - Annotation Type in play.modules.morphia
 
where(String) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
where(CodeWScope) - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
+
+

+_

+
+
_average(String) - +Static method in class play.modules.morphia.Model +
  +
_cloud(String) - +Static method in class play.modules.morphia.Model +
  +
_delete() - +Method in class play.modules.morphia.Model +
  +
_distinct(String) - +Static method in class play.modules.morphia.Model +
Return a Set of distinct values for the given key +
_get() - +Method in class play.modules.morphia.Model.MorphiaQuery +
  +
_getCreated() - +Method in class play.modules.morphia.Model +
  +
_getModified() - +Method in class play.modules.morphia.Model +
  +
_h_Loaded() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
_h_OnLoad() - +Method in class play.modules.morphia.Model +
for PlayMorphia internal usage only +
_key() - +Method in class play.modules.morphia.Model +
  +
_max(String) - +Static method in class play.modules.morphia.Model +
  +
_min(String) - +Static method in class play.modules.morphia.Model +
  +
_save() - +Method in class play.modules.morphia.Model +
  +
_sum(String) - +Static method in class play.modules.morphia.Model +
  +
+
+A B C D E F G H I J K L M O P Q R S T U V W _ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/index.html b/documentation/api/index.html index 8b7ccdf..a5d8e5f 100644 --- a/documentation/api/index.html +++ b/documentation/api/index.html @@ -1,39 +1,39 @@ - - - - - - -PlayMorphia API - - - - - - - - - - - -<H2> -Frame Alert</H2> - -<P> -This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. -<BR> -Link to<A HREF="overview-summary.html">Non-frame version.</A> - - - + + + + + + +PlayMorphia API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/documentation/api/overview-frame.html b/documentation/api/overview-frame.html index 505d18c..7e3e172 100644 --- a/documentation/api/overview-frame.html +++ b/documentation/api/overview-frame.html @@ -1,44 +1,44 @@ - - - - - - -Overview List (PlayMorphia API) - - - - - - - - - - - - - - - -
-
- - - - - -
All Classes -

- -Packages -
-play.modules.morphia -
-play.modules.morphia.utils -
-

- -

-  - - + + + + + + +Overview List (PlayMorphia API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+play.modules.morphia +
+play.modules.morphia.utils +
+

+ +

+  + + diff --git a/documentation/api/overview-summary.html b/documentation/api/overview-summary.html index 423c5ee..d4a1508 100644 --- a/documentation/api/overview-summary.html +++ b/documentation/api/overview-summary.html @@ -1,155 +1,155 @@ - - - - - - -Overview (PlayMorphia API) - - - - - - - - - - - - -


- - - - - - - - - - - - - - - -
- -
- - - -
- - - - - - - - - - - - - -
-Packages
play.modules.morphia 
play.modules.morphia.utils 
- -


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Overview (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + +
+Packages
play.modules.morphia 
play.modules.morphia.utils 
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/overview-tree.html b/documentation/api/overview-tree.html index 5258c71..b17ad2e 100644 --- a/documentation/api/overview-tree.html +++ b/documentation/api/overview-tree.html @@ -1,196 +1,197 @@ - - - - - - -Class Hierarchy (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For All Packages

-
-
-
Package Hierarchies:
play.modules.morphia, play.modules.morphia.utils
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -

-Annotation Type Hierarchy -

-
    -
  • play.modules.morphia.WatchBy (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Watch (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.ByPass (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.AutoTimestamp (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Column (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.NoId (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnLoad (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Loaded (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnAdd (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnUpdate (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Added (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Updated (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnDelete (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Deleted (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnBatchDelete (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.BatchDeleted (implements java.lang.annotation.Annotation) -
-

-Enum Hierarchy -

-
    -
  • java.lang.Object -
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Class Hierarchy (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
play.modules.morphia, play.modules.morphia.utils
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+
    +
  • play.modules.morphia.WatchBy (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Watch (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.ByPass (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.AutoTimestamp (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Column (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.NoId (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Datasource (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnLoad (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Loaded (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnAdd (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnUpdate (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Added (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Updated (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnDelete (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Deleted (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnBatchDelete (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.BatchDeleted (implements java.lang.annotation.Annotation) +
+

+Enum Hierarchy +

+
    +
  • java.lang.Object +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/package-list b/documentation/api/package-list index 43f8f54..60d364e 100644 --- a/documentation/api/package-list +++ b/documentation/api/package-list @@ -1,2 +1,2 @@ -play.modules.morphia -play.modules.morphia.utils +play.modules.morphia +play.modules.morphia.utils diff --git a/documentation/api/play/modules/morphia/AggregationResult.html b/documentation/api/play/modules/morphia/AggregationResult.html index 9d8daef..a971a9d 100644 --- a/documentation/api/play/modules/morphia/AggregationResult.html +++ b/documentation/api/play/modules/morphia/AggregationResult.html @@ -1,294 +1,294 @@ - - - - - - -AggregationResult (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class AggregationResult

-
-java.lang.Object
-  extended by play.modules.morphia.AggregationResult
-
-
-
-
public class AggregationResult
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
AggregationResult(java.util.List<CommandResult> r, - java.lang.String aggregationField) - -
-           
-  - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.LonggetResult() - -
-           
- java.lang.LonggetResult(java.lang.String groupKeys, - java.lang.Object... groupValues) - -
-           
- java.util.List<CommandResult>raw() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-AggregationResult

-
-public AggregationResult(java.util.List<CommandResult> r,
-                         java.lang.String aggregationField)
-
-
- - - - - - - - -
-Method Detail
- -

-getResult

-
-public java.lang.Long getResult()
-
-
-
-
-
-
- -

-getResult

-
-public java.lang.Long getResult(java.lang.String groupKeys,
-                                java.lang.Object... groupValues)
-
-
-
-
-
-
- -

-raw

-
-public java.util.List<CommandResult> raw()
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +AggregationResult (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class AggregationResult

+
+java.lang.Object
+  extended by play.modules.morphia.AggregationResult
+
+
+
+
public class AggregationResult
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AggregationResult(java.util.List<CommandResult> r, + java.lang.String aggregationField) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.LonggetResult() + +
+           
+ java.lang.LonggetResult(java.lang.String groupKeys, + java.lang.Object... groupValues) + +
+           
+ java.util.List<CommandResult>raw() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AggregationResult

+
+public AggregationResult(java.util.List<CommandResult> r,
+                         java.lang.String aggregationField)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getResult

+
+public java.lang.Long getResult()
+
+
+
+
+
+
+ +

+getResult

+
+public java.lang.Long getResult(java.lang.String groupKeys,
+                                java.lang.Object... groupValues)
+
+
+
+
+
+
+ +

+raw

+
+public java.util.List<CommandResult> raw()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Blob.html b/documentation/api/play/modules/morphia/Blob.html index b1bc01c..2ad374b 100644 --- a/documentation/api/play/modules/morphia/Blob.html +++ b/documentation/api/play/modules/morphia/Blob.html @@ -1,498 +1,498 @@ - - - - - - -Blob (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class Blob

-
-java.lang.Object
-  extended by play.modules.morphia.Blob
-
-
-
-
public class Blob
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - -
-Constructor Summary
Blob() - -
-           
Blob(java.io.File inputFile, - java.lang.String type) - -
-           
Blob(java.io.InputStream is, - java.lang.String type) - -
-           
Blob(java.lang.String id) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voiddelete() - -
-           
-static voiddelete(java.lang.String name) - -
-           
- booleanexists() - -
-           
-static GridFSDBFilefindFile(java.lang.String name) - -
-           
- java.io.InputStreamget() - -
-           
- GridFSDBFilegetGridFSFile() - -
-           
- longlength() - -
-           
- voidset(java.io.File file, - java.lang.String type) - -
-           
- voidset(java.io.InputStream is, - java.lang.String type) - -
-           
- java.lang.StringtoString() - -
-           
- java.lang.Stringtype() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Blob

-
-public Blob()
-
-
-
- -

-Blob

-
-public Blob(java.io.InputStream is,
-            java.lang.String type)
-
-
-
- -

-Blob

-
-public Blob(java.io.File inputFile,
-            java.lang.String type)
-
-
-
- -

-Blob

-
-public Blob(java.lang.String id)
-
-
- - - - - - - - -
-Method Detail
- -

-delete

-
-public void delete()
-
-
-
-
-
-
- -

-findFile

-
-public static GridFSDBFile findFile(java.lang.String name)
-
-
-
-
-
-
- -

-get

-
-public java.io.InputStream get()
-
-
-
-
-
-
- -

-set

-
-public void set(java.io.File file,
-                java.lang.String type)
-         throws java.io.IOException
-
-
- -
Throws: -
java.io.IOException
-
-
-
- -

-set

-
-public void set(java.io.InputStream is,
-                java.lang.String type)
-
-
-
-
-
-
- -

-length

-
-public long length()
-
-
-
-
-
-
- -

-type

-
-public java.lang.String type()
-
-
-
-
-
-
- -

-exists

-
-public boolean exists()
-
-
-
-
-
-
- -

-delete

-
-public static void delete(java.lang.String name)
-
-
-
-
-
-
- -

-getGridFSFile

-
-public GridFSDBFile getGridFSFile()
-
-
-
-
-
-
- -

-toString

-
-public java.lang.String toString()
-
-
-
Overrides:
toString in class java.lang.Object
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Blob (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class Blob

+
+java.lang.Object
+  extended by play.modules.morphia.Blob
+
+
+
+
public class Blob
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
Blob() + +
+           
Blob(java.io.File inputFile, + java.lang.String type) + +
+           
Blob(java.io.InputStream is, + java.lang.String type) + +
+           
Blob(java.lang.String id) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddelete() + +
+           
+static voiddelete(java.lang.String name) + +
+           
+ booleanexists() + +
+           
+static GridFSDBFilefindFile(java.lang.String name) + +
+           
+ java.io.InputStreamget() + +
+           
+ GridFSDBFilegetGridFSFile() + +
+           
+ longlength() + +
+           
+ voidset(java.io.File file, + java.lang.String type) + +
+           
+ voidset(java.io.InputStream is, + java.lang.String type) + +
+           
+ java.lang.StringtoString() + +
+           
+ java.lang.Stringtype() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Blob

+
+public Blob()
+
+
+
+ +

+Blob

+
+public Blob(java.io.InputStream is,
+            java.lang.String type)
+
+
+
+ +

+Blob

+
+public Blob(java.io.File inputFile,
+            java.lang.String type)
+
+
+
+ +

+Blob

+
+public Blob(java.lang.String id)
+
+
+ + + + + + + + +
+Method Detail
+ +

+delete

+
+public void delete()
+
+
+
+
+
+
+ +

+findFile

+
+public static GridFSDBFile findFile(java.lang.String name)
+
+
+
+
+
+
+ +

+get

+
+public java.io.InputStream get()
+
+
+
+
+
+
+ +

+set

+
+public void set(java.io.File file,
+                java.lang.String type)
+         throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+set

+
+public void set(java.io.InputStream is,
+                java.lang.String type)
+
+
+
+
+
+
+ +

+length

+
+public long length()
+
+
+
+
+
+
+ +

+type

+
+public java.lang.String type()
+
+
+
+
+
+
+ +

+exists

+
+public boolean exists()
+
+
+
+
+
+
+ +

+delete

+
+public static void delete(java.lang.String name)
+
+
+
+
+
+
+ +

+getGridFSFile

+
+public GridFSDBFile getGridFSFile()
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.Added.html b/documentation/api/play/modules/morphia/Model.Added.html index cc08127..adfe052 100644 --- a/documentation/api/play/modules/morphia/Model.Added.html +++ b/documentation/api/play/modules/morphia/Model.Added.html @@ -1,177 +1,177 @@ - - - - - - -Model.Added (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.Added

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.Added
- - -

-Added mark a method be called after an new entity is saved. -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.Added (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.Added

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.Added
+ + +

+Added mark a method be called after an new entity is saved. +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.AutoTimestamp.html b/documentation/api/play/modules/morphia/Model.AutoTimestamp.html index 8295671..0b82a8f 100644 --- a/documentation/api/play/modules/morphia/Model.AutoTimestamp.html +++ b/documentation/api/play/modules/morphia/Model.AutoTimestamp.html @@ -1,169 +1,169 @@ - - - - - - -Model.AutoTimestamp (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.AutoTimestamp

-
-
-
@Retention(value=RUNTIME)
-@Target(value=TYPE)
-public static @interface Model.AutoTimestamp
- - -

- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.AutoTimestamp (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.AutoTimestamp

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+public static @interface Model.AutoTimestamp
+ + +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.BatchDeleted.html b/documentation/api/play/modules/morphia/Model.BatchDeleted.html index a31c9b9..4025be1 100644 --- a/documentation/api/play/modules/morphia/Model.BatchDeleted.html +++ b/documentation/api/play/modules/morphia/Model.BatchDeleted.html @@ -1,177 +1,177 @@ - - - - - - -Model.BatchDeleted (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.BatchDeleted

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.BatchDeleted
- - -

-Deleted mark a method be called after an a query deletion executed -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.BatchDeleted (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.BatchDeleted

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.BatchDeleted
+ + +

+Deleted mark a method be called after an a query deletion executed +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.ByPass.html b/documentation/api/play/modules/morphia/Model.ByPass.html index 5704b43..1ece10e 100644 --- a/documentation/api/play/modules/morphia/Model.ByPass.html +++ b/documentation/api/play/modules/morphia/Model.ByPass.html @@ -1,169 +1,169 @@ - - - - - - -Model.ByPass (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.ByPass

-
-
-
@Retention(value=RUNTIME)
-@Target(value=TYPE)
-public static @interface Model.ByPass
- - -

- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.ByPass (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.ByPass

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+public static @interface Model.ByPass
+ + +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.Column.html b/documentation/api/play/modules/morphia/Model.Column.html index d11b4c2..025f168 100644 --- a/documentation/api/play/modules/morphia/Model.Column.html +++ b/documentation/api/play/modules/morphia/Model.Column.html @@ -1,229 +1,229 @@ - - - - - - -Model.Column (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.Column

-
-
-
@Retention(value=RUNTIME)
-@Target(value=FIELD)
-public static @interface Model.Column
- - -

-


- -

- - - - - - - - - - - - - - - -
-Optional Element Summary
- java.lang.Class<?>concreteClass - -
-          Specify the concrete class to instantiate.
- java.lang.Stringvalue - -
-          The name of the key to store the field in; Defaults to the field name.
-  -

-

-value

-
-public abstract java.lang.String value
-
-
The name of the key to store the field in; Defaults to the field name. -

-

-
-
-
-
-
-
Default:
-
-
-
- -

-concreteClass

-
-public abstract java.lang.Class<?> concreteClass
-
-
Specify the concrete class to instantiate. -

-

-
-
-
-
-
-
Default:
java.lang.Object.class
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.Column (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.Column

+
+
+
@Retention(value=RUNTIME)
+@Target(value=FIELD)
+public static @interface Model.Column
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Optional Element Summary
+ java.lang.Class<?>concreteClass + +
+          Specify the concrete class to instantiate.
+ java.lang.Stringvalue + +
+          The name of the key to store the field in; Defaults to the field name.
+  +

+

+value

+
+public abstract java.lang.String value
+
+
The name of the key to store the field in; Defaults to the field name. +

+

+
+
+
+
+
+
Default:
+
+
+
+ +

+concreteClass

+
+public abstract java.lang.Class<?> concreteClass
+
+
Specify the concrete class to instantiate. +

+

+
+
+
+
+
+
Default:
java.lang.Object.class
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.Datasource.html b/documentation/api/play/modules/morphia/Model.Datasource.html new file mode 100644 index 0000000..52ad7be --- /dev/null +++ b/documentation/api/play/modules/morphia/Model.Datasource.html @@ -0,0 +1,209 @@ + + + + + + +Model.Datasource (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.Datasource

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+public static @interface Model.Datasource
+ + +

+Associate an entity with a named Datasource. +

+ +

+

+
Author:
+
dbusch
+
+
+ +

+ + + + + + + + + + + +
+Optional Element Summary
+ java.lang.Stringname + +
+           
+  +

+

+name

+
+public abstract java.lang.String name
+
+
+
+
+
+
+
+
Default:
"default"
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.Deleted.html b/documentation/api/play/modules/morphia/Model.Deleted.html index 399c4eb..98088cb 100644 --- a/documentation/api/play/modules/morphia/Model.Deleted.html +++ b/documentation/api/play/modules/morphia/Model.Deleted.html @@ -1,177 +1,177 @@ - - - - - - -Model.Deleted (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.Deleted

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.Deleted
- - -

-Deleted mark a method be called after an entity is deleted -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.Deleted (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.Deleted

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.Deleted
+ + +

+Deleted mark a method be called after an entity is deleted +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.Loaded.html b/documentation/api/play/modules/morphia/Model.Loaded.html index 9e49f55..555230c 100644 --- a/documentation/api/play/modules/morphia/Model.Loaded.html +++ b/documentation/api/play/modules/morphia/Model.Loaded.html @@ -1,177 +1,177 @@ - - - - - - -Model.Loaded (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.Loaded

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.Loaded
- - -

-OnLoad mark a method be called immediately after an entity loaded from mongodb -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.Loaded (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.Loaded

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.Loaded
+ + +

+OnLoad mark a method be called immediately after an entity loaded from mongodb +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.MorphiaQuery.html b/documentation/api/play/modules/morphia/Model.MorphiaQuery.html index 5f4a40f..1587c38 100644 --- a/documentation/api/play/modules/morphia/Model.MorphiaQuery.html +++ b/documentation/api/play/modules/morphia/Model.MorphiaQuery.html @@ -1,1830 +1,1830 @@ - - - - - - -Model.MorphiaQuery (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class Model.MorphiaQuery

-
-java.lang.Object
-  extended by play.modules.morphia.Model.MorphiaQuery
-
-
-
Enclosing class:
Model
-
-
-
-
public static class Model.MorphiaQuery
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - - - - - - - -
-Constructor Summary
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz) - -
-           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, - DBCollection coll, - Datastore ds) - -
-           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, - DBCollection coll, - Datastore ds, - int offset, - int limit) - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-Method Summary
- Model_get() - -
-           
- - - - - -
-<T extends Model> -
-CriteriaContainer
-
and(Criteria... criteria) - -
-           
- - - - - -
-<T extends Model> -
-java.util.List<>
-
asKeyList() - -
-           
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
asList() - -
-           
- java.lang.Longaverage(java.lang.String field) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
batchSize(int value) - -
-           
- Model.MorphiaQueryclone() - -
-           
- java.util.Map<java.lang.String,java.lang.Long>cloud(java.lang.String field) - -
-           
- DBCollectioncol() - -
-           
- longcount() - -
-          Alias of countAll()
- longcountAll() - -
-           
- - - - - -
-<T extends Model> -
-
-
criteria(java.lang.String field) - -
-           
- longdelete() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
disableCursorTimeout() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
disableSnapshotMode() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
disableTimeout() - -
-          Deprecated. 
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
disableValidation() - -
-           
- java.util.Set<?>distinct(java.lang.String key) - -
-           
-static Datastoreds() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
enableCursorTimeout() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
enableSnapshotMode() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
enableTimeout() - -
-          Deprecated. 
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
enableValidation() - -
-           
- - - - - -
-<T extends Model> -
-java.lang.Iterable<T>
-
fetch() - -
-           
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
fetch(int max) - -
-          Retrieve results of the query
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
fetch(int page, - int length) - -
-          Retrieve a page of result
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
fetchAll() - -
+ + + + + + +Model.MorphiaQuery (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class Model.MorphiaQuery

+
+java.lang.Object
+  extended by play.modules.morphia.Model.MorphiaQuery
+
+
+
Enclosing class:
Model
+
+
+
+
public static class Model.MorphiaQuery
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz) + +
+           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, + DBCollection coll, + Datastore ds) + +
+           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, + DBCollection coll, + Datastore ds, + int offset, + int limit) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+Method Summary
+ Model_get() + +
+           
+ + + + + +
+<T extends Model> +
+CriteriaContainer
+
and(Criteria... criteria) + +
+           
+ + + + + +
+<T extends Model> +
+java.util.List<>
+
asKeyList() + +
+           
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
asList() + +
+           
+ java.lang.Longaverage(java.lang.String field) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
batchSize(int value) + +
+           
+ Model.MorphiaQueryclone() + +
+           
+ java.util.Map<java.lang.String,java.lang.Long>cloud(java.lang.String field) + +
+           
+ DBCollectioncol(java.lang.String dsName) + +
+           
+ longcount() + +
+          Alias of countAll()
+ longcountAll() + +
+           
+ + + + + +
+<T extends Model> +
+
+
criteria(java.lang.String field) + +
+           
+ longdelete() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
disableCursorTimeout() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
disableSnapshotMode() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
disableTimeout() + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
disableValidation() + +
+           
+ java.util.Set<?>distinct(java.lang.String key) + +
+           
+static Datastoreds(java.lang.String dsName) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
enableCursorTimeout() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
enableSnapshotMode() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
enableTimeout() + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
enableValidation() + +
+           
+ + + + + +
+<T extends Model> +
+java.lang.Iterable<T>
+
fetch() + +
+           
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
fetch(int max) + +
+          Retrieve results of the query
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
fetch(int page, + int length) + +
+          Retrieve a page of result
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
fetchAll() + +
          Retrieve all results of the query This is a correspondence to JPAQuery's fetch(), which however, used - as another method signature of Morphia Query
- - - - - -
-<T extends Model> -
-java.lang.Iterable<T>
-
fetchEmptyEntities() - -
-           
- - - - - -
-<T extends Model> -
-java.lang.Iterable<>
-
fetchKeys() - -
-           
- - - - - -
-<T extends Model> -
-
-
field(java.lang.String field) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
filter(java.lang.String condition, - java.lang.Object value) - -
-           
- Model.MorphiaQueryfindBy(java.lang.String query, - java.lang.Object... params) - -
-          Used to simulate JPA.find("byXXAndYY", ...);
- - - - - -
-<T> T
-
first() - -
-           
- - - - - -
-<T> Model.MorphiaQuery
-
from(int position) - -
-          Set the position to start
- - - - - -
-<T extends Model> -
-T
-
get() - -
-           
- java.lang.Class<? extends Model>getEntityClass() - -
-           
- - - - - -
-<T extends Model> -
-
-
getKey() - -
-           
- getMorphiaQuery() - -
-           
- DBObjectgetQueryObject() - -
-           
- java.util.List<CommandResult>group(java.lang.String groupKeys, - DBObject initial, - java.lang.String reduce, - java.lang.String finalize) - -
-           
- AggregationResultgroupAverage(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultgroupCount(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultgroupMax(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultgroupMin(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultgroupSum(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
hintIndex(java.lang.String idxName) - -
-           
- - - - - -
-<T extends Model> -
-java.util.Iterator<T>
-
iterator() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
limit(int value) - -
-           
- java.lang.Longmax(java.lang.String maxField) - -
-           
- java.lang.Longmin(java.lang.String minField) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
offset(int value) - -
-           
- - - - - -
-<T extends Model> -
-CriteriaContainer
-
or(Criteria... criteria) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
order(java.lang.String condition) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
queryNonPrimary() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
queryPrimaryOnly() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
retrievedFields(boolean include, - java.lang.String... fields) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
skip(int value) - -
-          Deprecated. 
- java.lang.Longsum(java.lang.String field) - -
-           
- java.lang.StringtoString() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
where(CodeWScope js) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
where(java.lang.String js) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Model.MorphiaQuery

-
-public Model.MorphiaQuery(java.lang.Class<? extends Model> clazz)
-
-
-
- -

-Model.MorphiaQuery

-
-public Model.MorphiaQuery(java.lang.Class<? extends Model> clazz,
-                          DBCollection coll,
-                          Datastore ds)
-
-
-
- -

-Model.MorphiaQuery

-
-public Model.MorphiaQuery(java.lang.Class<? extends Model> clazz,
-                          DBCollection coll,
-                          Datastore ds,
-                          int offset,
-                          int limit)
-
-
- - - - - - - - -
-Method Detail
- -

-ds

-
-public static Datastore ds()
-
-
-
-
-
-
- -

-getMorphiaQuery

-
-public  getMorphiaQuery()
-
-
-
-
-
-
- -

-getQueryObject

-
-public DBObject getQueryObject()
-
-
-
-
-
-
- -

-col

-
-public DBCollection col()
-
-
-
-
-
-
- -

-delete

-
-public long delete()
-
-
-
-
-
-
- -

-count

-
-public long count()
-
-
Alias of countAll() -

-

- -
Returns:
-
-
-
- -

-findBy

-
-public Model.MorphiaQuery findBy(java.lang.String query,
-                                 java.lang.Object... params)
-
-
Used to simulate JPA.find("byXXAndYY", ...); -

-

+ as another method signature of Morphia Query
+ + + + + +
+<T extends Model> +
+java.lang.Iterable<T>
+
fetchEmptyEntities() + +
+           
+ + + + + +
+<T extends Model> +
+java.lang.Iterable<>
+
fetchKeys() + +
+           
+ + + + + +
+<T extends Model> +
+
+
field(java.lang.String field) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
filter(java.lang.String condition, + java.lang.Object value) + +
+           
+ Model.MorphiaQueryfindBy(java.lang.String query, + java.lang.Object... params) + +
+          Used to simulate JPA.find("byXXAndYY", ...);
+ + + + + +
+<T> T
+
first() + +
+           
+ + + + + +
+<T> Model.MorphiaQuery
+
from(int position) + +
+          Set the position to start
+ + + + + +
+<T extends Model> +
+T
+
get() + +
+           
+ java.lang.Class<? extends Model>getEntityClass() + +
+           
+ + + + + +
+<T extends Model> +
+
+
getKey() + +
+           
+ getMorphiaQuery() + +
+           
+ DBObjectgetQueryObject() + +
+           
+ java.util.List<CommandResult>group(java.lang.String groupKeys, + DBObject initial, + java.lang.String reduce, + java.lang.String finalize) + +
+           
+ AggregationResultgroupAverage(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultgroupCount(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultgroupMax(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultgroupMin(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultgroupSum(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
hintIndex(java.lang.String idxName) + +
+           
+ + + + + +
+<T extends Model> +
+java.util.Iterator<T>
+
iterator() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
limit(int value) + +
+           
+ java.lang.Longmax(java.lang.String maxField) + +
+           
+ java.lang.Longmin(java.lang.String minField) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
offset(int value) + +
+           
+ + + + + +
+<T extends Model> +
+CriteriaContainer
+
or(Criteria... criteria) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
order(java.lang.String condition) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
queryNonPrimary() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
queryPrimaryOnly() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
retrievedFields(boolean include, + java.lang.String... fields) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
skip(int value) + +
+          Deprecated. 
+ java.lang.Longsum(java.lang.String field) + +
+           
+ java.lang.StringtoString() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
where(CodeWScope js) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
where(java.lang.String js) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Model.MorphiaQuery

+
+public Model.MorphiaQuery(java.lang.Class<? extends Model> clazz)
+
+
+
+ +

+Model.MorphiaQuery

+
+public Model.MorphiaQuery(java.lang.Class<? extends Model> clazz,
+                          DBCollection coll,
+                          Datastore ds)
+
+
+
+ +

+Model.MorphiaQuery

+
+public Model.MorphiaQuery(java.lang.Class<? extends Model> clazz,
+                          DBCollection coll,
+                          Datastore ds,
+                          int offset,
+                          int limit)
+
+
+ + + + + + + + +
+Method Detail
+ +

+ds

+
+public static Datastore ds(java.lang.String dsName)
+
+
+
+
+
+
+ +

+getMorphiaQuery

+
+public  getMorphiaQuery()
+
+
+
+
+
+
+ +

+getQueryObject

+
+public DBObject getQueryObject()
+
+
+
+
+
+
+ +

+col

+
+public DBCollection col(java.lang.String dsName)
+
+
+
+
+
+
+ +

+delete

+
+public long delete()
+
+
+
+
+
+
+ +

+count

+
+public long count()
+
+
Alias of countAll() +

+

+ +
Returns:
+
+
+
+ +

+findBy

+
+public Model.MorphiaQuery findBy(java.lang.String query,
+                                 java.lang.Object... params)
+
+
Used to simulate JPA.find("byXXAndYY", ...); +

+

Parameters:
query - could be either "Key1[AndKey2[AndKey3]]" or "byKey1[AndKey2[AndKey3]]" or "key1 key2 ..."
params - the number of params should either be exactly one or the - number match the key number -
Returns:
-
-
-
- -

-toString

-
-public java.lang.String toString()
-
-
-
Overrides:
toString in class java.lang.Object
-
-
-
-
-
-
- -

-first

-
-public <T> T first()
-
-
-
-
-
-
- -

-from

-
-public <T> Model.MorphiaQuery from(int position)
-
-
Set the position to start -

-

-
Parameters:
position - Position of the first element -
Returns:
A new query
-
-
-
- -

-fetchAll

-
-public <T extends Model> java.util.List<T> fetchAll()
-
+ number match the key number +
Returns:
+ + +
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+
+ +

+first

+
+public <T> T first()
+
+
+
+
+
+
+ +

+from

+
+public <T> Model.MorphiaQuery from(int position)
+
+
Set the position to start +

+

+
Parameters:
position - Position of the first element +
Returns:
A new query
+
+
+
+ +

+fetchAll

+
+public <T extends Model> java.util.List<T> fetchAll()
+
Retrieve all results of the query This is a correspondence to JPAQuery's fetch(), which however, used - as another method signature of Morphia Query -

-

- -
Returns:
A list of entities
-
-
-
- -

-fetch

-
-public <T extends Model> java.util.List<T> fetch(int max)
-
-
Retrieve results of the query -

-

-
Parameters:
max - Max results to fetch -
Returns:
A list of entities
-
-
-
- -

-fetch

-
-public <T extends Model> java.util.List<T> fetch(int page,
-                                                 int length)
-
-
Retrieve a page of result -

-

-
Parameters:
page - Page number (start at 1)
length - (page length) -
Returns:
a list of entities
-
-
-
- -

-_get

-
-public Model _get()
-
-
-
-
-
-
- -

-get

-
-public <T extends Model> T get()
-
-
-
-
-
-
- -

-filter

-
-public <T extends Model> Model.MorphiaQuery filter(java.lang.String condition,
-                                                   java.lang.Object value)
-
-
-
-
-
-
- -

-getKey

-
-public <T extends Model>  getKey()
-
-
-
-
-
-
- -

-iterator

-
-public <T extends Model> java.util.Iterator<T> iterator()
-
-
-
-
-
-
- -

-asList

-
-public <T extends Model> java.util.List<T> asList()
-
-
-
-
-
-
- -

-asKeyList

-
-public <T extends Model> java.util.List<> asKeyList()
-
-
-
-
-
-
- -

-fetch

-
-public <T extends Model> java.lang.Iterable<T> fetch()
-
-
-
-
-
-
- -

-distinct

-
-public java.util.Set<?> distinct(java.lang.String key)
-
-
-
-
-
-
- -

-cloud

-
-public java.util.Map<java.lang.String,java.lang.Long> cloud(java.lang.String field)
-
-
-
-
-
-
- -

-group

-
-public java.util.List<CommandResult> group(java.lang.String groupKeys,
-                                           DBObject initial,
-                                           java.lang.String reduce,
-                                           java.lang.String finalize)
-
-
-
Parameters:
groupKeys - could be either "f1Andf2.." or "f1 f2" or "f1,f2" -
Returns:
-
-
-
- -

-groupMax

-
-public AggregationResult groupMax(java.lang.String field,
-                                  java.lang.String... groupKeys)
-
-
-
-
-
-
- -

-max

-
-public java.lang.Long max(java.lang.String maxField)
-
-
-
-
-
-
- -

-groupMin

-
-public AggregationResult groupMin(java.lang.String field,
-                                  java.lang.String... groupKeys)
-
-
-
-
-
-
- -

-min

-
-public java.lang.Long min(java.lang.String minField)
-
-
-
-
-
-
- -

-groupAverage

-
-public AggregationResult groupAverage(java.lang.String field,
-                                      java.lang.String... groupKeys)
-
-
-
-
-
-
- -

-average

-
-public java.lang.Long average(java.lang.String field)
-
-
-
-
-
-
- -

-groupSum

-
-public AggregationResult groupSum(java.lang.String field,
-                                  java.lang.String... groupKeys)
-
-
-
-
-
-
- -

-sum

-
-public java.lang.Long sum(java.lang.String field)
-
-
-
-
-
-
- -

-groupCount

-
-public AggregationResult groupCount(java.lang.String field,
-                                    java.lang.String... groupKeys)
-
-
-
-
-
-
- -

-fetchEmptyEntities

-
-public <T extends Model> java.lang.Iterable<T> fetchEmptyEntities()
-
-
-
-
-
-
- -

-field

-
-public <T extends Model>  field(java.lang.String field)
-
-
-
-
-
-
- -

-fetchKeys

-
-public <T extends Model> java.lang.Iterable<> fetchKeys()
-
-
-
-
-
-
- -

-criteria

-
-public <T extends Model>  criteria(java.lang.String field)
-
-
-
-
-
-
- -

-and

-
-public <T extends Model> CriteriaContainer and(Criteria... criteria)
-
-
-
-
-
-
- -

-countAll

-
-public long countAll()
-
-
-
-
-
-
- -

-or

-
-public <T extends Model> CriteriaContainer or(Criteria... criteria)
-
-
-
-
-
-
- -

-where

-
-public <T extends Model> Model.MorphiaQuery where(java.lang.String js)
-
-
-
-
-
-
- -

-where

-
-public <T extends Model> Model.MorphiaQuery where(CodeWScope js)
-
-
-
-
-
-
- -

-order

-
-public <T extends Model> Model.MorphiaQuery order(java.lang.String condition)
-
-
-
-
-
-
- -

-limit

-
-public <T extends Model> Model.MorphiaQuery limit(int value)
-
-
-
-
-
-
- -

-batchSize

-
-public <T extends Model> Model.MorphiaQuery batchSize(int value)
-
-
-
-
-
-
- -

-offset

-
-public <T extends Model> Model.MorphiaQuery offset(int value)
-
-
-
-
-
-
- -

-skip

-
-@Deprecated
-public <T extends Model> Model.MorphiaQuery skip(int value)
-
-
Deprecated.  -

-

-
-
-
-
- -

-enableValidation

-
-public <T extends Model> Model.MorphiaQuery enableValidation()
-
-
-
-
-
-
- -

-disableValidation

-
-public <T extends Model> Model.MorphiaQuery disableValidation()
-
-
-
-
-
-
- -

-hintIndex

-
-public <T extends Model> Model.MorphiaQuery hintIndex(java.lang.String idxName)
-
-
-
-
-
-
- -

-retrievedFields

-
-public <T extends Model> Model.MorphiaQuery retrievedFields(boolean include,
-                                                            java.lang.String... fields)
-
-
-
-
-
-
- -

-enableSnapshotMode

-
-public <T extends Model> Model.MorphiaQuery enableSnapshotMode()
-
-
-
-
-
-
- -

-disableSnapshotMode

-
-public <T extends Model> Model.MorphiaQuery disableSnapshotMode()
-
-
-
-
-
-
- -

-queryNonPrimary

-
-public <T extends Model> Model.MorphiaQuery queryNonPrimary()
-
-
-
-
-
-
- -

-queryPrimaryOnly

-
-public <T extends Model> Model.MorphiaQuery queryPrimaryOnly()
-
-
-
-
-
-
- -

-disableTimeout

-
-@Deprecated
-public <T extends Model> Model.MorphiaQuery disableTimeout()
-
-
Deprecated.  -

-

-
-
-
-
- -

-disableCursorTimeout

-
-public <T extends Model> Model.MorphiaQuery disableCursorTimeout()
-
-
-
-
-
-
- -

-enableTimeout

-
-@Deprecated
-public <T extends Model> Model.MorphiaQuery enableTimeout()
-
-
Deprecated.  -

-

-
-
-
-
- -

-enableCursorTimeout

-
-public <T extends Model> Model.MorphiaQuery enableCursorTimeout()
-
-
-
-
-
-
- -

-getEntityClass

-
-public java.lang.Class<? extends Model> getEntityClass()
-
-
-
-
-
-
- -

-clone

-
-public Model.MorphiaQuery clone()
-
-
-
Overrides:
clone in class java.lang.Object
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + as another method signature of Morphia Query +

+

+ +
Returns:
A list of entities
+
+ +
+ +

+fetch

+
+public <T extends Model> java.util.List<T> fetch(int max)
+
+
Retrieve results of the query +

+

+
Parameters:
max - Max results to fetch +
Returns:
A list of entities
+
+
+
+ +

+fetch

+
+public <T extends Model> java.util.List<T> fetch(int page,
+                                                 int length)
+
+
Retrieve a page of result +

+

+
Parameters:
page - Page number (start at 1)
length - (page length) +
Returns:
a list of entities
+
+
+
+ +

+_get

+
+public Model _get()
+
+
+
+
+
+
+ +

+get

+
+public <T extends Model> T get()
+
+
+
+
+
+
+ +

+filter

+
+public <T extends Model> Model.MorphiaQuery filter(java.lang.String condition,
+                                                   java.lang.Object value)
+
+
+
+
+
+
+ +

+getKey

+
+public <T extends Model>  getKey()
+
+
+
+
+
+
+ +

+iterator

+
+public <T extends Model> java.util.Iterator<T> iterator()
+
+
+
+
+
+
+ +

+asList

+
+public <T extends Model> java.util.List<T> asList()
+
+
+
+
+
+
+ +

+asKeyList

+
+public <T extends Model> java.util.List<> asKeyList()
+
+
+
+
+
+
+ +

+fetch

+
+public <T extends Model> java.lang.Iterable<T> fetch()
+
+
+
+
+
+
+ +

+distinct

+
+public java.util.Set<?> distinct(java.lang.String key)
+
+
+
+
+
+
+ +

+cloud

+
+public java.util.Map<java.lang.String,java.lang.Long> cloud(java.lang.String field)
+
+
+
+
+
+
+ +

+group

+
+public java.util.List<CommandResult> group(java.lang.String groupKeys,
+                                           DBObject initial,
+                                           java.lang.String reduce,
+                                           java.lang.String finalize)
+
+
+
Parameters:
groupKeys - could be either "f1Andf2.." or "f1 f2" or "f1,f2" +
Returns:
+
+
+
+ +

+groupMax

+
+public AggregationResult groupMax(java.lang.String field,
+                                  java.lang.String... groupKeys)
+
+
+
+
+
+
+ +

+max

+
+public java.lang.Long max(java.lang.String maxField)
+
+
+
+
+
+
+ +

+groupMin

+
+public AggregationResult groupMin(java.lang.String field,
+                                  java.lang.String... groupKeys)
+
+
+
+
+
+
+ +

+min

+
+public java.lang.Long min(java.lang.String minField)
+
+
+
+
+
+
+ +

+groupAverage

+
+public AggregationResult groupAverage(java.lang.String field,
+                                      java.lang.String... groupKeys)
+
+
+
+
+
+
+ +

+average

+
+public java.lang.Long average(java.lang.String field)
+
+
+
+
+
+
+ +

+groupSum

+
+public AggregationResult groupSum(java.lang.String field,
+                                  java.lang.String... groupKeys)
+
+
+
+
+
+
+ +

+sum

+
+public java.lang.Long sum(java.lang.String field)
+
+
+
+
+
+
+ +

+groupCount

+
+public AggregationResult groupCount(java.lang.String field,
+                                    java.lang.String... groupKeys)
+
+
+
+
+
+
+ +

+fetchEmptyEntities

+
+public <T extends Model> java.lang.Iterable<T> fetchEmptyEntities()
+
+
+
+
+
+
+ +

+field

+
+public <T extends Model>  field(java.lang.String field)
+
+
+
+
+
+
+ +

+fetchKeys

+
+public <T extends Model> java.lang.Iterable<> fetchKeys()
+
+
+
+
+
+
+ +

+criteria

+
+public <T extends Model>  criteria(java.lang.String field)
+
+
+
+
+
+
+ +

+and

+
+public <T extends Model> CriteriaContainer and(Criteria... criteria)
+
+
+
+
+
+
+ +

+countAll

+
+public long countAll()
+
+
+
+
+
+
+ +

+or

+
+public <T extends Model> CriteriaContainer or(Criteria... criteria)
+
+
+
+
+
+
+ +

+where

+
+public <T extends Model> Model.MorphiaQuery where(java.lang.String js)
+
+
+
+
+
+
+ +

+where

+
+public <T extends Model> Model.MorphiaQuery where(CodeWScope js)
+
+
+
+
+
+
+ +

+order

+
+public <T extends Model> Model.MorphiaQuery order(java.lang.String condition)
+
+
+
+
+
+
+ +

+limit

+
+public <T extends Model> Model.MorphiaQuery limit(int value)
+
+
+
+
+
+
+ +

+batchSize

+
+public <T extends Model> Model.MorphiaQuery batchSize(int value)
+
+
+
+
+
+
+ +

+offset

+
+public <T extends Model> Model.MorphiaQuery offset(int value)
+
+
+
+
+
+
+ +

+skip

+
+@Deprecated
+public <T extends Model> Model.MorphiaQuery skip(int value)
+
+
Deprecated.  +

+

+
+
+
+
+ +

+enableValidation

+
+public <T extends Model> Model.MorphiaQuery enableValidation()
+
+
+
+
+
+
+ +

+disableValidation

+
+public <T extends Model> Model.MorphiaQuery disableValidation()
+
+
+
+
+
+
+ +

+hintIndex

+
+public <T extends Model> Model.MorphiaQuery hintIndex(java.lang.String idxName)
+
+
+
+
+
+
+ +

+retrievedFields

+
+public <T extends Model> Model.MorphiaQuery retrievedFields(boolean include,
+                                                            java.lang.String... fields)
+
+
+
+
+
+
+ +

+enableSnapshotMode

+
+public <T extends Model> Model.MorphiaQuery enableSnapshotMode()
+
+
+
+
+
+
+ +

+disableSnapshotMode

+
+public <T extends Model> Model.MorphiaQuery disableSnapshotMode()
+
+
+
+
+
+
+ +

+queryNonPrimary

+
+public <T extends Model> Model.MorphiaQuery queryNonPrimary()
+
+
+
+
+
+
+ +

+queryPrimaryOnly

+
+public <T extends Model> Model.MorphiaQuery queryPrimaryOnly()
+
+
+
+
+
+
+ +

+disableTimeout

+
+@Deprecated
+public <T extends Model> Model.MorphiaQuery disableTimeout()
+
+
Deprecated.  +

+

+
+
+
+
+ +

+disableCursorTimeout

+
+public <T extends Model> Model.MorphiaQuery disableCursorTimeout()
+
+
+
+
+
+
+ +

+enableTimeout

+
+@Deprecated
+public <T extends Model> Model.MorphiaQuery enableTimeout()
+
+
Deprecated.  +

+

+
+
+
+
+ +

+enableCursorTimeout

+
+public <T extends Model> Model.MorphiaQuery enableCursorTimeout()
+
+
+
+
+
+
+ +

+getEntityClass

+
+public java.lang.Class<? extends Model> getEntityClass()
+
+
+
+
+
+
+ +

+clone

+
+public Model.MorphiaQuery clone()
+
+
+
Overrides:
clone in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.NoId.html b/documentation/api/play/modules/morphia/Model.NoId.html index 5b23021..bcd69f7 100644 --- a/documentation/api/play/modules/morphia/Model.NoId.html +++ b/documentation/api/play/modules/morphia/Model.NoId.html @@ -1,178 +1,178 @@ - - - - - - -Model.NoId (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.NoId

-
-
-
@Retention(value=RUNTIME)
-@Target(value=TYPE)
-public static @interface Model.NoId
- - -

+ + + + + + +Model.NoId (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.NoId

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+public static @interface Model.NoId
+ + +

NoID is used to annotate on sub types which is sure to get ID field from - parent type -

- -

-

-
Author:
-
luog
-
See Also:
https://groups.google.com/d/topic/play-framework/hPWJCvefPoI/discussion
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + parent type +

+ +

+

+
Author:
+
luog
+
See Also:
https://groups.google.com/d/topic/play-framework/hPWJCvefPoI/discussion
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.OnAdd.html b/documentation/api/play/modules/morphia/Model.OnAdd.html index 0bf18e7..8530a61 100644 --- a/documentation/api/play/modules/morphia/Model.OnAdd.html +++ b/documentation/api/play/modules/morphia/Model.OnAdd.html @@ -1,178 +1,178 @@ - - - - - - -Model.OnAdd (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.OnAdd

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.OnAdd
- - -

+ + + + + + +Model.OnAdd (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.OnAdd

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.OnAdd
+ + +

OnAdd mark a method be called before an new entity is saved. If any exception get thrown - out in the method the entity will not be saved -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + out in the method the entity will not be saved +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.OnBatchDelete.html b/documentation/api/play/modules/morphia/Model.OnBatchDelete.html index 442fa78..3cbb3dc 100644 --- a/documentation/api/play/modules/morphia/Model.OnBatchDelete.html +++ b/documentation/api/play/modules/morphia/Model.OnBatchDelete.html @@ -1,178 +1,178 @@ - - - - - - -Model.OnBatchDelete (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.OnBatchDelete

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.OnBatchDelete
- - -

+ + + + + + +Model.OnBatchDelete (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.OnBatchDelete

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.OnBatchDelete
+ + +

OnBatchDelete mark a method be called before a query's delete method get called. If any exception throw out - in this method the query deletion will be canceled -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + in this method the query deletion will be canceled +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.OnDelete.html b/documentation/api/play/modules/morphia/Model.OnDelete.html index 02c4c84..ce8276b 100644 --- a/documentation/api/play/modules/morphia/Model.OnDelete.html +++ b/documentation/api/play/modules/morphia/Model.OnDelete.html @@ -1,178 +1,178 @@ - - - - - - -Model.OnDelete (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.OnDelete

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.OnDelete
- - -

+ + + + + + +Model.OnDelete (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.OnDelete

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.OnDelete
+ + +

OnDelete mark a method be called before an entity is deleted. If any exception throw out - in this method the entity will not be removed -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + in this method the entity will not be removed +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.OnLoad.html b/documentation/api/play/modules/morphia/Model.OnLoad.html index 5f28244..d94c42b 100644 --- a/documentation/api/play/modules/morphia/Model.OnLoad.html +++ b/documentation/api/play/modules/morphia/Model.OnLoad.html @@ -1,178 +1,169 @@ - - - - - - -Model.OnLoad (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.OnLoad

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.OnLoad
- - -

-OnLoad mark a method be called after an new instance of an entity is initialized and - before the properties are filled with mongo db columns -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.OnLoad (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.OnLoad

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.OnLoad
+ + +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.OnUpdate.html b/documentation/api/play/modules/morphia/Model.OnUpdate.html index e5f1c67..7f5cf3c 100644 --- a/documentation/api/play/modules/morphia/Model.OnUpdate.html +++ b/documentation/api/play/modules/morphia/Model.OnUpdate.html @@ -1,178 +1,178 @@ - - - - - - -Model.OnUpdate (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.OnUpdate

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.OnUpdate
- - -

+ + + + + + +Model.OnUpdate (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.OnUpdate

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.OnUpdate
+ + +

OnUpdate mark a method be called before an existing entity is saved. If any exception get thrown - out in the method the entity will not be saved -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + out in the method the entity will not be saved +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.Updated.html b/documentation/api/play/modules/morphia/Model.Updated.html index c05b97f..97e0297 100644 --- a/documentation/api/play/modules/morphia/Model.Updated.html +++ b/documentation/api/play/modules/morphia/Model.Updated.html @@ -1,177 +1,177 @@ - - - - - - -Model.Updated (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Model.Updated

-
-
-
@Retention(value=RUNTIME)
-@Target(value=METHOD)
-public static @interface Model.Updated
- - -

-Updated mark a method be called after an existing entity is saved. -

- -

-

-
Author:
-
luog
-
- -

- -

- -


- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Model.Updated (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Model.Updated

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Model.Updated
+ + +

+Updated mark a method be called after an existing entity is saved. +

+ +

+

+
Author:
+
luog
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Model.html b/documentation/api/play/modules/morphia/Model.html index 7937f26..a74588a 100644 --- a/documentation/api/play/modules/morphia/Model.html +++ b/documentation/api/play/modules/morphia/Model.html @@ -1,2481 +1,2516 @@ - - - - - - -Model (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class Model

-
-java.lang.Object
-  extended by play.modules.morphia.Model
-
-
-
All Implemented Interfaces:
java.io.Serializable
-
-
-
-
public class Model
extends java.lang.Object
implements java.io.Serializable
- - -

+ + + + + + +Model (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class Model

+
+java.lang.Object
+  extended by play.modules.morphia.Model
+
+
+
All Implemented Interfaces:
java.io.Serializable
+
+
+
+
public class Model
extends java.lang.Object
implements java.io.Serializable
+ + +

This class provides the abstract declarations for all Models. Implementations - of these declarations are provided by the MorphiaEnhancer. -

- -

-

-
Author:
-
greenlaw110@gmail.com
-
See Also:
Serialized Form
-
- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +
-Nested Class Summary
-static interfaceModel.Added - -
-          Added mark a method be called after an new entity is saved.
-static interfaceModel.AutoTimestamp - -
-           
-static interfaceModel.BatchDeleted - -
-          Deleted mark a method be called after an a query deletion executed
-static interfaceModel.ByPass - -
-           
-static interfaceModel.Column - -
-           
-static interfaceModel.Deleted - -
-          Deleted mark a method be called after an entity is deleted
-static interfaceModel.Loaded - -
-          OnLoad mark a method be called immediately after an entity loaded from mongodb
-static classModel.MorphiaQuery - -
-           
-static interfaceModel.NoId - -
+ of these declarations are provided by the MorphiaEnhancer. +

+ +

+

+
Author:
+
greenlaw110@gmail.com
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - -
+Nested Class Summary
+static interfaceModel.Added + +
+          Added mark a method be called after an new entity is saved.
+static interfaceModel.AutoTimestamp + +
+           
+static interfaceModel.BatchDeleted + +
+          Deleted mark a method be called after an a query deletion executed
+static interfaceModel.ByPass + +
+           
+static interfaceModel.Column + +
+           
+static interfaceModel.Datasource + +
+          Associate an entity with a named Datasource.
+static interfaceModel.Deleted + +
+          Deleted mark a method be called after an entity is deleted
+static interfaceModel.Loaded + +
+          OnLoad mark a method be called immediately after an entity loaded from mongodb
+static classModel.MorphiaQuery + +
+           
+static interfaceModel.NoId + +
          NoID is used to annotate on sub types which is sure to get ID field from - parent type
-static interfaceModel.OnAdd - -
-          OnAdd mark a method be called before an new entity is saved.
-static interfaceModel.OnBatchDelete - -
-          OnBatchDelete mark a method be called before a query's delete method get called.
-static interfaceModel.OnDelete - -
-          OnDelete mark a method be called before an entity is deleted.
-static interfaceModel.OnLoad - -
-          OnLoad mark a method be called after an new instance of an entity is initialized and - before the properties are filled with mongo db columns
-static interfaceModel.OnUpdate - -
-          OnUpdate mark a method be called before an existing entity is saved.
-static interfaceModel.Updated - -
-          Updated mark a method be called after an existing entity is saved.
- - - - - - - - - - - - - - -
-Field Summary
-static java.lang.StringALL - -
-           
-protected  java.util.Map<java.lang.String,java.lang.Boolean>blobFieldsTracker - -
-           
-  - - - - - - - - - - -
-Constructor Summary
Model() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
-Method Summary
-static java.lang.Long_average(java.lang.String field) - -
-           
-static java.util.Map<java.lang.String,java.lang.Long>_cloud(java.lang.String field) - -
-           
- void_delete() - -
-           
-static java.util.Set<?>_distinct(java.lang.String key) - -
-          Return a Set of distinct values for the given key
- long_getCreated() - -
-           
- long_getModified() - -
-           
- void_h_Loaded() - -
-          for PlayMorphia internal usage only
- void_h_OnLoad() - -
-          for PlayMorphia internal usage only
- java.lang.Object_key() - -
-           
-static java.lang.Long_max(java.lang.String field) - -
-           
-static java.lang.Long_min(java.lang.String field) - -
-           
- void_save() - -
-           
-static java.lang.Long_sum(java.lang.String field) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
all() - -
-           
-protected  booleanblobChanged(java.lang.String fieldName) - -
-           
-static DBCollectioncol() - -
-          Return MongoDB DBCollection for this model
-static longcount() - -
-           
-static longcount(java.lang.String keys, - java.lang.Object... params) - -
-           
- booleancreate() - -
-          store (ie insert) the entity.
-static - - - - -
-<T extends Model> -
-T
-
create(java.lang.Class<?> type, - java.lang.String name, - java.util.Map<java.lang.String,java.lang.String[]> params, - java.lang.annotation.Annotation[] annotations) - -
-           
-static Modelcreate(java.lang.String name, - Params params) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
createQuery() - -
-           
-static DBdb() - -
-          Return MongoDB DB instance
- - - - - -
-<T extends Model> -
-T
-
delete() - -
-           
-static longdelete(Model.MorphiaQuery query) - -
-           
-static longdeleteAll() - -
-          Shortcut to Model.delete(find())
-protected  voiddeleteBlobs() - -
-           
-protected  voiddeleteBlobsInBatch(Model.MorphiaQuery q) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
disableValidation() - -
-           
-static Datastoreds() - -
-          Return Morphia Datastore instance
-static - - - - -
-<T extends Model> -
-T
-
edit(java.lang.Object o, - java.lang.String name, - java.util.Map<java.lang.String,java.lang.String[]> params, - java.lang.annotation.Annotation[] annotations) - -
-           
- - - - - -
-<T extends Model> -
-T
-
edit(java.lang.String name, - java.util.Map<java.lang.String,java.lang.String[]> params) - -
-           
- booleanequals(java.lang.Object other) - -
+ parent type
+static interfaceModel.OnAdd + +
+          OnAdd mark a method be called before an new entity is saved.
+static interfaceModel.OnBatchDelete + +
+          OnBatchDelete mark a method be called before a query's delete method get called.
+static interfaceModel.OnDelete + +
+          OnDelete mark a method be called before an entity is deleted.
+static interfaceModel.OnLoad + +
+           
+static interfaceModel.OnUpdate + +
+          OnUpdate mark a method be called before an existing entity is saved.
+static interfaceModel.Updated + +
+          Updated mark a method be called after an existing entity is saved.
+ + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringALL + +
+           
+protected  java.util.Map<java.lang.String,java.lang.Boolean>blobFieldsTracker + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Model() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - -
+Method Summary
+static java.lang.Long_average(java.lang.String field) + +
+           
+static java.util.Map<java.lang.String,java.lang.Long>_cloud(java.lang.String field) + +
+           
+ void_delete() + +
+           
+static java.util.Set<?>_distinct(java.lang.String key) + +
+          Return a Set of distinct values for the given key
+ long_getCreated() + +
+           
+ long_getModified() + +
+           
+ void_h_Loaded() + +
+          for PlayMorphia internal usage only
+ void_h_OnLoad() + +
+          for PlayMorphia internal usage only
+ java.lang.Object_key() + +
+           
+static java.lang.Long_max(java.lang.String field) + +
+           
+static java.lang.Long_min(java.lang.String field) + +
+           
+ void_save() + +
+           
+static java.lang.Long_sum(java.lang.String field) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
all() + +
+           
+protected  booleanblobChanged(java.lang.String fieldName) + +
+           
+static DBCollectioncol() + +
+          Return MongoDB DBCollection for this model
+static longcount() + +
+           
+static longcount(java.lang.String keys, + java.lang.Object... params) + +
+           
+ booleancreate() + +
+          store (ie insert) the entity.
+static + + + + +
+<T extends Model> +
+T
+
create(java.lang.Class<?> type, + java.lang.String name, + java.util.Map<java.lang.String,java.lang.String[]> params, + java.lang.annotation.Annotation[] annotations) + +
+           
+static Modelcreate(java.lang.String name, + Params params) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
createQuery() + +
+           
+static DBdb() + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+T
+
delete() + +
+           
+static longdelete(Model.MorphiaQuery query) + +
+           
+static longdeleteAll() + +
+          Shortcut to Model.delete(find())
+protected  voiddeleteBlobs() + +
+           
+protected  voiddeleteBlobsInBatch(Model.MorphiaQuery q) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
disableValidation() + +
+           
+static Datastoreds() + +
+          Deprecated. 
+static Datastoreds(java.lang.String dsName) + +
+           
+static + + + + +
+<T extends Model> +
+T
+
edit(java.lang.Object o, + java.lang.String name, + java.util.Map<java.lang.String,java.lang.String[]> params, + java.lang.annotation.Annotation[] annotations) + +
+           
+ + + + + +
+<T extends Model> +
+T
+
edit(java.lang.String name, + java.util.Map<java.lang.String,java.lang.String[]> params) + +
+           
+ booleanequals(java.lang.Object other) + +
          For sub class with \@Embedded annotation specified, it's better to - override this method
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
filter(java.lang.String property, - java.lang.Object value) - -
-          Morphia style filter method.
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
find() - -
-          Shortcut to createQuery()
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
find(java.lang.String keys, - java.lang.Object... params) - -
-          JPA style find method
-static - - - - -
-<T> java.util.List<T>
-
findAll() - -
-           
-static - - - - -
-<T extends Model> -
-T
-
findById(java.lang.Object id) - -
-           
-static - - - - -
-<T extends Model> -
-T
-
get() - -
-          Return the first element in the data storage.
- java.lang.StringgetBlobFileName(java.lang.String fieldName) - -
-           
-static java.lang.StringgetBlobFileName(java.lang.String className, - java.lang.Object id, - java.lang.String fieldName) - -
-           
- java.lang.ObjectgetId() - -
+ override this method
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
filter(java.lang.String property, + java.lang.Object value) + +
+          Morphia style filter method.
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
find() + +
+          Shortcut to createQuery()
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
find(java.lang.String keys, + java.lang.Object... params) + +
+          JPA style find method
+static + + + + +
+<T> java.util.List<T>
+
findAll() + +
+           
+static + + + + +
+<T extends Model> +
+T
+
findById(java.lang.Object id) + +
+           
+static + + + + +
+<T extends Model> +
+T
+
get() + +
+          Return the first element in the data storage.
+ java.lang.StringgetBlobFileName(java.lang.String fieldName) + +
+           
+static java.lang.StringgetBlobFileName(java.lang.String className, + java.lang.Object id, + java.lang.String fieldName) + +
+           
+ java.lang.ObjectgetId() + +
          MorphiaEnhancer will override this method for sub class without \@Embedded annotation specified If user defined customized \@Id field, it's better to override this - method for the sake of performance.
-static play.db.Model.FactorygetModelFactory() - -
-           
-static AggregationResultgroupAverage(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultgroupCount(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultgroupMax(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultgroupMin(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultgroupSum(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-protected  voidh_Added() - -
-          for PlayMorphia internal usage only
-protected  voidh_BatchDeleted(Model.MorphiaQuery q) - -
-           
-protected  voidh_Deleted() - -
-           
-protected  voidh_Loaded() - -
-          for PlayMorphia internal usage only
-protected  voidh_OnAdd() - -
-          for PlayMorphia internal usage only
-protected  voidh_OnBatchDelete(Model.MorphiaQuery q) - -
-           
-protected  voidh_OnDelete() - -
-           
-protected  voidh_OnLoad() - -
-          for PlayMorphia internal usage only
-protected  voidh_OnUpdate() - -
-          for PlayMorphia internal usage only
-protected  voidh_Updated() - -
-          for PlayMorphia internal usage only
- inthashCode() - -
+ method for the sake of performance.
+static play.db.Model.FactorygetModelFactory() + +
+           
+static AggregationResultgroupAverage(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultgroupCount(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultgroupMax(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultgroupMin(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultgroupSum(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+protected  voidh_Added() + +
+          for PlayMorphia internal usage only
+protected  voidh_BatchDeleted(Model.MorphiaQuery q) + +
+           
+protected  voidh_Deleted() + +
+           
+protected  voidh_Loaded() + +
+          for PlayMorphia internal usage only
+protected  voidh_OnAdd() + +
+          for PlayMorphia internal usage only
+protected  voidh_OnBatchDelete(Model.MorphiaQuery q) + +
+           
+protected  voidh_OnDelete() + +
+           
+protected  voidh_OnLoad() + +
+          for PlayMorphia internal usage only
+protected  voidh_OnUpdate() + +
+          for PlayMorphia internal usage only
+protected  voidh_Updated() + +
+          for PlayMorphia internal usage only
+ inthashCode() + +
          For sub class with \@Embedded annotation specified, it's better to - override this method
-protected  booleanisEmbedded_() - -
-          Deprecated.  
- booleanisNew() - -
+ override this method
+protected  booleanisEmbedded_() + +
+          Deprecated.  
+ booleanisNew() + +
          A utility method determine whether this entity is a newly constructed - object in memory or represents a data from mongodb
-protected  booleanisUserDefinedId_() - -
+ object in memory or represents a data from mongodb
+protected  booleanisUserDefinedId_() + +
          MorphiaEnhancer will override this method for sub class with \@Id - annotation specified
-protected  voidloadBlobs() - -
-           
- - - - - -
-<T extends Model> -
-T
-
merge() - -
-          This method has no effect at all
-protected static java.lang.ObjectprocessId_(java.lang.Object id) - -
-          Any sub class with \@Id annotation specified need to rewrite this method
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
q() - -
-          Shortcut to createQuery
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
q(java.lang.String keys, - java.lang.Object value) - -
-          Shortcut to find(String, Object...)
- - - - - -
-<T extends Model> -
-T
-
refresh() - -
-          Refresh the entity state.
-static voidremoveGridFSFiles(Model.MorphiaQuery q, - java.lang.String... fieldNames) - -
-           
-static voidremoveGridFSFiles(java.lang.String className, - java.lang.Object id, - java.lang.String... fieldNames) - -
-           
- - - - - -
-<T extends Model> -
-T
-
save() - -
-          Save and return this entity
- save2() - -
-          Save and return Morphia Key
-protected  voidsaveBlobs() - -
-           
-protected  voidsetBlobChanged(java.lang.String fieldName) - -
-           
-protected  voidsetId_(java.lang.Object id) - -
+ annotation specified
+protected  voidloadBlobs() + +
+           
+ + + + + +
+<T extends Model> +
+T
+
merge() + +
+          This method has no effect at all
+protected static java.lang.ObjectprocessId_(java.lang.Object id) + +
+          Any sub class with \@Id annotation specified need to rewrite this method
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
q() + +
+          Shortcut to createQuery
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
q(java.lang.String keys, + java.lang.Object value) + +
+          Shortcut to find(String, Object...)
+ + + + + +
+<T extends Model> +
+T
+
refresh() + +
+          Refresh the entity state.
+static voidremoveGridFSFiles(Model.MorphiaQuery q, + java.lang.String... fieldNames) + +
+           
+static voidremoveGridFSFiles(java.lang.String className, + java.lang.Object id, + java.lang.String... fieldNames) + +
+           
+ + + + + +
+<T extends Model> +
+T
+
save() + +
+          Save and return this entity
+ save2() + +
+          Save and return Morphia Key
+protected  voidsaveBlobs() + +
+           
+protected  voidsetBlobChanged(java.lang.String fieldName) + +
+           
+protected  voidsetId_(java.lang.Object id) + +
          MorphiaEnhancer will override this method for sub class without user - annotated \@Id fields
- voidsetId(java.lang.Object id) - -
-           
- java.lang.StringtoString() - -
-           
- booleanvalidateAndCreate() - -
-           
- booleanvalidateAndSave() - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-ALL

-
-public static final java.lang.String ALL
-
-
-
See Also:
Constant Field Values
-
-
- -

-blobFieldsTracker

-
-protected final java.util.Map<java.lang.String,java.lang.Boolean> blobFieldsTracker
-
-
-
-
- - - - - - - - -
-Constructor Detail
- -

-Model

-
-public Model()
-
-
- - - - - - - - -
-Method Detail
- -

-_key

-
-public java.lang.Object _key()
-
-
-
-
-
-
-
-
-
- -

-_save

-
-public void _save()
-
-
-
-
-
-
-
-
-
- -

-_delete

-
-public void _delete()
-
-
-
-
-
-
-
-
-
- -

-create

-
-public static <T extends Model> T create(java.lang.Class<?> type,
-                                         java.lang.String name,
-                                         java.util.Map<java.lang.String,java.lang.String[]> params,
-                                         java.lang.annotation.Annotation[] annotations)
-
-
-
-
-
-
-
-
-
- -

-edit

-
-public static <T extends Model> T edit(java.lang.Object o,
-                                       java.lang.String name,
-                                       java.util.Map<java.lang.String,java.lang.String[]> params,
-                                       java.lang.annotation.Annotation[] annotations)
-
-
-
-
-
-
-
-
-
- -

-edit

-
-public <T extends Model> T edit(java.lang.String name,
-                                java.util.Map<java.lang.String,java.lang.String[]> params)
-
-
-
-
-
-
-
-
-
- -

-validateAndSave

-
-public boolean validateAndSave()
-
-
-
-
-
-
-
-
-
- -

-validateAndCreate

-
-public boolean validateAndCreate()
-
-
-
-
-
-
-
-
-
- -

-isEmbedded_

-
-protected boolean isEmbedded_()
-
-
Deprecated.  -

+ annotated \@Id fields

+ voidsetId(java.lang.Object id) + +
+           
+ java.lang.StringtoString() + +
+           
+ booleanvalidateAndCreate() + +
+           
+ booleanvalidateAndSave() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ALL

+
+public static final java.lang.String ALL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+blobFieldsTracker

+
+protected final java.util.Map<java.lang.String,java.lang.Boolean> blobFieldsTracker
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Model

+
+public Model()
+
+
+ + + + + + + + +
+Method Detail
+ +

+_key

+
+public java.lang.Object _key()
+
+
+
+
+
+
+
+
+
+ +

+_save

+
+public void _save()
+
+
+
+
+
+
+
+
+
+ +

+_delete

+
+public void _delete()
+
+
+
+
+
+
+
+
+
+ +

+create

+
+public static <T extends Model> T create(java.lang.Class<?> type,
+                                         java.lang.String name,
+                                         java.util.Map<java.lang.String,java.lang.String[]> params,
+                                         java.lang.annotation.Annotation[] annotations)
+
+
+
+
+
+
+
+
+
+ +

+edit

+
+public static <T extends Model> T edit(java.lang.Object o,
+                                       java.lang.String name,
+                                       java.util.Map<java.lang.String,java.lang.String[]> params,
+                                       java.lang.annotation.Annotation[] annotations)
+
+
+
+
+
+
+
+
+
+ +

+edit

+
+public <T extends Model> T edit(java.lang.String name,
+                                java.util.Map<java.lang.String,java.lang.String[]> params)
+
+
+
+
+
+
+
+
+
+ +

+validateAndSave

+
+public boolean validateAndSave()
+
+
+
+
+
+
+
+
+
+ +

+validateAndCreate

+
+public boolean validateAndCreate()
+
+
+
+
+
+
+
+
+
+ +

+isEmbedded_

+
+protected boolean isEmbedded_()
+
+
Deprecated.  +

This method is deprecated as Embedded object shall not extends Model class - and shall not be enhanced -

-

-
-
-
- -
Returns:
-
-
-
- -

-isUserDefinedId_

-
-protected boolean isUserDefinedId_()
-
+ and shall not be enhanced +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+isUserDefinedId_

+
+protected boolean isUserDefinedId_()
+
MorphiaEnhancer will override this method for sub class with \@Id - annotation specified -

-

-
-
-
- -
Returns:
-
-
-
- -

-processId_

-
-protected static java.lang.Object processId_(java.lang.Object id)
-
-
Any sub class with \@Id annotation specified need to rewrite this method -

-

-
-
-
- -
Returns:
-
-
-
- -

-getId

-
-public java.lang.Object getId()
-
+ annotation specified +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+processId_

+
+protected static java.lang.Object processId_(java.lang.Object id)
+
+
Any sub class with \@Id annotation specified need to rewrite this method +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+getId

+
+public java.lang.Object getId()
+
MorphiaEnhancer will override this method for sub class without \@Embedded annotation specified If user defined customized \@Id field, it's better to override this method for the sake of performance. Otherwise framework will use - reflection to get the value -

-

-
-
-
- -
Returns:
-
-
-
- -

-setId

-
-public final void setId(java.lang.Object id)
-
-
-
-
-
-
-
-
-
- -

-setId_

-
-protected void setId_(java.lang.Object id)
-
+ reflection to get the value +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+setId

+
+public final void setId(java.lang.Object id)
+
+
+
+
+
+
+
+
+
+ +

+setId_

+
+protected void setId_(java.lang.Object id)
+
MorphiaEnhancer will override this method for sub class without user - annotated \@Id fields -

-

-
-
-
-
-
-
-
- -

-getModelFactory

-
-public static play.db.Model.Factory getModelFactory()
-
-
-
-
-
-
-
-
-
- -

-toString

-
-public java.lang.String toString()
-
-
-
Overrides:
toString in class java.lang.Object
-
-
-
-
-
-
- -

-hashCode

-
-public int hashCode()
-
+ annotated \@Id fields +

+

+
+
+
+
+
+
+
+ +

+getModelFactory

+
+public static play.db.Model.Factory getModelFactory()
+
+
+
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
For sub class with \@Embedded annotation specified, it's better to - override this method -

-

-
Overrides:
hashCode in class java.lang.Object
-
-
-
-
-
-
- -

-equals

-
-public boolean equals(java.lang.Object other)
-
+ override this method +

+

+
Overrides:
hashCode in class java.lang.Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(java.lang.Object other)
+
For sub class with \@Embedded annotation specified, it's better to - override this method -

-

-
Overrides:
equals in class java.lang.Object
-
-
-
-
-
-
- -

-isNew

-
-public final boolean isNew()
-
+ override this method +

+

+
Overrides:
equals in class java.lang.Object
+
+
+
+
+
+
+ +

+isNew

+
+public final boolean isNew()
+
A utility method determine whether this entity is a newly constructed - object in memory or represents a data from mongodb -

-

-
-
-
- + object in memory or represents a data from mongodb +

+

+
+
+
+
Returns:
true if this is a memory object which has not been saved to db - yet, false otherwise
-
-
-
- -

-merge

-
-public <T extends Model> T merge()
-
-
This method has no effect at all -

-

-
-
-
-
-
-
-
- -

-refresh

-
-public <T extends Model> T refresh()
-
-
Refresh the entity state. -

-

-
-
-
-
-
-
-
- -

-all

-
-public static <T extends Model> Model.MorphiaQuery all()
-
-
-
-
-
-
-
-
-
- -

-create

-
-public static Model create(java.lang.String name,
-                           Params params)
-
-
-
-
-
-
-
-
-
- -

-q

-
-public static <T extends Model> Model.MorphiaQuery q()
-
-
Shortcut to createQuery -

-

-
-
-
- -
Returns:
-
-
-
- -

-createQuery

-
-public static <T extends Model> Model.MorphiaQuery createQuery()
-
-
-
-
-
-
-
-
-
- -

-disableValidation

-
-public static <T extends Model> Model.MorphiaQuery disableValidation()
-
-
-
-
-
-
-
-
-
- -

-count

-
-public static long count()
-
-
-
-
-
-
-
-
-
- -

-count

-
-public static long count(java.lang.String keys,
-                         java.lang.Object... params)
-
-
-
-
-
-
-
-
-
- -

-_distinct

-
-public static java.util.Set<?> _distinct(java.lang.String key)
-
-
Return a Set of distinct values for the given key -

-

-
-
-
-
Parameters:
key - -
Returns:
a distinct set of key values
-
-
-
- -

-_max

-
-public static java.lang.Long _max(java.lang.String field)
-
-
-
-
-
-
-
-
-
- -

-groupMax

-
-public static AggregationResult groupMax(java.lang.String field,
-                                         java.lang.String... groupKeys)
-
-
-
-
-
-
-
-
-
- -

-_min

-
-public static java.lang.Long _min(java.lang.String field)
-
-
-
-
-
-
-
-
-
- -

-groupMin

-
-public static AggregationResult groupMin(java.lang.String field,
-                                         java.lang.String... groupKeys)
-
-
-
-
-
-
-
-
-
- -

-_average

-
-public static java.lang.Long _average(java.lang.String field)
-
-
-
-
-
-
-
-
-
- -

-groupAverage

-
-public static AggregationResult groupAverage(java.lang.String field,
-                                             java.lang.String... groupKeys)
-
-
-
-
-
-
-
-
-
- -

-_sum

-
-public static java.lang.Long _sum(java.lang.String field)
-
-
-
-
-
-
-
-
-
- -

-groupSum

-
-public static AggregationResult groupSum(java.lang.String field,
-                                         java.lang.String... groupKeys)
-
-
-
-
-
-
-
-
-
- -

-groupCount

-
-public static AggregationResult groupCount(java.lang.String field,
-                                           java.lang.String... groupKeys)
-
-
-
-
-
-
-
-
-
- -

-_cloud

-
-public static java.util.Map<java.lang.String,java.lang.Long> _cloud(java.lang.String field)
-
-
-
-
-
-
-
-
-
- -

-delete

-
-public <T extends Model> T delete()
-
-
-
-
-
-
-
-
-
- -

-h_OnDelete

-
-protected void h_OnDelete()
-
-
-
-
-
-
-
-
-
- -

-h_Deleted

-
-protected void h_Deleted()
-
-
-
-
-
-
-
-
-
- -

-h_OnBatchDelete

-
-protected void h_OnBatchDelete(Model.MorphiaQuery q)
-
-
-
-
-
-
-
-
-
- -

-h_BatchDeleted

-
-protected void h_BatchDeleted(Model.MorphiaQuery q)
-
-
-
-
-
-
-
-
-
- -

-deleteBlobs

-
-protected void deleteBlobs()
-
-
-
-
-
-
-
-
-
- -

-deleteBlobsInBatch

-
-protected void deleteBlobsInBatch(Model.MorphiaQuery q)
-
-
-
-
-
-
-
-
-
- -

-create

-
-public boolean create()
-
-
store (ie insert) the entity. -

-

-
-
-
-
-
-
-
- -

-delete

-
-public static long delete(Model.MorphiaQuery query)
-
-
-
-
-
-
-
-
-
- -

-deleteAll

-
-public static long deleteAll()
-
-
Shortcut to Model.delete(find()) -

-

-
-
-
- -
Returns:
-
-
-
- -

-find

-
-public static <T extends Model> Model.MorphiaQuery find()
-
-
Shortcut to createQuery() -

-

-
-
-
- -
Returns:
-
-
-
- -

-find

-
-public static <T extends Model> Model.MorphiaQuery find(java.lang.String keys,
-                                                        java.lang.Object... params)
-
-
JPA style find method -

-

-
-
-
+ yet, false otherwise
+
+
+
+ +

+merge

+
+public <T extends Model> T merge()
+
+
This method has no effect at all +

+

+
+
+
+
+
+
+
+ +

+refresh

+
+public <T extends Model> T refresh()
+
+
Refresh the entity state. +

+

+
+
+
+
+
+
+
+ +

+all

+
+public static <T extends Model> Model.MorphiaQuery all()
+
+
+
+
+
+
+
+
+
+ +

+create

+
+public static Model create(java.lang.String name,
+                           Params params)
+
+
+
+
+
+
+
+
+
+ +

+q

+
+public static <T extends Model> Model.MorphiaQuery q()
+
+
Shortcut to createQuery +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+createQuery

+
+public static <T extends Model> Model.MorphiaQuery createQuery()
+
+
+
+
+
+
+
+
+
+ +

+disableValidation

+
+public static <T extends Model> Model.MorphiaQuery disableValidation()
+
+
+
+
+
+
+
+
+
+ +

+count

+
+public static long count()
+
+
+
+
+
+
+
+
+
+ +

+count

+
+public static long count(java.lang.String keys,
+                         java.lang.Object... params)
+
+
+
+
+
+
+
+
+
+ +

+_distinct

+
+public static java.util.Set<?> _distinct(java.lang.String key)
+
+
Return a Set of distinct values for the given key +

+

+
+
+
+
Parameters:
key - +
Returns:
a distinct set of key values
+
+
+
+ +

+_max

+
+public static java.lang.Long _max(java.lang.String field)
+
+
+
+
+
+
+
+
+
+ +

+groupMax

+
+public static AggregationResult groupMax(java.lang.String field,
+                                         java.lang.String... groupKeys)
+
+
+
+
+
+
+
+
+
+ +

+_min

+
+public static java.lang.Long _min(java.lang.String field)
+
+
+
+
+
+
+
+
+
+ +

+groupMin

+
+public static AggregationResult groupMin(java.lang.String field,
+                                         java.lang.String... groupKeys)
+
+
+
+
+
+
+
+
+
+ +

+_average

+
+public static java.lang.Long _average(java.lang.String field)
+
+
+
+
+
+
+
+
+
+ +

+groupAverage

+
+public static AggregationResult groupAverage(java.lang.String field,
+                                             java.lang.String... groupKeys)
+
+
+
+
+
+
+
+
+
+ +

+_sum

+
+public static java.lang.Long _sum(java.lang.String field)
+
+
+
+
+
+
+
+
+
+ +

+groupSum

+
+public static AggregationResult groupSum(java.lang.String field,
+                                         java.lang.String... groupKeys)
+
+
+
+
+
+
+
+
+
+ +

+groupCount

+
+public static AggregationResult groupCount(java.lang.String field,
+                                           java.lang.String... groupKeys)
+
+
+
+
+
+
+
+
+
+ +

+_cloud

+
+public static java.util.Map<java.lang.String,java.lang.Long> _cloud(java.lang.String field)
+
+
+
+
+
+
+
+
+
+ +

+delete

+
+public <T extends Model> T delete()
+
+
+
+
+
+
+
+
+
+ +

+h_OnDelete

+
+protected void h_OnDelete()
+
+
+
+
+
+
+
+
+
+ +

+h_Deleted

+
+protected void h_Deleted()
+
+
+
+
+
+
+
+
+
+ +

+h_OnBatchDelete

+
+protected void h_OnBatchDelete(Model.MorphiaQuery q)
+
+
+
+
+
+
+
+
+
+ +

+h_BatchDeleted

+
+protected void h_BatchDeleted(Model.MorphiaQuery q)
+
+
+
+
+
+
+
+
+
+ +

+deleteBlobs

+
+protected void deleteBlobs()
+
+
+
+
+
+
+
+
+
+ +

+deleteBlobsInBatch

+
+protected void deleteBlobsInBatch(Model.MorphiaQuery q)
+
+
+
+
+
+
+
+
+
+ +

+create

+
+public boolean create()
+
+
store (ie insert) the entity. +

+

+
+
+
+
+
+
+
+ +

+delete

+
+public static long delete(Model.MorphiaQuery query)
+
+
+
+
+
+
+
+
+
+ +

+deleteAll

+
+public static long deleteAll()
+
+
Shortcut to Model.delete(find()) +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+find

+
+public static <T extends Model> Model.MorphiaQuery find()
+
+
Shortcut to createQuery() +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+find

+
+public static <T extends Model> Model.MorphiaQuery find(java.lang.String keys,
+                                                        java.lang.Object... params)
+
+
JPA style find method +

+

+
+
+
Parameters:
keys - could be either "byKey1[AndKey2[AndKey3...]]" or - "Key1[AndKey2[AndKey3...]]" or "key1 key2..."
params - number should either be one or the same number of keys -
Returns:
-
-
-
- -

-findAll

-
-public static <T> java.util.List<T> findAll()
-
-
-
-
-
-
-
-
-
- -

-findById

-
-public static <T extends Model> T findById(java.lang.Object id)
-
-
-
-
-
-
-
-
-
- -

-q

-
-public static <T extends Model> Model.MorphiaQuery q(java.lang.String keys,
-                                                     java.lang.Object value)
-
-
Shortcut to find(String, Object...) -

-

-
-
-
-
Parameters:
keys -
objects - -
Returns:
-
-
-
- -

-filter

-
-public static <T extends Model> Model.MorphiaQuery filter(java.lang.String property,
-                                                          java.lang.Object value)
-
+ "Key1[AndKey2[AndKey3...]]" or "key1 key2..."
params - number should either be one or the same number of keys +
Returns:
+
+
+
+ +

+findAll

+
+public static <T> java.util.List<T> findAll()
+
+
+
+
+
+
+
+
+
+ +

+findById

+
+public static <T extends Model> T findById(java.lang.Object id)
+
+
+
+
+
+
+
+
+
+ +

+q

+
+public static <T extends Model> Model.MorphiaQuery q(java.lang.String keys,
+                                                     java.lang.Object value)
+
+
Shortcut to find(String, Object...) +

+

+
+
+
+
Parameters:
keys -
objects - +
Returns:
+
+
+
+ +

+filter

+
+public static <T extends Model> Model.MorphiaQuery filter(java.lang.String property,
+                                                          java.lang.Object value)
+
Morphia style filter method.

if you have MyModel.find("byNameAndAge", "John", 20), you can also use - MyModel.filter("name", "John").filter("age", 20) for the same query -

-

-
-
-
-
Parameters:
property - should be the filter name
value - the filter value -
Returns:
-
-
-
- -

-get

-
-public static <T extends Model> T get()
-
+ MyModel.filter("name", "John").filter("age", 20) for the same query +

+

+
+
+
+
Parameters:
property - should be the filter name
value - the filter value +
Returns:
+
+
+
+ +

+get

+
+public static <T extends Model> T get()
+
Return the first element in the data storage. Return null if there is no - record found -

-

-
-
-
-
-
-
-
- -

-ds

-
-public static Datastore ds()
-
-
Return Morphia Datastore instance -

-

-
-
-
- -
Returns:
-
-
-
- -

-col

-
-public static DBCollection col()
-
-
Return MongoDB DBCollection for this model -

-

-
-
-
-
-
-
-
- -

-db

-
-public static DB db()
-
-
Return MongoDB DB instance -

-

-
-
-
- -
Returns:
-
-
-
- -

-save

-
-public <T extends Model> T save()
-
-
Save and return this entity -

-

-
-
-
-
Type Parameters:
T - -
Returns:
-
-
-
- -

-save2

-
-public  save2()
-
-
Save and return Morphia Key -

-

-
-
-
- -
Returns:
-
-
-
- -

-_h_OnLoad

-
-public final void _h_OnLoad()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-h_OnLoad

-
-protected void h_OnLoad()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-_h_Loaded

-
-public final void _h_Loaded()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-h_Loaded

-
-protected void h_Loaded()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-h_Added

-
-protected void h_Added()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-h_Updated

-
-protected void h_Updated()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-h_OnAdd

-
-protected void h_OnAdd()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-h_OnUpdate

-
-protected void h_OnUpdate()
-
-
for PlayMorphia internal usage only -

-

-
-
-
-
-
-
-
- -

-saveBlobs

-
-protected void saveBlobs()
-
-
-
-
-
-
-
-
-
- -

-loadBlobs

-
-protected void loadBlobs()
-
-
-
-
-
-
-
-
-
- -

-blobChanged

-
-protected final boolean blobChanged(java.lang.String fieldName)
-
-
-
-
-
-
-
-
-
- -

-setBlobChanged

-
-protected final void setBlobChanged(java.lang.String fieldName)
-
-
-
-
-
-
-
-
-
- -

-getBlobFileName

-
-public java.lang.String getBlobFileName(java.lang.String fieldName)
-
-
-
-
-
-
-
-
-
- -

-getBlobFileName

-
-public static java.lang.String getBlobFileName(java.lang.String className,
-                                               java.lang.Object id,
-                                               java.lang.String fieldName)
-
-
-
-
-
-
-
-
-
- -

-removeGridFSFiles

-
-public static void removeGridFSFiles(java.lang.String className,
-                                     java.lang.Object id,
-                                     java.lang.String... fieldNames)
-
-
-
-
-
-
-
-
-
- -

-removeGridFSFiles

-
-public static void removeGridFSFiles(Model.MorphiaQuery q,
-                                     java.lang.String... fieldNames)
-
-
-
-
-
-
-
-
-
- -

-_getCreated

-
-public long _getCreated()
-
-
-
-
-
-
-
-
-
- -

-_getModified

-
-public long _getModified()
-
-
-
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + record found +

+

+
+
+
+
+
+ +
+ +

+ds

+
+@Deprecated
+public static Datastore ds()
+
+
Deprecated.  +

+

Return Morphia Datastore instance +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+ds

+
+public static Datastore ds(java.lang.String dsName)
+
+
+
+
+
+
+
+
+
+ +

+col

+
+public static DBCollection col()
+
+
Return MongoDB DBCollection for this model +

+

+
+
+
+
+
+
+
+ +

+db

+
+@Deprecated
+public static DB db()
+
+
Deprecated.  +

+

Return MongoDB DB instance +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+save

+
+public <T extends Model> T save()
+
+
Save and return this entity +

+

+
+
+
+
Type Parameters:
T - +
Returns:
+
+
+
+ +

+save2

+
+public  save2()
+
+
Save and return Morphia Key +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+_h_OnLoad

+
+public final void _h_OnLoad()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+h_OnLoad

+
+protected void h_OnLoad()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+_h_Loaded

+
+public final void _h_Loaded()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+h_Loaded

+
+protected void h_Loaded()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+h_Added

+
+protected void h_Added()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+h_Updated

+
+protected void h_Updated()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+h_OnAdd

+
+protected void h_OnAdd()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+h_OnUpdate

+
+protected void h_OnUpdate()
+
+
for PlayMorphia internal usage only +

+

+
+
+
+
+
+
+
+ +

+saveBlobs

+
+protected void saveBlobs()
+
+
+
+
+
+
+
+
+
+ +

+loadBlobs

+
+protected void loadBlobs()
+
+
+
+
+
+
+
+
+
+ +

+blobChanged

+
+protected final boolean blobChanged(java.lang.String fieldName)
+
+
+
+
+
+
+
+
+
+ +

+setBlobChanged

+
+protected final void setBlobChanged(java.lang.String fieldName)
+
+
+
+
+
+
+
+
+
+ +

+getBlobFileName

+
+public java.lang.String getBlobFileName(java.lang.String fieldName)
+
+
+
+
+
+
+
+
+
+ +

+getBlobFileName

+
+public static java.lang.String getBlobFileName(java.lang.String className,
+                                               java.lang.Object id,
+                                               java.lang.String fieldName)
+
+
+
+
+
+
+
+
+
+ +

+removeGridFSFiles

+
+public static void removeGridFSFiles(java.lang.String className,
+                                     java.lang.Object id,
+                                     java.lang.String... fieldNames)
+
+
+
+
+
+
+
+
+
+ +

+removeGridFSFiles

+
+public static void removeGridFSFiles(Model.MorphiaQuery q,
+                                     java.lang.String... fieldNames)
+
+
+
+
+
+
+
+
+
+ +

+_getCreated

+
+public long _getCreated()
+
+
+
+
+
+
+
+
+
+ +

+_getModified

+
+public long _getModified()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaEnhancer.html b/documentation/api/play/modules/morphia/MorphiaEnhancer.html index aaf39ef..8580c8f 100644 --- a/documentation/api/play/modules/morphia/MorphiaEnhancer.html +++ b/documentation/api/play/modules/morphia/MorphiaEnhancer.html @@ -1,301 +1,301 @@ - - - - - - -MorphiaEnhancer (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class MorphiaEnhancer

-
-java.lang.Object
-  extended by Enhancer
-      extended by play.modules.morphia.MorphiaEnhancer
-
-
-
-
public class MorphiaEnhancer
extends Enhancer
- - -

+ + + + + + +MorphiaEnhancer (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class MorphiaEnhancer

+
+java.lang.Object
+  extended by Enhancer
+      extended by play.modules.morphia.MorphiaEnhancer
+
+
+
+
public class MorphiaEnhancer
extends Enhancer
+ + +

This class uses the Play framework enhancement process to enhance classes - marked with the morphia annotations. -

- -

-

-
Author:
-
greenlaw110@gmail.com
-
-
- -

- - - - - - - - - - - -
-Field Summary
-static java.lang.StringPACKAGE_NAME - -
-           
-  - - - - - - - - - - -
-Constructor Summary
MorphiaEnhancer() - -
-           
-  - - - - - - - - - - - -
-Method Summary
- voidenhanceThisClass(ApplicationClass applicationClass) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-PACKAGE_NAME

-
-public static final java.lang.String PACKAGE_NAME
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Constructor Detail
- -

-MorphiaEnhancer

-
-public MorphiaEnhancer()
-
-
- - - - - - - - -
-Method Detail
- -

-enhanceThisClass

-
-public void enhanceThisClass(ApplicationClass applicationClass)
-                      throws java.lang.Exception
-
-
- -
Throws: -
java.lang.Exception
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + marked with the morphia annotations. +

+ +

+

+
Author:
+
greenlaw110@gmail.com
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static java.lang.StringPACKAGE_NAME + +
+           
+  + + + + + + + + + + +
+Constructor Summary
MorphiaEnhancer() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidenhanceThisClass(ApplicationClass applicationClass) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+PACKAGE_NAME

+
+public static final java.lang.String PACKAGE_NAME
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+MorphiaEnhancer

+
+public MorphiaEnhancer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+enhanceThisClass

+
+public void enhanceThisClass(ApplicationClass applicationClass)
+                      throws java.lang.Exception
+
+
+ +
Throws: +
java.lang.Exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaEvent.IMorphiaEventHandler.html b/documentation/api/play/modules/morphia/MorphiaEvent.IMorphiaEventHandler.html index c0611de..87dd322 100644 --- a/documentation/api/play/modules/morphia/MorphiaEvent.IMorphiaEventHandler.html +++ b/documentation/api/play/modules/morphia/MorphiaEvent.IMorphiaEventHandler.html @@ -1,383 +1,383 @@ - - - - - - -MorphiaEvent.IMorphiaEventHandler (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Interface MorphiaEvent.IMorphiaEventHandler

-
-
All Known Implementing Classes:
MorphiaEvent.MorphiaEventHandlerAdaptor
-
-
-
Enclosing class:
MorphiaEvent
-
-
-
-
public static interface MorphiaEvent.IMorphiaEventHandler
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidadded(Model context) - -
-           
- voidbatchDeleted(Model.MorphiaQuery context) - -
-           
- voiddeleted(Model context) - -
-           
- voidloaded(Model context) - -
-           
- voidonAdd(Model context) - -
-           
- voidonBatchDelete(Model.MorphiaQuery context) - -
-           
- voidonDelete(Model context) - -
-           
- voidonLoad(Model context) - -
-           
- voidonUpdate(Model context) - -
-           
- voidupdated(Model context) - -
-           
-  -

- - - - - - - - -
-Method Detail
- -

-onLoad

-
-void onLoad(Model context)
-
-
-
-
-
-
- -

-loaded

-
-void loaded(Model context)
-
-
-
-
-
-
- -

-onAdd

-
-void onAdd(Model context)
-
-
-
-
-
-
- -

-onUpdate

-
-void onUpdate(Model context)
-
-
-
-
-
-
- -

-added

-
-void added(Model context)
-
-
-
-
-
-
- -

-updated

-
-void updated(Model context)
-
-
-
-
-
-
- -

-onDelete

-
-void onDelete(Model context)
-
-
-
-
-
-
- -

-deleted

-
-void deleted(Model context)
-
-
-
-
-
-
- -

-onBatchDelete

-
-void onBatchDelete(Model.MorphiaQuery context)
-
-
-
-
-
-
- -

-batchDeleted

-
-void batchDeleted(Model.MorphiaQuery context)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +MorphiaEvent.IMorphiaEventHandler (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Interface MorphiaEvent.IMorphiaEventHandler

+
+
All Known Implementing Classes:
MorphiaEvent.MorphiaEventHandlerAdaptor
+
+
+
Enclosing class:
MorphiaEvent
+
+
+
+
public static interface MorphiaEvent.IMorphiaEventHandler
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadded(Model context) + +
+           
+ voidbatchDeleted(Model.MorphiaQuery context) + +
+           
+ voiddeleted(Model context) + +
+           
+ voidloaded(Model context) + +
+           
+ voidonAdd(Model context) + +
+           
+ voidonBatchDelete(Model.MorphiaQuery context) + +
+           
+ voidonDelete(Model context) + +
+           
+ voidonLoad(Model context) + +
+           
+ voidonUpdate(Model context) + +
+           
+ voidupdated(Model context) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+onLoad

+
+void onLoad(Model context)
+
+
+
+
+
+
+ +

+loaded

+
+void loaded(Model context)
+
+
+
+
+
+
+ +

+onAdd

+
+void onAdd(Model context)
+
+
+
+
+
+
+ +

+onUpdate

+
+void onUpdate(Model context)
+
+
+
+
+
+
+ +

+added

+
+void added(Model context)
+
+
+
+
+
+
+ +

+updated

+
+void updated(Model context)
+
+
+
+
+
+
+ +

+onDelete

+
+void onDelete(Model context)
+
+
+
+
+
+
+ +

+deleted

+
+void deleted(Model context)
+
+
+
+
+
+
+ +

+onBatchDelete

+
+void onBatchDelete(Model.MorphiaQuery context)
+
+
+
+
+
+
+ +

+batchDeleted

+
+void batchDeleted(Model.MorphiaQuery context)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaEvent.MorphiaEventHandlerAdaptor.html b/documentation/api/play/modules/morphia/MorphiaEvent.MorphiaEventHandlerAdaptor.html index 49234c0..3a0b01b 100644 --- a/documentation/api/play/modules/morphia/MorphiaEvent.MorphiaEventHandlerAdaptor.html +++ b/documentation/api/play/modules/morphia/MorphiaEvent.MorphiaEventHandlerAdaptor.html @@ -1,459 +1,459 @@ - - - - - - -MorphiaEvent.MorphiaEventHandlerAdaptor (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class MorphiaEvent.MorphiaEventHandlerAdaptor

-
-java.lang.Object
-  extended by play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor
-
-
-
All Implemented Interfaces:
MorphiaEvent.IMorphiaEventHandler
-
-
-
Enclosing class:
MorphiaEvent
-
-
-
-
public static class MorphiaEvent.MorphiaEventHandlerAdaptor
extends java.lang.Object
implements MorphiaEvent.IMorphiaEventHandler
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
MorphiaEvent.MorphiaEventHandlerAdaptor() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voidadded(Model context) - -
-           
- voidbatchDeleted(Model.MorphiaQuery context) - -
-           
- voiddeleted(Model context) - -
-           
- voidloaded(Model context) - -
-           
- voidonAdd(Model context) - -
-           
- voidonBatchDelete(Model.MorphiaQuery context) - -
-           
- voidonDelete(Model context) - -
-           
- voidonLoad(Model context) - -
-           
- voidonUpdate(Model context) - -
-           
- voidupdated(Model context) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-MorphiaEvent.MorphiaEventHandlerAdaptor

-
-public MorphiaEvent.MorphiaEventHandlerAdaptor()
-
-
- - - - - - - - -
-Method Detail
- -

-onLoad

-
-public void onLoad(Model context)
-
-
-
Specified by:
onLoad in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-loaded

-
-public void loaded(Model context)
-
-
-
Specified by:
loaded in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-onAdd

-
-public void onAdd(Model context)
-
-
-
Specified by:
onAdd in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-onUpdate

-
-public void onUpdate(Model context)
-
-
-
Specified by:
onUpdate in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-added

-
-public void added(Model context)
-
-
-
Specified by:
added in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-updated

-
-public void updated(Model context)
-
-
-
Specified by:
updated in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-onDelete

-
-public void onDelete(Model context)
-
-
-
Specified by:
onDelete in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-deleted

-
-public void deleted(Model context)
-
-
-
Specified by:
deleted in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-onBatchDelete

-
-public void onBatchDelete(Model.MorphiaQuery context)
-
-
-
Specified by:
onBatchDelete in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
-
- -

-batchDeleted

-
-public void batchDeleted(Model.MorphiaQuery context)
-
-
-
Specified by:
batchDeleted in interface MorphiaEvent.IMorphiaEventHandler
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +MorphiaEvent.MorphiaEventHandlerAdaptor (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class MorphiaEvent.MorphiaEventHandlerAdaptor

+
+java.lang.Object
+  extended by play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor
+
+
+
All Implemented Interfaces:
MorphiaEvent.IMorphiaEventHandler
+
+
+
Enclosing class:
MorphiaEvent
+
+
+
+
public static class MorphiaEvent.MorphiaEventHandlerAdaptor
extends java.lang.Object
implements MorphiaEvent.IMorphiaEventHandler
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
MorphiaEvent.MorphiaEventHandlerAdaptor() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadded(Model context) + +
+           
+ voidbatchDeleted(Model.MorphiaQuery context) + +
+           
+ voiddeleted(Model context) + +
+           
+ voidloaded(Model context) + +
+           
+ voidonAdd(Model context) + +
+           
+ voidonBatchDelete(Model.MorphiaQuery context) + +
+           
+ voidonDelete(Model context) + +
+           
+ voidonLoad(Model context) + +
+           
+ voidonUpdate(Model context) + +
+           
+ voidupdated(Model context) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MorphiaEvent.MorphiaEventHandlerAdaptor

+
+public MorphiaEvent.MorphiaEventHandlerAdaptor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+onLoad

+
+public void onLoad(Model context)
+
+
+
Specified by:
onLoad in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+loaded

+
+public void loaded(Model context)
+
+
+
Specified by:
loaded in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+onAdd

+
+public void onAdd(Model context)
+
+
+
Specified by:
onAdd in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+onUpdate

+
+public void onUpdate(Model context)
+
+
+
Specified by:
onUpdate in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+added

+
+public void added(Model context)
+
+
+
Specified by:
added in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+updated

+
+public void updated(Model context)
+
+
+
Specified by:
updated in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+onDelete

+
+public void onDelete(Model context)
+
+
+
Specified by:
onDelete in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+deleted

+
+public void deleted(Model context)
+
+
+
Specified by:
deleted in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+onBatchDelete

+
+public void onBatchDelete(Model.MorphiaQuery context)
+
+
+
Specified by:
onBatchDelete in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+
+ +

+batchDeleted

+
+public void batchDeleted(Model.MorphiaQuery context)
+
+
+
Specified by:
batchDeleted in interface MorphiaEvent.IMorphiaEventHandler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaEvent.html b/documentation/api/play/modules/morphia/MorphiaEvent.html index 203536e..9d4913a 100644 --- a/documentation/api/play/modules/morphia/MorphiaEvent.html +++ b/documentation/api/play/modules/morphia/MorphiaEvent.html @@ -1,589 +1,589 @@ - - - - - - -MorphiaEvent (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Enum MorphiaEvent

-
-java.lang.Object
-  extended by java.lang.Enum<MorphiaEvent>
-      extended by play.modules.morphia.MorphiaEvent
-
-
-
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MorphiaEvent>
-
-
-
-
public enum MorphiaEvent
extends java.lang.Enum<MorphiaEvent>
- - -

-


- -

- - - - - - - - - - - - - - - -
-Nested Class Summary
-static interfaceMorphiaEvent.IMorphiaEventHandler - -
-           
-static classMorphiaEvent.MorphiaEventHandlerAdaptor - -
-           
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Enum Constant Summary
ADDED - -
-           
BATCH_DELETED - -
-           
DELETED - -
-           
LOADED - -
-           
ON_ADD - -
-           
ON_BATCH_DELETE - -
-           
ON_DELETE - -
-           
ON_LOAD - -
-           
ON_UPDATE - -
-           
UPDATED - -
-           
- - - - - - - - - - -
-Field Summary
-static java.lang.StringPREFIX - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
-Method Summary
-static MorphiaEventforId(java.lang.String name) - -
-           
- java.lang.StringgetId() - -
-           
-abstract  voidinvokeOn(MorphiaEvent.IMorphiaEventHandler handler, - java.lang.Object context) - -
-           
-static voidmain(java.lang.String[] sa) - -
-           
-static MorphiaEventvalueOf(java.lang.String name) - -
-          Returns the enum constant of this type with the specified name.
-static MorphiaEvent[]values() - -
+ + + + + + +MorphiaEvent (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Enum MorphiaEvent

+
+java.lang.Object
+  extended by java.lang.Enum<MorphiaEvent>
+      extended by play.modules.morphia.MorphiaEvent
+
+
+
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MorphiaEvent>
+
+
+
+
public enum MorphiaEvent
extends java.lang.Enum<MorphiaEvent>
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static interfaceMorphiaEvent.IMorphiaEventHandler + +
+           
+static classMorphiaEvent.MorphiaEventHandlerAdaptor + +
+           
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Enum Constant Summary
ADDED + +
+           
BATCH_DELETED + +
+           
DELETED + +
+           
LOADED + +
+           
ON_ADD + +
+           
ON_BATCH_DELETE + +
+           
ON_DELETE + +
+           
ON_LOAD + +
+           
ON_UPDATE + +
+           
UPDATED + +
+           
+ + + + + + + + + + +
+Field Summary
+static java.lang.StringPREFIX + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
+Method Summary
+static MorphiaEventforId(java.lang.String name) + +
+           
+ java.lang.StringgetId() + +
+           
+abstract  voidinvokeOn(MorphiaEvent.IMorphiaEventHandler handler, + java.lang.Object context) + +
+           
+static voidmain(java.lang.String[] sa) + +
+           
+static MorphiaEventvalueOf(java.lang.String name) + +
+          Returns the enum constant of this type with the specified name.
+static MorphiaEvent[]values() + +
          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-ON_LOAD

-
-public static final MorphiaEvent ON_LOAD
-
-
-
-
-
- -

-LOADED

-
-public static final MorphiaEvent LOADED
-
-
-
-
-
- -

-ON_ADD

-
-public static final MorphiaEvent ON_ADD
-
-
-
-
-
- -

-ADDED

-
-public static final MorphiaEvent ADDED
-
-
-
-
-
- -

-ON_UPDATE

-
-public static final MorphiaEvent ON_UPDATE
-
-
-
-
-
- -

-UPDATED

-
-public static final MorphiaEvent UPDATED
-
-
-
-
-
- -

-ON_DELETE

-
-public static final MorphiaEvent ON_DELETE
-
-
-
-
-
- -

-DELETED

-
-public static final MorphiaEvent DELETED
-
-
-
-
-
- -

-ON_BATCH_DELETE

-
-public static final MorphiaEvent ON_BATCH_DELETE
-
-
-
-
-
- -

-BATCH_DELETED

-
-public static final MorphiaEvent BATCH_DELETED
-
-
-
-
- - - - - - - - -
-Field Detail
- -

-PREFIX

-
-public static final java.lang.String PREFIX
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static MorphiaEvent[] values()
-
+the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+ON_LOAD

+
+public static final MorphiaEvent ON_LOAD
+
+
+
+
+
+ +

+LOADED

+
+public static final MorphiaEvent LOADED
+
+
+
+
+
+ +

+ON_ADD

+
+public static final MorphiaEvent ON_ADD
+
+
+
+
+
+ +

+ADDED

+
+public static final MorphiaEvent ADDED
+
+
+
+
+
+ +

+ON_UPDATE

+
+public static final MorphiaEvent ON_UPDATE
+
+
+
+
+
+ +

+UPDATED

+
+public static final MorphiaEvent UPDATED
+
+
+
+
+
+ +

+ON_DELETE

+
+public static final MorphiaEvent ON_DELETE
+
+
+
+
+
+ +

+DELETED

+
+public static final MorphiaEvent DELETED
+
+
+
+
+
+ +

+ON_BATCH_DELETE

+
+public static final MorphiaEvent ON_BATCH_DELETE
+
+
+
+
+
+ +

+BATCH_DELETED

+
+public static final MorphiaEvent BATCH_DELETED
+
+
+
+
+ + + + + + + + +
+Field Detail
+ +

+PREFIX

+
+public static final java.lang.String PREFIX
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static MorphiaEvent[] values()
+
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
 for (MorphiaEvent c : MorphiaEvent.values())
     System.out.println(c);
-
-

-

- + +

+

+
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static MorphiaEvent valueOf(java.lang.String name)
-
+the order they are declared
+
+
+
+ +

+valueOf

+
+public static MorphiaEvent valueOf(java.lang.String name)
+
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant -with the specified name -
java.lang.NullPointerException - if the argument is null
-
-
-
- -

-getId

-
-public java.lang.String getId()
-
-
-
-
-
-
- -

-invokeOn

-
-public abstract void invokeOn(MorphiaEvent.IMorphiaEventHandler handler,
-                              java.lang.Object context)
-
-
-
-
-
-
- -

-forId

-
-public static MorphiaEvent forId(java.lang.String name)
-
-
-
-
-
-
- -

-main

-
-public static void main(java.lang.String[] sa)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - +with the specified name +
java.lang.NullPointerException - if the argument is null
+ + +
+ +

+getId

+
+public java.lang.String getId()
+
+
+
+
+
+
+ +

+invokeOn

+
+public abstract void invokeOn(MorphiaEvent.IMorphiaEventHandler handler,
+                              java.lang.Object context)
+
+
+
+
+
+
+ +

+forId

+
+public static MorphiaEvent forId(java.lang.String name)
+
+
+
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] sa)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaPlugin.IdType.html b/documentation/api/play/modules/morphia/MorphiaPlugin.IdType.html index 8f9fde1..00fc700 100644 --- a/documentation/api/play/modules/morphia/MorphiaPlugin.IdType.html +++ b/documentation/api/play/modules/morphia/MorphiaPlugin.IdType.html @@ -1,325 +1,325 @@ - - - - - - -MorphiaPlugin.IdType (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Enum MorphiaPlugin.IdType

-
-java.lang.Object
-  extended by java.lang.Enum<MorphiaPlugin.IdType>
-      extended by play.modules.morphia.MorphiaPlugin.IdType
-
-
-
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MorphiaPlugin.IdType>
-
-
-
Enclosing class:
MorphiaPlugin
-
-
-
-
public static enum MorphiaPlugin.IdType
extends java.lang.Enum<MorphiaPlugin.IdType>
- - -

-


- -

- - - - - - - - - - - - - -
-Enum Constant Summary
Long - -
-           
ObjectId - -
-           
-  - - - - - - - - - - - - - - + +
-Method Summary
-static MorphiaPlugin.IdTypevalueOf(java.lang.String name) - -
-          Returns the enum constant of this type with the specified name.
-static MorphiaPlugin.IdType[]values() - -
+ + + + + + +MorphiaPlugin.IdType (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Enum MorphiaPlugin.IdType

+
+java.lang.Object
+  extended by java.lang.Enum<MorphiaPlugin.IdType>
+      extended by play.modules.morphia.MorphiaPlugin.IdType
+
+
+
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MorphiaPlugin.IdType>
+
+
+
Enclosing class:
MorphiaPlugin
+
+
+
+
public static enum MorphiaPlugin.IdType
extends java.lang.Enum<MorphiaPlugin.IdType>
+ + +

+


+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
Long + +
+           
ObjectId + +
+           
+  + + + + + + + + + + + + + + - -
+Method Summary
+static MorphiaPlugin.IdTypevalueOf(java.lang.String name) + +
+          Returns the enum constant of this type with the specified name.
+static MorphiaPlugin.IdType[]values() + +
          Returns an array containing the constants of this enum type, in -the order they are declared.
- - - - - - - -
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- - - - - - - -
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-  -

- - - - - - - - -
-Enum Constant Detail
- -

-Long

-
-public static final MorphiaPlugin.IdType Long
-
-
-
-
-
- -

-ObjectId

-
-public static final MorphiaPlugin.IdType ObjectId
-
-
-
-
- - - - - - - - -
-Method Detail
- -

-values

-
-public static MorphiaPlugin.IdType[] values()
-
+the order they are declared.
+ + + + + + + +
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+ + + + + + + +
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Enum Constant Detail
+ +

+Long

+
+public static final MorphiaPlugin.IdType Long
+
+
+
+
+
+ +

+ObjectId

+
+public static final MorphiaPlugin.IdType ObjectId
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static MorphiaPlugin.IdType[] values()
+
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
 for (MorphiaPlugin.IdType c : MorphiaPlugin.IdType.values())
     System.out.println(c);
-
-

-

- + +

+

+
Returns:
an array containing the constants of this enum type, in -the order they are declared
-
-
-
- -

-valueOf

-
-public static MorphiaPlugin.IdType valueOf(java.lang.String name)
-
+the order they are declared
+
+
+
+ +

+valueOf

+
+public static MorphiaPlugin.IdType valueOf(java.lang.String name)
+
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are -not permitted.) -

-

-
Parameters:
name - the name of the enum constant to be returned. -
Returns:
the enum constant with the specified name -
Throws: +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant -with the specified name -
java.lang.NullPointerException - if the argument is null
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - +with the specified name +
java.lang.NullPointerException - if the argument is null
+ + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaPlugin.MorphiaModelLoader.html b/documentation/api/play/modules/morphia/MorphiaPlugin.MorphiaModelLoader.html index cba6f72..2220608 100644 --- a/documentation/api/play/modules/morphia/MorphiaPlugin.MorphiaModelLoader.html +++ b/documentation/api/play/modules/morphia/MorphiaPlugin.MorphiaModelLoader.html @@ -1,411 +1,411 @@ - - - - - - -MorphiaPlugin.MorphiaModelLoader (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class MorphiaPlugin.MorphiaModelLoader

-
-java.lang.Object
-  extended by play.modules.morphia.MorphiaPlugin.MorphiaModelLoader
-
-
-
Enclosing class:
MorphiaPlugin
-
-
-
-
public static class MorphiaPlugin.MorphiaModelLoader
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.Longcount(java.util.List<java.lang.String> searchFields, - java.lang.String keywords, - java.lang.String where) - -
-           
- voiddeleteAll() - -
-           
- java.util.List<play.db.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) - -
-           
- ModelfindById(java.lang.Object id) - -
-           
-static play.modules.morphia.Model.FactorygetFactory(java.lang.Class<? extends Model> clazz) - -
-           
- java.lang.StringkeyName() - -
-           
- java.lang.Class<?>keyType() - -
-           
- java.lang.ObjectkeyValue(play.db.Model m) - -
-           
- java.util.List<play.modules.morphia.Model.Property>listProperties() - -
-           
-static voidprocessWhere( q, - java.lang.String where) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Method Detail
- -

-getFactory

-
-public static play.modules.morphia.Model.Factory getFactory(java.lang.Class<? extends Model> clazz)
-
-
-
-
-
-
- -

-findById

-
-public Model findById(java.lang.Object id)
-
-
-
-
-
-
- -

-fetch

-
-public java.util.List<play.db.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)
-
-
-
-
-
-
- -

-count

-
-public java.lang.Long count(java.util.List<java.lang.String> searchFields,
-                            java.lang.String keywords,
-                            java.lang.String where)
-
-
-
-
-
-
- -

-processWhere

-
-public static void processWhere( q,
-                                java.lang.String where)
-
-
-
-
-
-
- -

-deleteAll

-
-public void deleteAll()
-
-
-
-
-
-
- -

-listProperties

-
-public java.util.List<play.modules.morphia.Model.Property> listProperties()
-
-
-
-
-
-
- -

-keyName

-
-public java.lang.String keyName()
-
-
-
-
-
-
- -

-keyType

-
-public java.lang.Class<?> keyType()
-
-
-
-
-
-
- -

-keyValue

-
-public java.lang.Object keyValue(play.db.Model m)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +MorphiaPlugin.MorphiaModelLoader (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class MorphiaPlugin.MorphiaModelLoader

+
+java.lang.Object
+  extended by play.modules.morphia.MorphiaPlugin.MorphiaModelLoader
+
+
+
Enclosing class:
MorphiaPlugin
+
+
+
+
public static class MorphiaPlugin.MorphiaModelLoader
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.Longcount(java.util.List<java.lang.String> searchFields, + java.lang.String keywords, + java.lang.String where) + +
+           
+ voiddeleteAll() + +
+           
+ java.util.List<play.db.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) + +
+           
+ ModelfindById(java.lang.Object id) + +
+           
+static play.modules.morphia.Model.FactorygetFactory(java.lang.Class<? extends Model> clazz) + +
+           
+ java.lang.StringkeyName() + +
+           
+ java.lang.Class<?>keyType() + +
+           
+ java.lang.ObjectkeyValue(play.db.Model m) + +
+           
+ java.util.List<play.modules.morphia.Model.Property>listProperties() + +
+           
+static voidprocessWhere( q, + java.lang.String where) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getFactory

+
+public static play.modules.morphia.Model.Factory getFactory(java.lang.Class<? extends Model> clazz)
+
+
+
+
+
+
+ +

+findById

+
+public Model findById(java.lang.Object id)
+
+
+
+
+
+
+ +

+fetch

+
+public java.util.List<play.db.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)
+
+
+
+
+
+
+ +

+count

+
+public java.lang.Long count(java.util.List<java.lang.String> searchFields,
+                            java.lang.String keywords,
+                            java.lang.String where)
+
+
+
+
+
+
+ +

+processWhere

+
+public static void processWhere( q,
+                                java.lang.String where)
+
+
+
+
+
+
+ +

+deleteAll

+
+public void deleteAll()
+
+
+
+
+
+
+ +

+listProperties

+
+public java.util.List<play.modules.morphia.Model.Property> listProperties()
+
+
+
+
+
+
+ +

+keyName

+
+public java.lang.String keyName()
+
+
+
+
+
+
+ +

+keyType

+
+public java.lang.Class<?> keyType()
+
+
+
+
+
+
+ +

+keyValue

+
+public java.lang.Object keyValue(play.db.Model m)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/MorphiaPlugin.html b/documentation/api/play/modules/morphia/MorphiaPlugin.html index 1a1241c..59d17e2 100644 --- a/documentation/api/play/modules/morphia/MorphiaPlugin.html +++ b/documentation/api/play/modules/morphia/MorphiaPlugin.html @@ -1,1003 +1,1043 @@ - - - - - - -MorphiaPlugin (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Class MorphiaPlugin

-
-java.lang.Object
-  extended by PlayPlugin
-      extended by play.modules.morphia.MorphiaPlugin
-
-
-
-
public class MorphiaPlugin
extends PlayPlugin
- - -

-The plugin for the Morphia module. -

- -

-

-
Author:
-
greenlaw110@gmail.com
-
-
- -

- - - - - - - - - - - - - - - -
-Nested Class Summary
-static classMorphiaPlugin.IdType - -
-           
-static classMorphiaPlugin.MorphiaModelLoader - -
-           
- - - - - - - - - - - - - - -
-Field Summary
-static java.lang.StringPREFIX - -
-           
-static java.lang.StringVERSION - -
-           
-  - - - - - - - - - - -
-Constructor Summary
MorphiaPlugin() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- java.lang.Objectbind(java.lang.String name, - java.lang.Class clazz, - java.lang.reflect.Type type, - java.lang.annotation.Annotation[] annotations, - java.util.Map<java.lang.String,java.lang.String[]> params) - -
-           
- java.lang.Objectbind(java.lang.String name, - java.lang.Object o, - java.util.Map<java.lang.String,java.lang.String[]> params) - -
-           
-static voidclearAllModelEventHandler() - -
-           
-static voidclearGlobalEventHandler() - -
-           
-static voidclearModelEventHandler(java.lang.Class<? extends Model> model) - -
-           
-static booleanconfigured() - -
-           
-static voiddebug(java.lang.String msg, - java.lang.Object... args) - -
-           
-static voiddebug(java.lang.Throwable t, - java.lang.String msg, - java.lang.Object... args) - -
-           
-static Datastoreds() - -
-           
-static Datastoreds(java.lang.String dbName) - -
-           
- voidenhance(ApplicationClass applicationClass) - -
-           
-static voiderror(java.lang.String msg, - java.lang.Object... args) - -
-           
-static voiderror(java.lang.Throwable t, - java.lang.String msg, - java.lang.Object... args) - -
-           
-static voidfatal(java.lang.String msg, - java.lang.Object... args) - -
-           
-static voidfatal(java.lang.Throwable t, - java.lang.String msg, - java.lang.Object... args) - -
-           
-static MorphiaPlugin.IdTypegetIdType() - -
-           
-static GridFSgridFs() - -
-           
-static voidinfo(java.lang.String msg, - java.lang.Object... args) - -
-           
-static voidinfo(java.lang.Throwable t, - java.lang.String msg, - java.lang.Object... args) - -
-           
-static booleanloggerRegistered() - -
-           
- play.modules.morphia.Model.FactorymodelFactory(java.lang.Class<? extends play.db.Model> modelClass) - -
-           
-static Morphiamorphia() - -
-           
- voidonApplicationStart() - -
-           
- voidonConfigurationRead() - -
-           
- voidonInvocationException(java.lang.Throwable e) - -
-           
-static voidregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidregisterModelEventHandler(java.lang.Class<? extends Model> model, - MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidtrace(java.lang.String msg, - java.lang.Object... args) - -
-           
-static voidtrace(java.lang.Throwable t, - java.lang.String msg, - java.lang.Object... args) - -
-           
-static voidunregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidunregisterModelEventHandler(java.lang.Class<? extends Model> model, - MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidwarn(java.lang.String msg, - java.lang.Object... args) - -
-           
-static voidwarn(java.lang.Throwable t, - java.lang.String msg, - java.lang.Object... args) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-VERSION

-
-public static final java.lang.String VERSION
-
-
-
See Also:
Constant Field Values
-
-
- -

-PREFIX

-
-public static final java.lang.String PREFIX
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Constructor Detail
- -

-MorphiaPlugin

-
-public MorphiaPlugin()
-
-
- - - - - - - - -
-Method Detail
- -

-info

-
-public static void info(java.lang.String msg,
-                        java.lang.Object... args)
-
-
-
-
-
-
- -

-info

-
-public static void info(java.lang.Throwable t,
-                        java.lang.String msg,
-                        java.lang.Object... args)
-
-
-
-
-
-
- -

-debug

-
-public static void debug(java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-debug

-
-public static void debug(java.lang.Throwable t,
-                         java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-trace

-
-public static void trace(java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-trace

-
-public static void trace(java.lang.Throwable t,
-                         java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-warn

-
-public static void warn(java.lang.String msg,
-                        java.lang.Object... args)
-
-
-
-
-
-
- -

-warn

-
-public static void warn(java.lang.Throwable t,
-                        java.lang.String msg,
-                        java.lang.Object... args)
-
-
-
-
-
-
- -

-error

-
-public static void error(java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-error

-
-public static void error(java.lang.Throwable t,
-                         java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-fatal

-
-public static void fatal(java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-fatal

-
-public static void fatal(java.lang.Throwable t,
-                         java.lang.String msg,
-                         java.lang.Object... args)
-
-
-
-
-
-
- -

-loggerRegistered

-
-public static boolean loggerRegistered()
-
-
-
-
-
-
- -

-configured

-
-public static boolean configured()
-
-
-
-
-
-
- -

-getIdType

-
-public static MorphiaPlugin.IdType getIdType()
-
-
-
-
-
-
- -

-ds

-
-public static Datastore ds()
-
-
-
-
-
-
- -

-gridFs

-
-public static GridFS gridFs()
-
-
-
-
-
-
- -

-ds

-
-public static Datastore ds(java.lang.String dbName)
-
-
-
-
-
-
- -

-morphia

-
-public static Morphia morphia()
-
-
-
-
-
-
- -

-enhance

-
-public void enhance(ApplicationClass applicationClass)
-             throws java.lang.Exception
-
-
- -
Throws: -
java.lang.Exception
-
-
-
- -

-registerGlobalEventHandler

-
-public static void registerGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler)
-
-
-
-
-
-
- -

-unregisterGlobalEventHandler

-
-public static void unregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler)
-
-
-
-
-
-
- -

-clearGlobalEventHandler

-
-public static void clearGlobalEventHandler()
-
-
-
-
-
-
- -

-registerModelEventHandler

-
-public static void registerModelEventHandler(java.lang.Class<? extends Model> model,
-                                             MorphiaEvent.IMorphiaEventHandler handler)
-
-
-
-
-
-
- -

-unregisterModelEventHandler

-
-public static void unregisterModelEventHandler(java.lang.Class<? extends Model> model,
-                                               MorphiaEvent.IMorphiaEventHandler handler)
-
-
-
-
-
-
- -

-clearModelEventHandler

-
-public static void clearModelEventHandler(java.lang.Class<? extends Model> model)
-
-
-
-
-
-
- -

-clearAllModelEventHandler

-
-public static void clearAllModelEventHandler()
-
-
-
-
-
-
- -

-onConfigurationRead

-
-public void onConfigurationRead()
-
-
-
-
-
-
- -

-onApplicationStart

-
-public void onApplicationStart()
-
-
-
-
-
-
- -

-onInvocationException

-
-public void onInvocationException(java.lang.Throwable e)
-
-
-
-
-
-
- -

-bind

-
-public java.lang.Object bind(java.lang.String name,
-                             java.lang.Class clazz,
-                             java.lang.reflect.Type type,
-                             java.lang.annotation.Annotation[] annotations,
-                             java.util.Map<java.lang.String,java.lang.String[]> params)
-
-
-
-
-
-
- -

-bind

-
-public java.lang.Object bind(java.lang.String name,
-                             java.lang.Object o,
-                             java.util.Map<java.lang.String,java.lang.String[]> params)
-
-
-
-
-
-
- -

-modelFactory

-
-public play.modules.morphia.Model.Factory modelFactory(java.lang.Class<? extends play.db.Model> modelClass)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +MorphiaPlugin (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Class MorphiaPlugin

+
+java.lang.Object
+  extended by PlayPlugin
+      extended by play.modules.morphia.MorphiaPlugin
+
+
+
+
public class MorphiaPlugin
extends PlayPlugin
+ + +

+The plugin for the Morphia module. +

+ +

+

+
Author:
+
greenlaw110@gmail.com
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classMorphiaPlugin.IdType + +
+           
+static classMorphiaPlugin.MorphiaModelLoader + +
+           
+ + + + + + + + + + + + + + + + + + +
+Field Summary
+static java.lang.StringDEFAULT_DS_NAME + +
+           
+static java.lang.StringPREFIX + +
+           
+static java.lang.StringVERSION + +
+           
+  + + + + + + + + + + +
+Constructor Summary
MorphiaPlugin() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.Objectbind(java.lang.String name, + java.lang.Class clazz, + java.lang.reflect.Type type, + java.lang.annotation.Annotation[] annotations, + java.util.Map<java.lang.String,java.lang.String[]> params) + +
+           
+ java.lang.Objectbind(java.lang.String name, + java.lang.Object o, + java.util.Map<java.lang.String,java.lang.String[]> params) + +
+           
+static voidclearAllModelEventHandler() + +
+           
+static voidclearGlobalEventHandler() + +
+           
+static voidclearModelEventHandler(java.lang.Class<? extends Model> model) + +
+           
+static booleanconfigured() + +
+           
+static voiddebug(java.lang.String msg, + java.lang.Object... args) + +
+           
+static voiddebug(java.lang.Throwable t, + java.lang.String msg, + java.lang.Object... args) + +
+           
+static Datastoreds() + +
+          Deprecated. 
+static Datastoreds(java.lang.String datasourceName) + +
+           
+ voidenhance(ApplicationClass applicationClass) + +
+           
+static voiderror(java.lang.String msg, + java.lang.Object... args) + +
+           
+static voiderror(java.lang.Throwable t, + java.lang.String msg, + java.lang.Object... args) + +
+           
+static voidfatal(java.lang.String msg, + java.lang.Object... args) + +
+           
+static voidfatal(java.lang.Throwable t, + java.lang.String msg, + java.lang.Object... args) + +
+           
+static java.lang.StringgetDatasourceNameFromAnnotation(java.lang.Class clazz) + +
+           
+static MorphiaPlugin.IdTypegetIdType() + +
+           
+static GridFSgridFs() + +
+           
+static voidinfo(java.lang.String msg, + java.lang.Object... args) + +
+           
+static voidinfo(java.lang.Throwable t, + java.lang.String msg, + java.lang.Object... args) + +
+           
+static booleanloggerRegistered() + +
+           
+ play.modules.morphia.Model.FactorymodelFactory(java.lang.Class<? extends play.db.Model> modelClass) + +
+           
+static Morphiamorphia(java.lang.String dsName) + +
+           
+ voidonApplicationStart() + +
+           
+ voidonConfigurationRead() + +
+           
+ voidonInvocationException(java.lang.Throwable e) + +
+           
+static voidregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidregisterModelEventHandler(java.lang.Class<? extends Model> model, + MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidtrace(java.lang.String msg, + java.lang.Object... args) + +
+           
+static voidtrace(java.lang.Throwable t, + java.lang.String msg, + java.lang.Object... args) + +
+           
+static voidunregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidunregisterModelEventHandler(java.lang.Class<? extends Model> model, + MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidwarn(java.lang.String msg, + java.lang.Object... args) + +
+           
+static voidwarn(java.lang.Throwable t, + java.lang.String msg, + java.lang.Object... args) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+VERSION

+
+public static final java.lang.String VERSION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PREFIX

+
+public static final java.lang.String PREFIX
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_DS_NAME

+
+public static final java.lang.String DEFAULT_DS_NAME
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+MorphiaPlugin

+
+public MorphiaPlugin()
+
+
+ + + + + + + + +
+Method Detail
+ +

+info

+
+public static void info(java.lang.String msg,
+                        java.lang.Object... args)
+
+
+
+
+
+
+ +

+info

+
+public static void info(java.lang.Throwable t,
+                        java.lang.String msg,
+                        java.lang.Object... args)
+
+
+
+
+
+
+ +

+debug

+
+public static void debug(java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+debug

+
+public static void debug(java.lang.Throwable t,
+                         java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+trace

+
+public static void trace(java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+trace

+
+public static void trace(java.lang.Throwable t,
+                         java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+warn

+
+public static void warn(java.lang.String msg,
+                        java.lang.Object... args)
+
+
+
+
+
+
+ +

+warn

+
+public static void warn(java.lang.Throwable t,
+                        java.lang.String msg,
+                        java.lang.Object... args)
+
+
+
+
+
+
+ +

+error

+
+public static void error(java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+error

+
+public static void error(java.lang.Throwable t,
+                         java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+fatal

+
+public static void fatal(java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+fatal

+
+public static void fatal(java.lang.Throwable t,
+                         java.lang.String msg,
+                         java.lang.Object... args)
+
+
+
+
+
+
+ +

+loggerRegistered

+
+public static boolean loggerRegistered()
+
+
+
+
+
+
+ +

+configured

+
+public static boolean configured()
+
+
+
+
+
+
+ +

+getIdType

+
+public static MorphiaPlugin.IdType getIdType()
+
+
+
+
+
+
+ +

+ds

+
+@Deprecated
+public static Datastore ds()
+
+
Deprecated.  +

+

+
+
+
+
+ +

+ds

+
+public static Datastore ds(java.lang.String datasourceName)
+
+
+
+
+
+
+ +

+gridFs

+
+public static GridFS gridFs()
+
+
+
+
+
+
+ +

+morphia

+
+public static Morphia morphia(java.lang.String dsName)
+
+
+
+
+
+
+ +

+enhance

+
+public void enhance(ApplicationClass applicationClass)
+             throws java.lang.Exception
+
+
+ +
Throws: +
java.lang.Exception
+
+
+
+ +

+registerGlobalEventHandler

+
+public static void registerGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler)
+
+
+
+
+
+
+ +

+unregisterGlobalEventHandler

+
+public static void unregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler)
+
+
+
+
+
+
+ +

+clearGlobalEventHandler

+
+public static void clearGlobalEventHandler()
+
+
+
+
+
+
+ +

+registerModelEventHandler

+
+public static void registerModelEventHandler(java.lang.Class<? extends Model> model,
+                                             MorphiaEvent.IMorphiaEventHandler handler)
+
+
+
+
+
+
+ +

+unregisterModelEventHandler

+
+public static void unregisterModelEventHandler(java.lang.Class<? extends Model> model,
+                                               MorphiaEvent.IMorphiaEventHandler handler)
+
+
+
+
+
+
+ +

+clearModelEventHandler

+
+public static void clearModelEventHandler(java.lang.Class<? extends Model> model)
+
+
+
+
+
+
+ +

+clearAllModelEventHandler

+
+public static void clearAllModelEventHandler()
+
+
+
+
+
+
+ +

+onConfigurationRead

+
+public void onConfigurationRead()
+
+
+
+
+
+
+ +

+onApplicationStart

+
+public void onApplicationStart()
+
+
+
+
+
+
+ +

+onInvocationException

+
+public void onInvocationException(java.lang.Throwable e)
+
+
+
+
+
+
+ +

+bind

+
+public java.lang.Object bind(java.lang.String name,
+                             java.lang.Class clazz,
+                             java.lang.reflect.Type type,
+                             java.lang.annotation.Annotation[] annotations,
+                             java.util.Map<java.lang.String,java.lang.String[]> params)
+
+
+
+
+
+
+ +

+bind

+
+public java.lang.Object bind(java.lang.String name,
+                             java.lang.Object o,
+                             java.util.Map<java.lang.String,java.lang.String[]> params)
+
+
+
+
+
+
+ +

+getDatasourceNameFromAnnotation

+
+public static java.lang.String getDatasourceNameFromAnnotation(java.lang.Class clazz)
+
+
+
+
+
+
+ +

+modelFactory

+
+public play.modules.morphia.Model.Factory modelFactory(java.lang.Class<? extends play.db.Model> modelClass)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/Watch.html b/documentation/api/play/modules/morphia/Watch.html index 4d778b9..073c686 100644 --- a/documentation/api/play/modules/morphia/Watch.html +++ b/documentation/api/play/modules/morphia/Watch.html @@ -1,201 +1,201 @@ - - - - - - -Watch (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type Watch

-
-
-
@Retention(value=RUNTIME)
-@Target(value=TYPE)
-public @interface Watch
- - -

-


- -

- - - - - - - - - - - -
-Optional Element Summary
- java.lang.Class<?>[]value - -
-           
-  -

-

-value

-
-public abstract java.lang.Class<?>[] value
-
-
-
-
-
-
-
-
Default:
play.modules.morphia.Model.class
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Watch (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type Watch

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+public @interface Watch
+ + +

+


+ +

+ + + + + + + + + + + +
+Optional Element Summary
+ java.lang.Class<?>[]value + +
+           
+  +

+

+value

+
+public abstract java.lang.Class<?>[] value
+
+
+
+
+
+
+
+
Default:
play.modules.morphia.Model.class
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/WatchBy.html b/documentation/api/play/modules/morphia/WatchBy.html index afb3f90..8a334c0 100644 --- a/documentation/api/play/modules/morphia/WatchBy.html +++ b/documentation/api/play/modules/morphia/WatchBy.html @@ -1,201 +1,201 @@ - - - - - - -WatchBy (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia -
-Annotation Type WatchBy

-
-
-
@Retention(value=RUNTIME)
-@Target(value=TYPE)
-public @interface WatchBy
- - -

-


- -

- - - - - - - - - - - -
-Optional Element Summary
- java.lang.Class<?>[]value - -
-           
-  -

-

-value

-
-public abstract java.lang.Class<?>[] value
-
-
-
-
-
-
-
-
Default:
{}
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +WatchBy (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia +
+Annotation Type WatchBy

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+public @interface WatchBy
+ + +

+


+ +

+ + + + + + + + + + + +
+Optional Element Summary
+ java.lang.Class<?>[]value + +
+           
+  +

+

+value

+
+public abstract java.lang.Class<?>[] value
+
+
+
+
+
+
+
+
Default:
{}
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/AggregationResult.html b/documentation/api/play/modules/morphia/class-use/AggregationResult.html index fbb6c71..6998d64 100644 --- a/documentation/api/play/modules/morphia/class-use/AggregationResult.html +++ b/documentation/api/play/modules/morphia/class-use/AggregationResult.html @@ -1,262 +1,262 @@ - - - - - - -Uses of Class play.modules.morphia.AggregationResult (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.AggregationResult

-
- - - - - - - - - -
-Packages that use AggregationResult
play.modules.morphia  
-  -

- - - - - -
-Uses of AggregationResult in play.modules.morphia
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia that return AggregationResult
-static AggregationResultModel.groupAverage(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultModel.MorphiaQuery.groupAverage(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultModel.groupCount(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultModel.MorphiaQuery.groupCount(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultModel.groupMax(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultModel.MorphiaQuery.groupMax(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultModel.groupMin(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultModel.MorphiaQuery.groupMin(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-static AggregationResultModel.groupSum(java.lang.String field, - java.lang.String... groupKeys) - -
-           
- AggregationResultModel.MorphiaQuery.groupSum(java.lang.String field, - java.lang.String... groupKeys) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.AggregationResult (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.AggregationResult

+
+ + + + + + + + + +
+Packages that use AggregationResult
play.modules.morphia  
+  +

+ + + + + +
+Uses of AggregationResult in play.modules.morphia
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia that return AggregationResult
+static AggregationResultModel.groupAverage(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultModel.MorphiaQuery.groupAverage(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultModel.groupCount(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultModel.MorphiaQuery.groupCount(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultModel.groupMax(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultModel.MorphiaQuery.groupMax(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultModel.groupMin(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultModel.MorphiaQuery.groupMin(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+static AggregationResultModel.groupSum(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+ AggregationResultModel.MorphiaQuery.groupSum(java.lang.String field, + java.lang.String... groupKeys) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Blob.html b/documentation/api/play/modules/morphia/class-use/Blob.html index 473e970..72d1ad7 100644 --- a/documentation/api/play/modules/morphia/class-use/Blob.html +++ b/documentation/api/play/modules/morphia/class-use/Blob.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Blob (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Blob

-
-No usage of play.modules.morphia.Blob -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Blob (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Blob

+
+No usage of play.modules.morphia.Blob +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.Added.html b/documentation/api/play/modules/morphia/class-use/Model.Added.html index 31f6272..44a1a27 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.Added.html +++ b/documentation/api/play/modules/morphia/class-use/Model.Added.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.Added (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.Added

-
-No usage of play.modules.morphia.Model.Added -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.Added (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.Added

+
+No usage of play.modules.morphia.Model.Added +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.AutoTimestamp.html b/documentation/api/play/modules/morphia/class-use/Model.AutoTimestamp.html index c3db3f3..2880cbb 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.AutoTimestamp.html +++ b/documentation/api/play/modules/morphia/class-use/Model.AutoTimestamp.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.AutoTimestamp (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.AutoTimestamp

-
-No usage of play.modules.morphia.Model.AutoTimestamp -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.AutoTimestamp (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.AutoTimestamp

+
+No usage of play.modules.morphia.Model.AutoTimestamp +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.BatchDeleted.html b/documentation/api/play/modules/morphia/class-use/Model.BatchDeleted.html index 6beb13a..ba01b6a 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.BatchDeleted.html +++ b/documentation/api/play/modules/morphia/class-use/Model.BatchDeleted.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.BatchDeleted (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.BatchDeleted

-
-No usage of play.modules.morphia.Model.BatchDeleted -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.BatchDeleted (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.BatchDeleted

+
+No usage of play.modules.morphia.Model.BatchDeleted +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.ByPass.html b/documentation/api/play/modules/morphia/class-use/Model.ByPass.html index 61f86f6..bc4e98f 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.ByPass.html +++ b/documentation/api/play/modules/morphia/class-use/Model.ByPass.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.ByPass (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.ByPass

-
-No usage of play.modules.morphia.Model.ByPass -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.ByPass (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.ByPass

+
+No usage of play.modules.morphia.Model.ByPass +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.Column.html b/documentation/api/play/modules/morphia/class-use/Model.Column.html index 93cc655..76ed97f 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.Column.html +++ b/documentation/api/play/modules/morphia/class-use/Model.Column.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.Column (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.Column

-
-No usage of play.modules.morphia.Model.Column -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.Column (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.Column

+
+No usage of play.modules.morphia.Model.Column +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.Datasource.html b/documentation/api/play/modules/morphia/class-use/Model.Datasource.html new file mode 100644 index 0000000..39a1914 --- /dev/null +++ b/documentation/api/play/modules/morphia/class-use/Model.Datasource.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class play.modules.morphia.Model.Datasource (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.Datasource

+
+No usage of play.modules.morphia.Model.Datasource +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.Deleted.html b/documentation/api/play/modules/morphia/class-use/Model.Deleted.html index 02369d3..8845650 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.Deleted.html +++ b/documentation/api/play/modules/morphia/class-use/Model.Deleted.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.Deleted (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.Deleted

-
-No usage of play.modules.morphia.Model.Deleted -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.Deleted (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.Deleted

+
+No usage of play.modules.morphia.Model.Deleted +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.Loaded.html b/documentation/api/play/modules/morphia/class-use/Model.Loaded.html index 2362365..002c8c5 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.Loaded.html +++ b/documentation/api/play/modules/morphia/class-use/Model.Loaded.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.Loaded (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.Loaded

-
-No usage of play.modules.morphia.Model.Loaded -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.Loaded (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.Loaded

+
+No usage of play.modules.morphia.Model.Loaded +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.MorphiaQuery.html b/documentation/api/play/modules/morphia/class-use/Model.MorphiaQuery.html index dd648f6..4c7fbde 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.MorphiaQuery.html +++ b/documentation/api/play/modules/morphia/class-use/Model.MorphiaQuery.html @@ -1,766 +1,766 @@ - - - - - - -Uses of Class play.modules.morphia.Model.MorphiaQuery (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.MorphiaQuery

-
- - - - - - - - - -
-Packages that use Model.MorphiaQuery
play.modules.morphia  
-  -

- - - - - -
-Uses of Model.MorphiaQuery in play.modules.morphia
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia that return Model.MorphiaQuery
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.all() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.batchSize(int value) - -
-           
- Model.MorphiaQueryModel.MorphiaQuery.clone() - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.createQuery() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableCursorTimeout() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableSnapshotMode() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableTimeout() - -
-          Deprecated. 
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.disableValidation() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableValidation() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableCursorTimeout() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableSnapshotMode() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableTimeout() - -
-          Deprecated. 
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableValidation() - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.filter(java.lang.String property, - java.lang.Object value) - -
-          Morphia style filter method.
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.filter(java.lang.String condition, - java.lang.Object value) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.find() - -
-          Shortcut to createQuery()
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.find(java.lang.String keys, - java.lang.Object... params) - -
-          JPA style find method
- Model.MorphiaQueryModel.MorphiaQuery.findBy(java.lang.String query, - java.lang.Object... params) - -
-          Used to simulate JPA.find("byXXAndYY", ...);
- - - - - -
-<T> Model.MorphiaQuery
-
Model.MorphiaQuery.from(int position) - -
-          Set the position to start
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.hintIndex(java.lang.String idxName) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.limit(int value) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.offset(int value) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.order(java.lang.String condition) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.q() - -
-          Shortcut to createQuery
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.q(java.lang.String keys, - java.lang.Object value) - -
-          Shortcut to find(String, Object...)
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.queryNonPrimary() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.queryPrimaryOnly() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.retrievedFields(boolean include, - java.lang.String... fields) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.skip(int value) - -
-          Deprecated. 
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.where(CodeWScope js) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.where(java.lang.String js) - -
-           
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia with parameters of type Model.MorphiaQuery
- voidMorphiaEvent.IMorphiaEventHandler.batchDeleted(Model.MorphiaQuery context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.batchDeleted(Model.MorphiaQuery context) - -
-           
-static longModel.delete(Model.MorphiaQuery query) - -
-           
-protected  voidModel.deleteBlobsInBatch(Model.MorphiaQuery q) - -
-           
-protected  voidModel.h_BatchDeleted(Model.MorphiaQuery q) - -
-           
-protected  voidModel.h_OnBatchDelete(Model.MorphiaQuery q) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.onBatchDelete(Model.MorphiaQuery context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.onBatchDelete(Model.MorphiaQuery context) - -
-           
-static voidModel.removeGridFSFiles(Model.MorphiaQuery q, - java.lang.String... fieldNames) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.MorphiaQuery (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.MorphiaQuery

+
+ + + + + + + + + +
+Packages that use Model.MorphiaQuery
play.modules.morphia  
+  +

+ + + + + +
+Uses of Model.MorphiaQuery in play.modules.morphia
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia that return Model.MorphiaQuery
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.all() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.batchSize(int value) + +
+           
+ Model.MorphiaQueryModel.MorphiaQuery.clone() + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.createQuery() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableCursorTimeout() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableSnapshotMode() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableTimeout() + +
+          Deprecated. 
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.disableValidation() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableValidation() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableCursorTimeout() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableSnapshotMode() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableTimeout() + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableValidation() + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.filter(java.lang.String property, + java.lang.Object value) + +
+          Morphia style filter method.
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.filter(java.lang.String condition, + java.lang.Object value) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.find() + +
+          Shortcut to createQuery()
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.find(java.lang.String keys, + java.lang.Object... params) + +
+          JPA style find method
+ Model.MorphiaQueryModel.MorphiaQuery.findBy(java.lang.String query, + java.lang.Object... params) + +
+          Used to simulate JPA.find("byXXAndYY", ...);
+ + + + + +
+<T> Model.MorphiaQuery
+
Model.MorphiaQuery.from(int position) + +
+          Set the position to start
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.hintIndex(java.lang.String idxName) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.limit(int value) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.offset(int value) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.order(java.lang.String condition) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.q() + +
+          Shortcut to createQuery
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.q(java.lang.String keys, + java.lang.Object value) + +
+          Shortcut to find(String, Object...)
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.queryNonPrimary() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.queryPrimaryOnly() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.retrievedFields(boolean include, + java.lang.String... fields) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.skip(int value) + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.where(CodeWScope js) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.where(java.lang.String js) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia with parameters of type Model.MorphiaQuery
+ voidMorphiaEvent.IMorphiaEventHandler.batchDeleted(Model.MorphiaQuery context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.batchDeleted(Model.MorphiaQuery context) + +
+           
+static longModel.delete(Model.MorphiaQuery query) + +
+           
+protected  voidModel.deleteBlobsInBatch(Model.MorphiaQuery q) + +
+           
+protected  voidModel.h_BatchDeleted(Model.MorphiaQuery q) + +
+           
+protected  voidModel.h_OnBatchDelete(Model.MorphiaQuery q) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.onBatchDelete(Model.MorphiaQuery context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.onBatchDelete(Model.MorphiaQuery context) + +
+           
+static voidModel.removeGridFSFiles(Model.MorphiaQuery q, + java.lang.String... fieldNames) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.NoId.html b/documentation/api/play/modules/morphia/class-use/Model.NoId.html index 3d51abe..724c049 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.NoId.html +++ b/documentation/api/play/modules/morphia/class-use/Model.NoId.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.NoId (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.NoId

-
-No usage of play.modules.morphia.Model.NoId -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.NoId (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.NoId

+
+No usage of play.modules.morphia.Model.NoId +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.OnAdd.html b/documentation/api/play/modules/morphia/class-use/Model.OnAdd.html index bbd64ea..d530144 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.OnAdd.html +++ b/documentation/api/play/modules/morphia/class-use/Model.OnAdd.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.OnAdd (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.OnAdd

-
-No usage of play.modules.morphia.Model.OnAdd -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.OnAdd (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.OnAdd

+
+No usage of play.modules.morphia.Model.OnAdd +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.OnBatchDelete.html b/documentation/api/play/modules/morphia/class-use/Model.OnBatchDelete.html index 06d88c1..74e20c3 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.OnBatchDelete.html +++ b/documentation/api/play/modules/morphia/class-use/Model.OnBatchDelete.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.OnBatchDelete (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.OnBatchDelete

-
-No usage of play.modules.morphia.Model.OnBatchDelete -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.OnBatchDelete (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.OnBatchDelete

+
+No usage of play.modules.morphia.Model.OnBatchDelete +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.OnDelete.html b/documentation/api/play/modules/morphia/class-use/Model.OnDelete.html index 6f5c85b..4a631c6 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.OnDelete.html +++ b/documentation/api/play/modules/morphia/class-use/Model.OnDelete.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.OnDelete (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.OnDelete

-
-No usage of play.modules.morphia.Model.OnDelete -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.OnDelete (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.OnDelete

+
+No usage of play.modules.morphia.Model.OnDelete +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.OnLoad.html b/documentation/api/play/modules/morphia/class-use/Model.OnLoad.html index 9682deb..b9fa241 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.OnLoad.html +++ b/documentation/api/play/modules/morphia/class-use/Model.OnLoad.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.OnLoad (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.OnLoad

-
-No usage of play.modules.morphia.Model.OnLoad -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.OnLoad (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.OnLoad

+
+No usage of play.modules.morphia.Model.OnLoad +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.OnUpdate.html b/documentation/api/play/modules/morphia/class-use/Model.OnUpdate.html index 84a8cec..5753051 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.OnUpdate.html +++ b/documentation/api/play/modules/morphia/class-use/Model.OnUpdate.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.OnUpdate (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.OnUpdate

-
-No usage of play.modules.morphia.Model.OnUpdate -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.OnUpdate (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.OnUpdate

+
+No usage of play.modules.morphia.Model.OnUpdate +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.Updated.html b/documentation/api/play/modules/morphia/class-use/Model.Updated.html index d981c6f..d1dbbd4 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.Updated.html +++ b/documentation/api/play/modules/morphia/class-use/Model.Updated.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Model.Updated (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model.Updated

-
-No usage of play.modules.morphia.Model.Updated -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Model.Updated (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model.Updated

+
+No usage of play.modules.morphia.Model.Updated +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Model.html b/documentation/api/play/modules/morphia/class-use/Model.html index c30b12c..586eb75 100644 --- a/documentation/api/play/modules/morphia/class-use/Model.html +++ b/documentation/api/play/modules/morphia/class-use/Model.html @@ -1,1436 +1,1436 @@ - - - - - - -Uses of Class play.modules.morphia.Model (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Model

-
- - - - - - - - - - - - - -
-Packages that use Model
play.modules.morphia  
play.modules.morphia.utils  
-  -

- - - - - -
-Uses of Model in play.modules.morphia
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia with type parameters of type Model
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.all() - -
-           
- - - - - -
-<T extends Model> -
-CriteriaContainer
-
Model.MorphiaQuery.and(Criteria... criteria) - -
-           
- - - - - -
-<T extends Model> -
-java.util.List<>
-
Model.MorphiaQuery.asKeyList() - -
-           
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
Model.MorphiaQuery.asList() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.batchSize(int value) - -
-           
-static - - - - -
-<T extends Model> -
-T
-
Model.create(java.lang.Class<?> type, - java.lang.String name, - java.util.Map<java.lang.String,java.lang.String[]> params, - java.lang.annotation.Annotation[] annotations) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.createQuery() - -
-           
- - - - - -
-<T extends Model> -
-
-
Model.MorphiaQuery.criteria(java.lang.String field) - -
-           
- - - - - -
-<T extends Model> -
-T
-
Model.delete() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableCursorTimeout() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableSnapshotMode() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableTimeout() - -
-          Deprecated. 
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.disableValidation() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.disableValidation() - -
-           
-static - - - - -
-<T extends Model> -
-T
-
Model.edit(java.lang.Object o, - java.lang.String name, - java.util.Map<java.lang.String,java.lang.String[]> params, - java.lang.annotation.Annotation[] annotations) - -
-           
- - - - - -
-<T extends Model> -
-T
-
Model.edit(java.lang.String name, - java.util.Map<java.lang.String,java.lang.String[]> params) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableCursorTimeout() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableSnapshotMode() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableTimeout() - -
-          Deprecated. 
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.enableValidation() - -
-           
- - - - - -
-<T extends Model> -
-java.lang.Iterable<T>
-
Model.MorphiaQuery.fetch() - -
-           
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
Model.MorphiaQuery.fetch(int max) - -
-          Retrieve results of the query
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
Model.MorphiaQuery.fetch(int page, - int length) - -
-          Retrieve a page of result
- - - - - -
-<T extends Model> -
-java.util.List<T>
-
Model.MorphiaQuery.fetchAll() - -
+ + + + + + +Uses of Class play.modules.morphia.Model (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Model

+
+ + + + + + + + + + + + + +
+Packages that use Model
play.modules.morphia  
play.modules.morphia.utils  
+  +

+ + + + + +
+Uses of Model in play.modules.morphia
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia with type parameters of type Model
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.all() + +
+           
+ + + + + +
+<T extends Model> +
+CriteriaContainer
+
Model.MorphiaQuery.and(Criteria... criteria) + +
+           
+ + + + + +
+<T extends Model> +
+java.util.List<>
+
Model.MorphiaQuery.asKeyList() + +
+           
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
Model.MorphiaQuery.asList() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.batchSize(int value) + +
+           
+static + + + + +
+<T extends Model> +
+T
+
Model.create(java.lang.Class<?> type, + java.lang.String name, + java.util.Map<java.lang.String,java.lang.String[]> params, + java.lang.annotation.Annotation[] annotations) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.createQuery() + +
+           
+ + + + + +
+<T extends Model> +
+
+
Model.MorphiaQuery.criteria(java.lang.String field) + +
+           
+ + + + + +
+<T extends Model> +
+T
+
Model.delete() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableCursorTimeout() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableSnapshotMode() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableTimeout() + +
+          Deprecated. 
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.disableValidation() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.disableValidation() + +
+           
+static + + + + +
+<T extends Model> +
+T
+
Model.edit(java.lang.Object o, + java.lang.String name, + java.util.Map<java.lang.String,java.lang.String[]> params, + java.lang.annotation.Annotation[] annotations) + +
+           
+ + + + + +
+<T extends Model> +
+T
+
Model.edit(java.lang.String name, + java.util.Map<java.lang.String,java.lang.String[]> params) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableCursorTimeout() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableSnapshotMode() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableTimeout() + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.enableValidation() + +
+           
+ + + + + +
+<T extends Model> +
+java.lang.Iterable<T>
+
Model.MorphiaQuery.fetch() + +
+           
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
Model.MorphiaQuery.fetch(int max) + +
+          Retrieve results of the query
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
Model.MorphiaQuery.fetch(int page, + int length) + +
+          Retrieve a page of result
+ + + + + +
+<T extends Model> +
+java.util.List<T>
+
Model.MorphiaQuery.fetchAll() + +
          Retrieve all results of the query This is a correspondence to JPAQuery's fetch(), which however, used - as another method signature of Morphia Query
- - - - - -
-<T extends Model> -
-java.lang.Iterable<T>
-
Model.MorphiaQuery.fetchEmptyEntities() - -
-           
- - - - - -
-<T extends Model> -
-java.lang.Iterable<>
-
Model.MorphiaQuery.fetchKeys() - -
-           
- - - - - -
-<T extends Model> -
-
-
Model.MorphiaQuery.field(java.lang.String field) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.filter(java.lang.String property, - java.lang.Object value) - -
-          Morphia style filter method.
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.filter(java.lang.String condition, - java.lang.Object value) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.find() - -
-          Shortcut to createQuery()
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.find(java.lang.String keys, - java.lang.Object... params) - -
-          JPA style find method
-static - - - - -
-<T extends Model> -
-T
-
Model.findById(java.lang.Object id) - -
-           
-static - - - - -
-<T extends Model> -
-T
-
Model.get() - -
-          Return the first element in the data storage.
- - - - - -
-<T extends Model> -
-T
-
Model.MorphiaQuery.get() - -
-           
- - - - - -
-<T extends Model> -
-
-
Model.MorphiaQuery.getKey() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.hintIndex(java.lang.String idxName) - -
-           
- - - - - -
-<T extends Model> -
-java.util.Iterator<T>
-
Model.MorphiaQuery.iterator() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.limit(int value) - -
-           
- - - - - -
-<T extends Model> -
-T
-
Model.merge() - -
-          This method has no effect at all
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.offset(int value) - -
-           
- - - - - -
-<T extends Model> -
-CriteriaContainer
-
Model.MorphiaQuery.or(Criteria... criteria) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.order(java.lang.String condition) - -
-           
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.q() - -
-          Shortcut to createQuery
-static - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.q(java.lang.String keys, - java.lang.Object value) - -
-          Shortcut to find(String, Object...)
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.queryNonPrimary() - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.queryPrimaryOnly() - -
-           
- - - - - -
-<T extends Model> -
-T
-
Model.refresh() - -
-          Refresh the entity state.
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.retrievedFields(boolean include, - java.lang.String... fields) - -
-           
- - - - - -
-<T extends Model> -
-T
-
Model.save() - -
-          Save and return this entity
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.skip(int value) - -
-          Deprecated. 
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.where(CodeWScope js) - -
-           
- - - - - -
-<T extends Model> -
-Model.MorphiaQuery
-
Model.MorphiaQuery.where(java.lang.String js) - -
-           
-  -

- - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia that return Model
- ModelModel.MorphiaQuery._get() - -
-           
-static ModelModel.create(java.lang.String name, - Params params) - -
-           
- ModelMorphiaPlugin.MorphiaModelLoader.findById(java.lang.Object id) - -
-           
-  -

- - - - - - - - - -
Methods in play.modules.morphia that return types with arguments of type Model
- java.lang.Class<? extends Model>Model.MorphiaQuery.getEntityClass() - -
-           
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia with parameters of type Model
- voidMorphiaEvent.IMorphiaEventHandler.added(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.added(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.deleted(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.deleted(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.loaded(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.loaded(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.onAdd(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.onAdd(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.onDelete(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.onDelete(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.onLoad(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.onLoad(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.onUpdate(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.onUpdate(Model context) - -
-           
- voidMorphiaEvent.IMorphiaEventHandler.updated(Model context) - -
-           
- voidMorphiaEvent.MorphiaEventHandlerAdaptor.updated(Model context) - -
-           
-  -

- - - - - - - - - - - - - - - - - - - - - -
Method parameters in play.modules.morphia with type arguments of type Model
-static voidMorphiaPlugin.clearModelEventHandler(java.lang.Class<? extends Model> model) - -
-           
-static play.modules.morphia.Model.FactoryMorphiaPlugin.MorphiaModelLoader.getFactory(java.lang.Class<? extends Model> clazz) - -
-           
-static voidMorphiaPlugin.registerModelEventHandler(java.lang.Class<? extends Model> model, - MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidMorphiaPlugin.unregisterModelEventHandler(java.lang.Class<? extends Model> model, - MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-  -

- - - - - - - - - - - - - - -
Constructor parameters in play.modules.morphia with type arguments of type Model
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz) - -
-           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, - DBCollection coll, - Datastore ds) - -
-           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, - DBCollection coll, - Datastore ds, - int offset, - int limit) - -
-           
-  -

- - - - - -
-Uses of Model in play.modules.morphia.utils
-  -

- - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia.utils with type parameters of type Model
-static - - - - -
-<T extends Model> -
-java.lang.Long
-
IdGenerator.generateLongId(java.lang.Class<T> clazz) - -
-           
-static - - - - -
-<T extends Model> -
-java.lang.Long
-
IdGenerator.generateLongId(T entity) - -
-           
-static - - - - -
-<T extends Model> -
-ObjectId
-
IdGenerator.generateObjectIdId(java.lang.Class<T> clazz) - -
-           
-static - - - - -
-<T extends Model> -
-ObjectId
-
IdGenerator.generateObjectIdId(T entity) - -
-           
-  -

- - - - - - - - - -
Methods in play.modules.morphia.utils with parameters of type Model
-static java.lang.ObjectIdGenerator.generateId(Model entity) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + as another method signature of Morphia Query
+ + + + + +
+<T extends Model> +
+java.lang.Iterable<T>
+
Model.MorphiaQuery.fetchEmptyEntities() + +
+           
+ + + + + +
+<T extends Model> +
+java.lang.Iterable<>
+
Model.MorphiaQuery.fetchKeys() + +
+           
+ + + + + +
+<T extends Model> +
+
+
Model.MorphiaQuery.field(java.lang.String field) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.filter(java.lang.String property, + java.lang.Object value) + +
+          Morphia style filter method.
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.filter(java.lang.String condition, + java.lang.Object value) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.find() + +
+          Shortcut to createQuery()
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.find(java.lang.String keys, + java.lang.Object... params) + +
+          JPA style find method
+static + + + + +
+<T extends Model> +
+T
+
Model.findById(java.lang.Object id) + +
+           
+static + + + + +
+<T extends Model> +
+T
+
Model.get() + +
+          Return the first element in the data storage.
+ + + + + +
+<T extends Model> +
+T
+
Model.MorphiaQuery.get() + +
+           
+ + + + + +
+<T extends Model> +
+
+
Model.MorphiaQuery.getKey() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.hintIndex(java.lang.String idxName) + +
+           
+ + + + + +
+<T extends Model> +
+java.util.Iterator<T>
+
Model.MorphiaQuery.iterator() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.limit(int value) + +
+           
+ + + + + +
+<T extends Model> +
+T
+
Model.merge() + +
+          This method has no effect at all
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.offset(int value) + +
+           
+ + + + + +
+<T extends Model> +
+CriteriaContainer
+
Model.MorphiaQuery.or(Criteria... criteria) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.order(java.lang.String condition) + +
+           
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.q() + +
+          Shortcut to createQuery
+static + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.q(java.lang.String keys, + java.lang.Object value) + +
+          Shortcut to find(String, Object...)
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.queryNonPrimary() + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.queryPrimaryOnly() + +
+           
+ + + + + +
+<T extends Model> +
+T
+
Model.refresh() + +
+          Refresh the entity state.
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.retrievedFields(boolean include, + java.lang.String... fields) + +
+           
+ + + + + +
+<T extends Model> +
+T
+
Model.save() + +
+          Save and return this entity
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.skip(int value) + +
+          Deprecated. 
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.where(CodeWScope js) + +
+           
+ + + + + +
+<T extends Model> +
+Model.MorphiaQuery
+
Model.MorphiaQuery.where(java.lang.String js) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia that return Model
+ ModelModel.MorphiaQuery._get() + +
+           
+static ModelModel.create(java.lang.String name, + Params params) + +
+           
+ ModelMorphiaPlugin.MorphiaModelLoader.findById(java.lang.Object id) + +
+           
+  +

+ + + + + + + + + +
Methods in play.modules.morphia that return types with arguments of type Model
+ java.lang.Class<? extends Model>Model.MorphiaQuery.getEntityClass() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia with parameters of type Model
+ voidMorphiaEvent.IMorphiaEventHandler.added(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.added(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.deleted(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.deleted(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.loaded(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.loaded(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.onAdd(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.onAdd(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.onDelete(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.onDelete(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.onLoad(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.onLoad(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.onUpdate(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.onUpdate(Model context) + +
+           
+ voidMorphiaEvent.IMorphiaEventHandler.updated(Model context) + +
+           
+ voidMorphiaEvent.MorphiaEventHandlerAdaptor.updated(Model context) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Method parameters in play.modules.morphia with type arguments of type Model
+static voidMorphiaPlugin.clearModelEventHandler(java.lang.Class<? extends Model> model) + +
+           
+static play.modules.morphia.Model.FactoryMorphiaPlugin.MorphiaModelLoader.getFactory(java.lang.Class<? extends Model> clazz) + +
+           
+static voidMorphiaPlugin.registerModelEventHandler(java.lang.Class<? extends Model> model, + MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidMorphiaPlugin.unregisterModelEventHandler(java.lang.Class<? extends Model> model, + MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+  +

+ + + + + + + + + + + + + + +
Constructor parameters in play.modules.morphia with type arguments of type Model
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz) + +
+           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, + DBCollection coll, + Datastore ds) + +
+           
Model.MorphiaQuery(java.lang.Class<? extends Model> clazz, + DBCollection coll, + Datastore ds, + int offset, + int limit) + +
+           
+  +

+ + + + + +
+Uses of Model in play.modules.morphia.utils
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia.utils with type parameters of type Model
+static + + + + +
+<T extends Model> +
+java.lang.Long
+
IdGenerator.generateLongId(java.lang.Class<T> clazz) + +
+           
+static + + + + +
+<T extends Model> +
+java.lang.Long
+
IdGenerator.generateLongId(T entity) + +
+           
+static + + + + +
+<T extends Model> +
+ObjectId
+
IdGenerator.generateObjectIdId(java.lang.Class<T> clazz) + +
+           
+static + + + + +
+<T extends Model> +
+ObjectId
+
IdGenerator.generateObjectIdId(T entity) + +
+           
+  +

+ + + + + + + + + +
Methods in play.modules.morphia.utils with parameters of type Model
+static java.lang.ObjectIdGenerator.generateId(Model entity) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaEnhancer.html b/documentation/api/play/modules/morphia/class-use/MorphiaEnhancer.html index c6bfb86..67162a3 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaEnhancer.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaEnhancer.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.MorphiaEnhancer (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.MorphiaEnhancer

-
-No usage of play.modules.morphia.MorphiaEnhancer -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.MorphiaEnhancer (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.MorphiaEnhancer

+
+No usage of play.modules.morphia.MorphiaEnhancer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaEvent.IMorphiaEventHandler.html b/documentation/api/play/modules/morphia/class-use/MorphiaEvent.IMorphiaEventHandler.html index 0a208f9..5df1161 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaEvent.IMorphiaEventHandler.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaEvent.IMorphiaEventHandler.html @@ -1,231 +1,231 @@ - - - - - - -Uses of Interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Interface
play.modules.morphia.MorphiaEvent.IMorphiaEventHandler

-
- - - - - - - - - -
-Packages that use MorphiaEvent.IMorphiaEventHandler
play.modules.morphia  
-  -

- - - - - -
-Uses of MorphiaEvent.IMorphiaEventHandler in play.modules.morphia
-  -

- - - - - - - - - -
Classes in play.modules.morphia that implement MorphiaEvent.IMorphiaEventHandler
-static classMorphiaEvent.MorphiaEventHandlerAdaptor - -
-           
-  -

- - - - - - - - - - - - - - - - - - - - - - - - - -
Methods in play.modules.morphia with parameters of type MorphiaEvent.IMorphiaEventHandler
-abstract  voidMorphiaEvent.invokeOn(MorphiaEvent.IMorphiaEventHandler handler, - java.lang.Object context) - -
-           
-static voidMorphiaPlugin.registerGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidMorphiaPlugin.registerModelEventHandler(java.lang.Class<? extends Model> model, - MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidMorphiaPlugin.unregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-static voidMorphiaPlugin.unregisterModelEventHandler(java.lang.Class<? extends Model> model, - MorphiaEvent.IMorphiaEventHandler handler) - -
-           
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Interface play.modules.morphia.MorphiaEvent.IMorphiaEventHandler (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
play.modules.morphia.MorphiaEvent.IMorphiaEventHandler

+
+ + + + + + + + + +
+Packages that use MorphiaEvent.IMorphiaEventHandler
play.modules.morphia  
+  +

+ + + + + +
+Uses of MorphiaEvent.IMorphiaEventHandler in play.modules.morphia
+  +

+ + + + + + + + + +
Classes in play.modules.morphia that implement MorphiaEvent.IMorphiaEventHandler
+static classMorphiaEvent.MorphiaEventHandlerAdaptor + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in play.modules.morphia with parameters of type MorphiaEvent.IMorphiaEventHandler
+abstract  voidMorphiaEvent.invokeOn(MorphiaEvent.IMorphiaEventHandler handler, + java.lang.Object context) + +
+           
+static voidMorphiaPlugin.registerGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidMorphiaPlugin.registerModelEventHandler(java.lang.Class<? extends Model> model, + MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidMorphiaPlugin.unregisterGlobalEventHandler(MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+static voidMorphiaPlugin.unregisterModelEventHandler(java.lang.Class<? extends Model> model, + MorphiaEvent.IMorphiaEventHandler handler) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaEvent.MorphiaEventHandlerAdaptor.html b/documentation/api/play/modules/morphia/class-use/MorphiaEvent.MorphiaEventHandlerAdaptor.html index 93686f9..52beeea 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaEvent.MorphiaEventHandlerAdaptor.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaEvent.MorphiaEventHandlerAdaptor.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor

-
-No usage of play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor

+
+No usage of play.modules.morphia.MorphiaEvent.MorphiaEventHandlerAdaptor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaEvent.html b/documentation/api/play/modules/morphia/class-use/MorphiaEvent.html index 1c47271..954e483 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaEvent.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaEvent.html @@ -1,197 +1,197 @@ - - - - - - -Uses of Class play.modules.morphia.MorphiaEvent (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.MorphiaEvent

-
- - - - - - - - - -
-Packages that use MorphiaEvent
play.modules.morphia  
-  -

- - - - - -
-Uses of MorphiaEvent in play.modules.morphia
-  -

- - - - - - - - - - - - - - - - + +
Methods in play.modules.morphia that return MorphiaEvent
-static MorphiaEventMorphiaEvent.forId(java.lang.String name) - -
-           
-static MorphiaEventMorphiaEvent.valueOf(java.lang.String name) - -
-          Returns the enum constant of this type with the specified name.
-static MorphiaEvent[]MorphiaEvent.values() - -
+ + + + + + +Uses of Class play.modules.morphia.MorphiaEvent (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.MorphiaEvent

+
+ + + + + + + + + +
+Packages that use MorphiaEvent
play.modules.morphia  
+  +

+ + + + + +
+Uses of MorphiaEvent in play.modules.morphia
+  +

+ + + + + + + + + + + + + + + + - -
Methods in play.modules.morphia that return MorphiaEvent
+static MorphiaEventMorphiaEvent.forId(java.lang.String name) + +
+           
+static MorphiaEventMorphiaEvent.valueOf(java.lang.String name) + +
+          Returns the enum constant of this type with the specified name.
+static MorphiaEvent[]MorphiaEvent.values() + +
          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - +the order they are declared.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.IdType.html b/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.IdType.html index 4c47841..1f6697f 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.IdType.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.IdType.html @@ -1,197 +1,197 @@ - - - - - - -Uses of Class play.modules.morphia.MorphiaPlugin.IdType (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.MorphiaPlugin.IdType

-
- - - - - - - - - -
-Packages that use MorphiaPlugin.IdType
play.modules.morphia  
-  -

- - - - - -
-Uses of MorphiaPlugin.IdType in play.modules.morphia
-  -

- - - - - - - - - - - - - - - - + +
Methods in play.modules.morphia that return MorphiaPlugin.IdType
-static MorphiaPlugin.IdTypeMorphiaPlugin.getIdType() - -
-           
-static MorphiaPlugin.IdTypeMorphiaPlugin.IdType.valueOf(java.lang.String name) - -
-          Returns the enum constant of this type with the specified name.
-static MorphiaPlugin.IdType[]MorphiaPlugin.IdType.values() - -
+ + + + + + +Uses of Class play.modules.morphia.MorphiaPlugin.IdType (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.MorphiaPlugin.IdType

+
+ + + + + + + + + +
+Packages that use MorphiaPlugin.IdType
play.modules.morphia  
+  +

+ + + + + +
+Uses of MorphiaPlugin.IdType in play.modules.morphia
+  +

+ + + + + + + + + + + + + + + + - -
Methods in play.modules.morphia that return MorphiaPlugin.IdType
+static MorphiaPlugin.IdTypeMorphiaPlugin.getIdType() + +
+           
+static MorphiaPlugin.IdTypeMorphiaPlugin.IdType.valueOf(java.lang.String name) + +
+          Returns the enum constant of this type with the specified name.
+static MorphiaPlugin.IdType[]MorphiaPlugin.IdType.values() + +
          Returns an array containing the constants of this enum type, in -the order they are declared.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - +the order they are declared.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.MorphiaModelLoader.html b/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.MorphiaModelLoader.html index 3140c80..82572f0 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.MorphiaModelLoader.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.MorphiaModelLoader.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.MorphiaPlugin.MorphiaModelLoader

-
-No usage of play.modules.morphia.MorphiaPlugin.MorphiaModelLoader -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.MorphiaPlugin.MorphiaModelLoader (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.MorphiaPlugin.MorphiaModelLoader

+
+No usage of play.modules.morphia.MorphiaPlugin.MorphiaModelLoader +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.html b/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.html index 4ca7d23..6a81fe5 100644 --- a/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.html +++ b/documentation/api/play/modules/morphia/class-use/MorphiaPlugin.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.MorphiaPlugin (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.MorphiaPlugin

-
-No usage of play.modules.morphia.MorphiaPlugin -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.MorphiaPlugin (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.MorphiaPlugin

+
+No usage of play.modules.morphia.MorphiaPlugin +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/Watch.html b/documentation/api/play/modules/morphia/class-use/Watch.html index c2e7361..407f326 100644 --- a/documentation/api/play/modules/morphia/class-use/Watch.html +++ b/documentation/api/play/modules/morphia/class-use/Watch.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.Watch (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.Watch

-
-No usage of play.modules.morphia.Watch -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.Watch (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.Watch

+
+No usage of play.modules.morphia.Watch +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/class-use/WatchBy.html b/documentation/api/play/modules/morphia/class-use/WatchBy.html index b40f7f2..2fe204f 100644 --- a/documentation/api/play/modules/morphia/class-use/WatchBy.html +++ b/documentation/api/play/modules/morphia/class-use/WatchBy.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.WatchBy (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.WatchBy

-
-No usage of play.modules.morphia.WatchBy -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.WatchBy (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.WatchBy

+
+No usage of play.modules.morphia.WatchBy +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/package-frame.html b/documentation/api/play/modules/morphia/package-frame.html index 50323b7..ab92f9e 100644 --- a/documentation/api/play/modules/morphia/package-frame.html +++ b/documentation/api/play/modules/morphia/package-frame.html @@ -1,111 +1,113 @@ - - - - - - -play.modules.morphia (PlayMorphia API) - - - - - - - - - - - -play.modules.morphia - - - - -
-Interfaces  - -
-MorphiaEvent.IMorphiaEventHandler
- - - - - - -
-Classes  - -
-AggregationResult -
-Blob -
-Model -
-Model.MorphiaQuery -
-MorphiaEnhancer -
-MorphiaEvent.MorphiaEventHandlerAdaptor -
-MorphiaPlugin -
-MorphiaPlugin.MorphiaModelLoader
- - - - - - -
-Enums  - -
-MorphiaEvent -
-MorphiaPlugin.IdType
- - - - - - -
-Annotation Types  - -
-Model.Added -
-Model.AutoTimestamp -
-Model.BatchDeleted -
-Model.ByPass -
-Model.Column -
-Model.Deleted -
-Model.Loaded -
-Model.NoId -
-Model.OnAdd -
-Model.OnBatchDelete -
-Model.OnDelete -
-Model.OnLoad -
-Model.OnUpdate -
-Model.Updated -
-Watch -
-WatchBy
- - - - + + + + + + +play.modules.morphia (PlayMorphia API) + + + + + + + + + + + +play.modules.morphia + + + + +
+Interfaces  + +
+MorphiaEvent.IMorphiaEventHandler
+ + + + + + +
+Classes  + +
+AggregationResult +
+Blob +
+Model +
+Model.MorphiaQuery +
+MorphiaEnhancer +
+MorphiaEvent.MorphiaEventHandlerAdaptor +
+MorphiaPlugin +
+MorphiaPlugin.MorphiaModelLoader
+ + + + + + +
+Enums  + +
+MorphiaEvent +
+MorphiaPlugin.IdType
+ + + + + + +
+Annotation Types  + +
+Model.Added +
+Model.AutoTimestamp +
+Model.BatchDeleted +
+Model.ByPass +
+Model.Column +
+Model.Datasource +
+Model.Deleted +
+Model.Loaded +
+Model.NoId +
+Model.OnAdd +
+Model.OnBatchDelete +
+Model.OnDelete +
+Model.OnLoad +
+Model.OnUpdate +
+Model.Updated +
+Watch +
+WatchBy
+ + + + diff --git a/documentation/api/play/modules/morphia/package-summary.html b/documentation/api/play/modules/morphia/package-summary.html index 1557e9b..e5793e3 100644 --- a/documentation/api/play/modules/morphia/package-summary.html +++ b/documentation/api/play/modules/morphia/package-summary.html @@ -1,294 +1,297 @@ - - - - - - -play.modules.morphia (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-

-Package play.modules.morphia -

- - - - - - - - - -
-Interface Summary
MorphiaEvent.IMorphiaEventHandler 
-  - -

- - - - - - - - - - - - - - - - - - - - - - - + + + + + + +play.modules.morphia (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + +
-Class Summary
AggregationResult 
Blob 
ModelThis class provides the abstract declarations for all Models.
Model.MorphiaQuery 
MorphiaEnhancer
+ + + + + + + + + +
+ +
+ + + +


+

+Package play.modules.morphia +

+ + + + + + + + + +
+Interface Summary
MorphiaEvent.IMorphiaEventHandler 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - -
+Class Summary
AggregationResult 
Blob 
ModelThis class provides the abstract declarations for all Models.
Model.MorphiaQuery 
MorphiaEnhancer This class uses the Play framework enhancement process to enhance classes - marked with the morphia annotations.
MorphiaEvent.MorphiaEventHandlerAdaptor 
MorphiaPluginThe plugin for the Morphia module.
MorphiaPlugin.MorphiaModelLoader 
-  - -

- - - - - - - - - - - - - -
-Enum Summary
MorphiaEvent 
MorphiaPlugin.IdType 
-  - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + marked with the morphia annotations. + + + + + + + + + + + + + +
-Annotation Types Summary
Model.AddedAdded mark a method be called after an new entity is saved.
Model.AutoTimestamp 
Model.BatchDeletedDeleted mark a method be called after an a query deletion executed
Model.ByPass 
Model.Column 
Model.DeletedDeleted mark a method be called after an entity is deleted
Model.LoadedOnLoad mark a method be called immediately after an entity loaded from mongodb
Model.NoId
MorphiaEvent.MorphiaEventHandlerAdaptor 
MorphiaPluginThe plugin for the Morphia module.
MorphiaPlugin.MorphiaModelLoader 
+  + +

+ + + + + + + + + + + + + +
+Enum Summary
MorphiaEvent 
MorphiaPlugin.IdType 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+Annotation Types Summary
Model.AddedAdded mark a method be called after an new entity is saved.
Model.AutoTimestamp 
Model.BatchDeletedDeleted mark a method be called after an a query deletion executed
Model.ByPass 
Model.Column 
Model.DatasourceAssociate an entity with a named Datasource.
Model.DeletedDeleted mark a method be called after an entity is deleted
Model.LoadedOnLoad mark a method be called immediately after an entity loaded from mongodb
Model.NoId NoID is used to annotate on sub types which is sure to get ID field from - parent type
Model.OnAddOnAdd mark a method be called before an new entity is saved.
Model.OnBatchDeleteOnBatchDelete mark a method be called before a query's delete method get called.
Model.OnDeleteOnDelete mark a method be called before an entity is deleted.
Model.OnLoadOnLoad mark a method be called after an new instance of an entity is initialized and - before the properties are filled with mongo db columns
Model.OnUpdateOnUpdate mark a method be called before an existing entity is saved.
Model.UpdatedUpdated mark a method be called after an existing entity is saved.
Watch 
WatchBy 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - + parent type + + +Model.OnAdd +OnAdd mark a method be called before an new entity is saved. + + +Model.OnBatchDelete +OnBatchDelete mark a method be called before a query's delete method get called. + + +Model.OnDelete +OnDelete mark a method be called before an entity is deleted. + + +Model.OnLoad +  + + +Model.OnUpdate +OnUpdate mark a method be called before an existing entity is saved. + + +Model.Updated +Updated mark a method be called after an existing entity is saved. + + +Watch +  + + +WatchBy +  + + +  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/package-tree.html b/documentation/api/play/modules/morphia/package-tree.html index de8e7a5..8aeb35e 100644 --- a/documentation/api/play/modules/morphia/package-tree.html +++ b/documentation/api/play/modules/morphia/package-tree.html @@ -1,195 +1,196 @@ - - - - - - -play.modules.morphia Class Hierarchy (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package play.modules.morphia -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -

-Interface Hierarchy -

- -

-Annotation Type Hierarchy -

-
    -
  • play.modules.morphia.WatchBy (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Watch (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.ByPass (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.AutoTimestamp (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Column (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.NoId (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnLoad (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Loaded (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnAdd (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnUpdate (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Added (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Updated (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnDelete (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.Deleted (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.OnBatchDelete (implements java.lang.annotation.Annotation) -
  • play.modules.morphia.Model.BatchDeleted (implements java.lang.annotation.Annotation) -
-

-Enum Hierarchy -

-
    -
  • java.lang.Object -
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +play.modules.morphia Class Hierarchy (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package play.modules.morphia +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+
    +
  • play.modules.morphia.WatchBy (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Watch (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.ByPass (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.AutoTimestamp (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Column (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.NoId (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Datasource (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnLoad (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Loaded (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnAdd (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnUpdate (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Added (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Updated (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnDelete (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.Deleted (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.OnBatchDelete (implements java.lang.annotation.Annotation) +
  • play.modules.morphia.Model.BatchDeleted (implements java.lang.annotation.Annotation) +
+

+Enum Hierarchy +

+
    +
  • java.lang.Object +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/package-use.html b/documentation/api/play/modules/morphia/package-use.html index 902ed5e..3b16af8 100644 --- a/documentation/api/play/modules/morphia/package-use.html +++ b/documentation/api/play/modules/morphia/package-use.html @@ -1,219 +1,219 @@ - - - - - - -Uses of Package play.modules.morphia (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
play.modules.morphia

-
- - - - - - - - - - - - - -
-Packages that use play.modules.morphia
play.modules.morphia  
play.modules.morphia.utils  
-  -

- - - - - - - - - - - - - - - - - - - - - - - -
-Classes in play.modules.morphia used by play.modules.morphia
AggregationResult - -
-           
Model - -
-          This class provides the abstract declarations for all Models.
Model.MorphiaQuery - -
-           
MorphiaEvent - -
-           
MorphiaEvent.IMorphiaEventHandler - -
-           
MorphiaPlugin.IdType - -
-           
-  -

- - - - - - - - -
-Classes in play.modules.morphia used by play.modules.morphia.utils
Model - -
-          This class provides the abstract declarations for all Models.
-  -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Package play.modules.morphia (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
play.modules.morphia

+
+ + + + + + + + + + + + + +
+Packages that use play.modules.morphia
play.modules.morphia  
play.modules.morphia.utils  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Classes in play.modules.morphia used by play.modules.morphia
AggregationResult + +
+           
Model + +
+          This class provides the abstract declarations for all Models.
Model.MorphiaQuery + +
+           
MorphiaEvent + +
+           
MorphiaEvent.IMorphiaEventHandler + +
+           
MorphiaPlugin.IdType + +
+           
+  +

+ + + + + + + + +
+Classes in play.modules.morphia used by play.modules.morphia.utils
Model + +
+          This class provides the abstract declarations for all Models.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/IdGenerator.html b/documentation/api/play/modules/morphia/utils/IdGenerator.html index c5307ad..8f6e213 100644 --- a/documentation/api/play/modules/morphia/utils/IdGenerator.html +++ b/documentation/api/play/modules/morphia/utils/IdGenerator.html @@ -1,459 +1,459 @@ - - - - - - -IdGenerator (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class IdGenerator

-
-java.lang.Object
-  extended by play.modules.morphia.utils.IdGenerator
-
-
-
-
public class IdGenerator
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
IdGenerator() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
-static Datastoreds() - -
-           
-static java.lang.ObjectgenerateId(Model entity) - -
-           
-static - - - - -
-<T extends Model> -
-java.lang.Long
-
generateLongId(java.lang.Class<T> clazz) - -
-           
-static - - - - -
-<T extends Model> -
-java.lang.Long
-
generateLongId(T entity) - -
-           
-static - - - - -
-<T extends Model> -
-ObjectId
-
generateObjectIdId(java.lang.Class<T> clazz) - -
-           
-static - - - - -
-<T extends Model> -
-ObjectId
-
generateObjectIdId(T entity) - -
-           
-static java.lang.StringgetIdTypeName() - -
-           
-static java.lang.ObjectprocessId(java.lang.Object id) - -
-           
-static java.lang.LongprocessLongId(java.lang.Object id) - -
-           
-static ObjectIdprocessObjectId(java.lang.Object id) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-IdGenerator

-
-public IdGenerator()
-
-
- - - - - - - - -
-Method Detail
- -

-ds

-
-public static Datastore ds()
-
-
-
-
-
-
- -

-generateId

-
-public static java.lang.Object generateId(Model entity)
-
-
-
-
-
-
- -

-generateLongId

-
-public static <T extends Model> java.lang.Long generateLongId(T entity)
-
-
-
-
-
-
- -

-generateLongId

-
-public static <T extends Model> java.lang.Long generateLongId(java.lang.Class<T> clazz)
-
-
-
-
-
-
- -

-generateObjectIdId

-
-public static <T extends Model> ObjectId generateObjectIdId(T entity)
-
-
-
-
-
-
- -

-generateObjectIdId

-
-public static <T extends Model> ObjectId generateObjectIdId(java.lang.Class<T> clazz)
-
-
-
-
-
-
- -

-getIdTypeName

-
-public static java.lang.String getIdTypeName()
-
-
-
-
-
-
- -

-processId

-
-public static java.lang.Object processId(java.lang.Object id)
-
-
-
-
-
-
- -

-processObjectId

-
-public static ObjectId processObjectId(java.lang.Object id)
-
-
-
-
-
-
- -

-processLongId

-
-public static java.lang.Long processLongId(java.lang.Object id)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +IdGenerator (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class IdGenerator

+
+java.lang.Object
+  extended by play.modules.morphia.utils.IdGenerator
+
+
+
+
public class IdGenerator
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IdGenerator() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Datastoreds(java.lang.String dsName) + +
+           
+static java.lang.ObjectgenerateId(Model entity) + +
+           
+static + + + + +
+<T extends Model> +
+java.lang.Long
+
generateLongId(java.lang.Class<T> clazz) + +
+           
+static + + + + +
+<T extends Model> +
+java.lang.Long
+
generateLongId(T entity) + +
+           
+static + + + + +
+<T extends Model> +
+ObjectId
+
generateObjectIdId(java.lang.Class<T> clazz) + +
+           
+static + + + + +
+<T extends Model> +
+ObjectId
+
generateObjectIdId(T entity) + +
+           
+static java.lang.StringgetIdTypeName() + +
+           
+static java.lang.ObjectprocessId(java.lang.Object id) + +
+           
+static java.lang.LongprocessLongId(java.lang.Object id) + +
+           
+static ObjectIdprocessObjectId(java.lang.Object id) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IdGenerator

+
+public IdGenerator()
+
+
+ + + + + + + + +
+Method Detail
+ +

+ds

+
+public static Datastore ds(java.lang.String dsName)
+
+
+
+
+
+
+ +

+generateId

+
+public static java.lang.Object generateId(Model entity)
+
+
+
+
+
+
+ +

+generateLongId

+
+public static <T extends Model> java.lang.Long generateLongId(T entity)
+
+
+
+
+
+
+ +

+generateLongId

+
+public static <T extends Model> java.lang.Long generateLongId(java.lang.Class<T> clazz)
+
+
+
+
+
+
+ +

+generateObjectIdId

+
+public static <T extends Model> ObjectId generateObjectIdId(T entity)
+
+
+
+
+
+
+ +

+generateObjectIdId

+
+public static <T extends Model> ObjectId generateObjectIdId(java.lang.Class<T> clazz)
+
+
+
+
+
+
+ +

+getIdTypeName

+
+public static java.lang.String getIdTypeName()
+
+
+
+
+
+
+ +

+processId

+
+public static java.lang.Object processId(java.lang.Object id)
+
+
+
+
+
+
+ +

+processObjectId

+
+public static ObjectId processObjectId(java.lang.Object id)
+
+
+
+
+
+
+ +

+processLongId

+
+public static java.lang.Long processLongId(java.lang.Object id)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/ObjectIdGsonAdapter.html b/documentation/api/play/modules/morphia/utils/ObjectIdGsonAdapter.html index 1489d16..f328a8e 100644 --- a/documentation/api/play/modules/morphia/utils/ObjectIdGsonAdapter.html +++ b/documentation/api/play/modules/morphia/utils/ObjectIdGsonAdapter.html @@ -1,282 +1,282 @@ - - - - - - -ObjectIdGsonAdapter (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class ObjectIdGsonAdapter

-
-java.lang.Object
-  extended by play.modules.morphia.utils.ObjectIdGsonAdapter
-
-
-
-
public class ObjectIdGsonAdapter
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
ObjectIdGsonAdapter() - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
- ObjectIddeserialize(JsonElement json, - java.lang.reflect.Type typeOfT, - JsonDeserializationContext context) - -
-           
- JsonElementserialize(ObjectId src, - java.lang.reflect.Type typeOfSrc, - JsonSerializationContext context) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-ObjectIdGsonAdapter

-
-public ObjectIdGsonAdapter()
-
-
- - - - - - - - -
-Method Detail
- -

-deserialize

-
-public ObjectId deserialize(JsonElement json,
-                            java.lang.reflect.Type typeOfT,
-                            JsonDeserializationContext context)
-                     throws JsonParseException
-
-
- -
Throws: -
JsonParseException
-
-
-
- -

-serialize

-
-public JsonElement serialize(ObjectId src,
-                             java.lang.reflect.Type typeOfSrc,
-                             JsonSerializationContext context)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +ObjectIdGsonAdapter (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class ObjectIdGsonAdapter

+
+java.lang.Object
+  extended by play.modules.morphia.utils.ObjectIdGsonAdapter
+
+
+
+
public class ObjectIdGsonAdapter
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ObjectIdGsonAdapter() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ ObjectIddeserialize(JsonElement json, + java.lang.reflect.Type typeOfT, + JsonDeserializationContext context) + +
+           
+ JsonElementserialize(ObjectId src, + java.lang.reflect.Type typeOfSrc, + JsonSerializationContext context) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObjectIdGsonAdapter

+
+public ObjectIdGsonAdapter()
+
+
+ + + + + + + + +
+Method Detail
+ +

+deserialize

+
+public ObjectId deserialize(JsonElement json,
+                            java.lang.reflect.Type typeOfT,
+                            JsonDeserializationContext context)
+                     throws JsonParseException
+
+
+ +
Throws: +
JsonParseException
+
+
+
+ +

+serialize

+
+public JsonElement serialize(ObjectId src,
+                             java.lang.reflect.Type typeOfSrc,
+                             JsonSerializationContext context)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/PlayLogr.html b/documentation/api/play/modules/morphia/utils/PlayLogr.html index e7c9c4e..8e24cc1 100644 --- a/documentation/api/play/modules/morphia/utils/PlayLogr.html +++ b/documentation/api/play/modules/morphia/utils/PlayLogr.html @@ -1,633 +1,633 @@ - - - - - - -PlayLogr (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class PlayLogr

-
-java.lang.Object
-  extended by play.modules.morphia.utils.PlayLogr
-
-
-
-
public class PlayLogr
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
PlayLogr() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
- voiddebug(java.lang.String msg) - -
-           
- voiddebug(java.lang.String format, - java.lang.Object... arg) - -
-           
- voiddebug(java.lang.String msg, - java.lang.Throwable t) - -
-           
- voiderror(java.lang.String msg) - -
-           
- voiderror(java.lang.String format, - java.lang.Object... arg) - -
-           
- voiderror(java.lang.String msg, - java.lang.Throwable t) - -
-           
- voidinfo(java.lang.String msg) - -
-           
- voidinfo(java.lang.String format, - java.lang.Object... arg) - -
-           
- voidinfo(java.lang.String msg, - java.lang.Throwable t) - -
-           
- booleanisDebugEnabled() - -
-           
- booleanisErrorEnabled() - -
-           
- booleanisInfoEnabled() - -
-           
- booleanisTraceEnabled() - -
-           
- booleanisWarningEnabled() - -
-           
- voidtrace(java.lang.String msg) - -
-           
- voidtrace(java.lang.String format, - java.lang.Object... arg) - -
-           
- voidtrace(java.lang.String msg, - java.lang.Throwable t) - -
-           
- voidwarning(java.lang.String msg) - -
-           
- voidwarning(java.lang.String format, - java.lang.Object... arg) - -
-           
- voidwarning(java.lang.String msg, - java.lang.Throwable t) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-PlayLogr

-
-public PlayLogr()
-
-
- - - - - - - - -
-Method Detail
- -

-isTraceEnabled

-
-public boolean isTraceEnabled()
-
-
-
-
-
-
- -

-trace

-
-public void trace(java.lang.String msg)
-
-
-
-
-
-
- -

-trace

-
-public void trace(java.lang.String format,
-                  java.lang.Object... arg)
-
-
-
-
-
-
- -

-trace

-
-public void trace(java.lang.String msg,
-                  java.lang.Throwable t)
-
-
-
-
-
-
- -

-isDebugEnabled

-
-public boolean isDebugEnabled()
-
-
-
-
-
-
- -

-debug

-
-public void debug(java.lang.String msg)
-
-
-
-
-
-
- -

-debug

-
-public void debug(java.lang.String format,
-                  java.lang.Object... arg)
-
-
-
-
-
-
- -

-debug

-
-public void debug(java.lang.String msg,
-                  java.lang.Throwable t)
-
-
-
-
-
-
- -

-isInfoEnabled

-
-public boolean isInfoEnabled()
-
-
-
-
-
-
- -

-info

-
-public void info(java.lang.String msg)
-
-
-
-
-
-
- -

-info

-
-public void info(java.lang.String format,
-                 java.lang.Object... arg)
-
-
-
-
-
-
- -

-info

-
-public void info(java.lang.String msg,
-                 java.lang.Throwable t)
-
-
-
-
-
-
- -

-isWarningEnabled

-
-public boolean isWarningEnabled()
-
-
-
-
-
-
- -

-warning

-
-public void warning(java.lang.String msg)
-
-
-
-
-
-
- -

-warning

-
-public void warning(java.lang.String format,
-                    java.lang.Object... arg)
-
-
-
-
-
-
- -

-warning

-
-public void warning(java.lang.String msg,
-                    java.lang.Throwable t)
-
-
-
-
-
-
- -

-isErrorEnabled

-
-public boolean isErrorEnabled()
-
-
-
-
-
-
- -

-error

-
-public void error(java.lang.String msg)
-
-
-
-
-
-
- -

-error

-
-public void error(java.lang.String format,
-                  java.lang.Object... arg)
-
-
-
-
-
-
- -

-error

-
-public void error(java.lang.String msg,
-                  java.lang.Throwable t)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +PlayLogr (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class PlayLogr

+
+java.lang.Object
+  extended by play.modules.morphia.utils.PlayLogr
+
+
+
+
public class PlayLogr
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
PlayLogr() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddebug(java.lang.String msg) + +
+           
+ voiddebug(java.lang.String format, + java.lang.Object... arg) + +
+           
+ voiddebug(java.lang.String msg, + java.lang.Throwable t) + +
+           
+ voiderror(java.lang.String msg) + +
+           
+ voiderror(java.lang.String format, + java.lang.Object... arg) + +
+           
+ voiderror(java.lang.String msg, + java.lang.Throwable t) + +
+           
+ voidinfo(java.lang.String msg) + +
+           
+ voidinfo(java.lang.String format, + java.lang.Object... arg) + +
+           
+ voidinfo(java.lang.String msg, + java.lang.Throwable t) + +
+           
+ booleanisDebugEnabled() + +
+           
+ booleanisErrorEnabled() + +
+           
+ booleanisInfoEnabled() + +
+           
+ booleanisTraceEnabled() + +
+           
+ booleanisWarningEnabled() + +
+           
+ voidtrace(java.lang.String msg) + +
+           
+ voidtrace(java.lang.String format, + java.lang.Object... arg) + +
+           
+ voidtrace(java.lang.String msg, + java.lang.Throwable t) + +
+           
+ voidwarning(java.lang.String msg) + +
+           
+ voidwarning(java.lang.String format, + java.lang.Object... arg) + +
+           
+ voidwarning(java.lang.String msg, + java.lang.Throwable t) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PlayLogr

+
+public PlayLogr()
+
+
+ + + + + + + + +
+Method Detail
+ +

+isTraceEnabled

+
+public boolean isTraceEnabled()
+
+
+
+
+
+
+ +

+trace

+
+public void trace(java.lang.String msg)
+
+
+
+
+
+
+ +

+trace

+
+public void trace(java.lang.String format,
+                  java.lang.Object... arg)
+
+
+
+
+
+
+ +

+trace

+
+public void trace(java.lang.String msg,
+                  java.lang.Throwable t)
+
+
+
+
+
+
+ +

+isDebugEnabled

+
+public boolean isDebugEnabled()
+
+
+
+
+
+
+ +

+debug

+
+public void debug(java.lang.String msg)
+
+
+
+
+
+
+ +

+debug

+
+public void debug(java.lang.String format,
+                  java.lang.Object... arg)
+
+
+
+
+
+
+ +

+debug

+
+public void debug(java.lang.String msg,
+                  java.lang.Throwable t)
+
+
+
+
+
+
+ +

+isInfoEnabled

+
+public boolean isInfoEnabled()
+
+
+
+
+
+
+ +

+info

+
+public void info(java.lang.String msg)
+
+
+
+
+
+
+ +

+info

+
+public void info(java.lang.String format,
+                 java.lang.Object... arg)
+
+
+
+
+
+
+ +

+info

+
+public void info(java.lang.String msg,
+                 java.lang.Throwable t)
+
+
+
+
+
+
+ +

+isWarningEnabled

+
+public boolean isWarningEnabled()
+
+
+
+
+
+
+ +

+warning

+
+public void warning(java.lang.String msg)
+
+
+
+
+
+
+ +

+warning

+
+public void warning(java.lang.String format,
+                    java.lang.Object... arg)
+
+
+
+
+
+
+ +

+warning

+
+public void warning(java.lang.String msg,
+                    java.lang.Throwable t)
+
+
+
+
+
+
+ +

+isErrorEnabled

+
+public boolean isErrorEnabled()
+
+
+
+
+
+
+ +

+error

+
+public void error(java.lang.String msg)
+
+
+
+
+
+
+ +

+error

+
+public void error(java.lang.String format,
+                  java.lang.Object... arg)
+
+
+
+
+
+
+ +

+error

+
+public void error(java.lang.String msg,
+                  java.lang.Throwable t)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/PlayLogrFactory.html b/documentation/api/play/modules/morphia/utils/PlayLogrFactory.html index 7960743..5dac51c 100644 --- a/documentation/api/play/modules/morphia/utils/PlayLogrFactory.html +++ b/documentation/api/play/modules/morphia/utils/PlayLogrFactory.html @@ -1,252 +1,252 @@ - - - - - - -PlayLogrFactory (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class PlayLogrFactory

-
-java.lang.Object
-  extended by play.modules.morphia.utils.PlayLogrFactory
-
-
-
-
public class PlayLogrFactory
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
PlayLogrFactory() - -
-           
-  - - - - - - - - - - - -
-Method Summary
- Logrget(java.lang.Class<?> c) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-PlayLogrFactory

-
-public PlayLogrFactory()
-
-
- - - - - - - - -
-Method Detail
- -

-get

-
-public Logr get(java.lang.Class<?> c)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +PlayLogrFactory (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class PlayLogrFactory

+
+java.lang.Object
+  extended by play.modules.morphia.utils.PlayLogrFactory
+
+
+
+
public class PlayLogrFactory
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
PlayLogrFactory() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ Logrget(java.lang.Class<?> c) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PlayLogrFactory

+
+public PlayLogrFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public Logr get(java.lang.Class<?> c)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/Serializer.html b/documentation/api/play/modules/morphia/utils/Serializer.html index 5770ca4..f280215 100644 --- a/documentation/api/play/modules/morphia/utils/Serializer.html +++ b/documentation/api/play/modules/morphia/utils/Serializer.html @@ -1,283 +1,283 @@ - - - - - - -Serializer (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class Serializer

-
-java.lang.Object
-  extended by com.google.code.morphia.mapping.Serializer
-      extended by play.modules.morphia.utils.Serializer
-
-
-
-
public class Serializer
extends com.google.code.morphia.mapping.Serializer
- - -

+ + + + + + +Serializer (PlayMorphia API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class Serializer

+
+java.lang.Object
+  extended by com.google.code.morphia.mapping.Serializer
+      extended by play.modules.morphia.utils.Serializer
+
+
+
+
public class Serializer
extends com.google.code.morphia.mapping.Serializer
+ + +

Helper class to help serialize java object like BitSet The code dealing with BitSet/byte[] conversion comes from - http://stackoverflow.com/questions/1378171/writing-a-bitset-to-a-file-in-java -

- -

-

-
Author:
-
greenl
-
-
- -

- - - - - - - - - - - -
-Constructor Summary
Serializer() - -
-           
-  - - - - - - - - - - - - - - - -
-Method Summary
-static java.util.BitSetasBitSet(byte[] ba) - -
-           
-static byte[]fromBitSet(java.util.BitSet bs) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-Serializer

-
-public Serializer()
-
-
- - - - - - - - -
-Method Detail
- -

-asBitSet

-
-public static java.util.BitSet asBitSet(byte[] ba)
-
-
-
-
-
-
- -

-fromBitSet

-
-public static byte[] fromBitSet(java.util.BitSet bs)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + http://stackoverflow.com/questions/1378171/writing-a-bitset-to-a-file-in-java +

+ +

+

+
Author:
+
greenl
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Serializer() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static java.util.BitSetasBitSet(byte[] ba) + +
+           
+static byte[]fromBitSet(java.util.BitSet bs) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Serializer

+
+public Serializer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+asBitSet

+
+public static java.util.BitSet asBitSet(byte[] ba)
+
+
+
+
+
+
+ +

+fromBitSet

+
+public static byte[] fromBitSet(java.util.BitSet bs)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/SilentLogrFactory.html b/documentation/api/play/modules/morphia/utils/SilentLogrFactory.html index bada41b..40a2ec6 100644 --- a/documentation/api/play/modules/morphia/utils/SilentLogrFactory.html +++ b/documentation/api/play/modules/morphia/utils/SilentLogrFactory.html @@ -1,252 +1,252 @@ - - - - - - -SilentLogrFactory (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class SilentLogrFactory

-
-java.lang.Object
-  extended by play.modules.morphia.utils.SilentLogrFactory
-
-
-
-
public class SilentLogrFactory
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - -
-Constructor Summary
SilentLogrFactory() - -
-           
-  - - - - - - - - - - - -
-Method Summary
- Logrget(java.lang.Class<?> c) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Constructor Detail
- -

-SilentLogrFactory

-
-public SilentLogrFactory()
-
-
- - - - - - - - -
-Method Detail
- -

-get

-
-public Logr get(java.lang.Class<?> c)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +SilentLogrFactory (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class SilentLogrFactory

+
+java.lang.Object
+  extended by play.modules.morphia.utils.SilentLogrFactory
+
+
+
+
public class SilentLogrFactory
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
SilentLogrFactory() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ Logrget(java.lang.Class<?> c) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SilentLogrFactory

+
+public SilentLogrFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public Logr get(java.lang.Class<?> c)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/StringUtil.html b/documentation/api/play/modules/morphia/utils/StringUtil.html index 513267c..eb876c3 100644 --- a/documentation/api/play/modules/morphia/utils/StringUtil.html +++ b/documentation/api/play/modules/morphia/utils/StringUtil.html @@ -1,524 +1,524 @@ - - - - - - -StringUtil (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -

- -play.modules.morphia.utils -
-Class StringUtil

-
-java.lang.Object
-  extended by play.modules.morphia.utils.StringUtil
-
-
-
-
public class StringUtil
extends java.lang.Object
- - -

-


- -

- - - - - - - - - - - - - - - -
-Field Summary
-static intIGNORECASE - -
-           
-static intIGNORESPACE - -
-           
-  - - - - - - - - - - -
-Constructor Summary
StringUtil() - -
-           
-  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Method Summary
-static booleanisEmpty(java.lang.String s) - -
-           
-static booleanisEqual(java.lang.String s1, - java.lang.String s2) - -
-           
-static booleanisEqual(java.lang.String s1, - java.lang.String s2, - int modifier) - -
-           
-static java.lang.Stringjoin(java.lang.String separator, - java.util.Collection<?> list) - -
-           
-static java.lang.Stringjoin(java.lang.String separator, - java.util.Collection<?> list, - boolean quoted) - -
-           
-static java.lang.Stringjoin(java.lang.String separator, - java.lang.String... list) - -
-           
-static java.lang.Stringjoin(java.lang.String separator, - java.lang.String prefix, - java.lang.String suffix, - java.util.Collection<?> list) - -
-           
-static java.lang.Stringjoin(java.lang.String separator, - java.lang.String prefix, - java.lang.String suffix, - java.util.Collection<?> list, - boolean quoted) - -
-           
-static java.lang.StringlowerFirstChar(java.lang.String s) - -
-           
-static voidmain(java.lang.String[] sa) - -
-           
-static java.lang.StringupperFirstChar(java.lang.String s) - -
-           
- - - - - - - -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-  -

- - - - - - - - -
-Field Detail
- -

-IGNORECASE

-
-public static final int IGNORECASE
-
-
-
See Also:
Constant Field Values
-
-
- -

-IGNORESPACE

-
-public static final int IGNORESPACE
-
-
-
See Also:
Constant Field Values
-
- - - - - - - - -
-Constructor Detail
- -

-StringUtil

-
-public StringUtil()
-
-
- - - - - - - - -
-Method Detail
- -

-join

-
-public static java.lang.String join(java.lang.String separator,
-                                    java.util.Collection<?> list)
-
-
-
-
-
-
- -

-join

-
-public static java.lang.String join(java.lang.String separator,
-                                    java.util.Collection<?> list,
-                                    boolean quoted)
-
-
-
-
-
-
- -

-join

-
-public static java.lang.String join(java.lang.String separator,
-                                    java.lang.String prefix,
-                                    java.lang.String suffix,
-                                    java.util.Collection<?> list,
-                                    boolean quoted)
-
-
-
-
-
-
- -

-join

-
-public static java.lang.String join(java.lang.String separator,
-                                    java.lang.String prefix,
-                                    java.lang.String suffix,
-                                    java.util.Collection<?> list)
-
-
-
-
-
-
- -

-join

-
-public static java.lang.String join(java.lang.String separator,
-                                    java.lang.String... list)
-
-
-
-
-
-
- -

-isEmpty

-
-public static boolean isEmpty(java.lang.String s)
-
-
-
-
-
-
- -

-isEqual

-
-public static boolean isEqual(java.lang.String s1,
-                              java.lang.String s2)
-
-
-
-
-
-
- -

-isEqual

-
-public static boolean isEqual(java.lang.String s1,
-                              java.lang.String s2,
-                              int modifier)
-
-
-
-
-
-
- -

-upperFirstChar

-
-public static java.lang.String upperFirstChar(java.lang.String s)
-
-
-
-
-
-
- -

-lowerFirstChar

-
-public static java.lang.String lowerFirstChar(java.lang.String s)
-
-
-
-
-
-
- -

-main

-
-public static void main(java.lang.String[] sa)
-
-
-
-
-
- -
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +StringUtil (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +play.modules.morphia.utils +
+Class StringUtil

+
+java.lang.Object
+  extended by play.modules.morphia.utils.StringUtil
+
+
+
+
public class StringUtil
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static intIGNORECASE + +
+           
+static intIGNORESPACE + +
+           
+  + + + + + + + + + + +
+Constructor Summary
StringUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static booleanisEmpty(java.lang.String s) + +
+           
+static booleanisEqual(java.lang.String s1, + java.lang.String s2) + +
+           
+static booleanisEqual(java.lang.String s1, + java.lang.String s2, + int modifier) + +
+           
+static java.lang.Stringjoin(java.lang.String separator, + java.util.Collection<?> list) + +
+           
+static java.lang.Stringjoin(java.lang.String separator, + java.util.Collection<?> list, + boolean quoted) + +
+           
+static java.lang.Stringjoin(java.lang.String separator, + java.lang.String... list) + +
+           
+static java.lang.Stringjoin(java.lang.String separator, + java.lang.String prefix, + java.lang.String suffix, + java.util.Collection<?> list) + +
+           
+static java.lang.Stringjoin(java.lang.String separator, + java.lang.String prefix, + java.lang.String suffix, + java.util.Collection<?> list, + boolean quoted) + +
+           
+static java.lang.StringlowerFirstChar(java.lang.String s) + +
+           
+static voidmain(java.lang.String[] sa) + +
+           
+static java.lang.StringupperFirstChar(java.lang.String s) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+IGNORECASE

+
+public static final int IGNORECASE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+IGNORESPACE

+
+public static final int IGNORESPACE
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+StringUtil

+
+public StringUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+join

+
+public static java.lang.String join(java.lang.String separator,
+                                    java.util.Collection<?> list)
+
+
+
+
+
+
+ +

+join

+
+public static java.lang.String join(java.lang.String separator,
+                                    java.util.Collection<?> list,
+                                    boolean quoted)
+
+
+
+
+
+
+ +

+join

+
+public static java.lang.String join(java.lang.String separator,
+                                    java.lang.String prefix,
+                                    java.lang.String suffix,
+                                    java.util.Collection<?> list,
+                                    boolean quoted)
+
+
+
+
+
+
+ +

+join

+
+public static java.lang.String join(java.lang.String separator,
+                                    java.lang.String prefix,
+                                    java.lang.String suffix,
+                                    java.util.Collection<?> list)
+
+
+
+
+
+
+ +

+join

+
+public static java.lang.String join(java.lang.String separator,
+                                    java.lang.String... list)
+
+
+
+
+
+
+ +

+isEmpty

+
+public static boolean isEmpty(java.lang.String s)
+
+
+
+
+
+
+ +

+isEqual

+
+public static boolean isEqual(java.lang.String s1,
+                              java.lang.String s2)
+
+
+
+
+
+
+ +

+isEqual

+
+public static boolean isEqual(java.lang.String s1,
+                              java.lang.String s2,
+                              int modifier)
+
+
+
+
+
+
+ +

+upperFirstChar

+
+public static java.lang.String upperFirstChar(java.lang.String s)
+
+
+
+
+
+
+ +

+lowerFirstChar

+
+public static java.lang.String lowerFirstChar(java.lang.String s)
+
+
+
+
+
+
+ +

+main

+
+public static void main(java.lang.String[] sa)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/IdGenerator.html b/documentation/api/play/modules/morphia/utils/class-use/IdGenerator.html index 2725cd0..12733b7 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/IdGenerator.html +++ b/documentation/api/play/modules/morphia/utils/class-use/IdGenerator.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.IdGenerator (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.IdGenerator

-
-No usage of play.modules.morphia.utils.IdGenerator -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.IdGenerator (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.IdGenerator

+
+No usage of play.modules.morphia.utils.IdGenerator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/ObjectIdGsonAdapter.html b/documentation/api/play/modules/morphia/utils/class-use/ObjectIdGsonAdapter.html index c360daa..084bfb5 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/ObjectIdGsonAdapter.html +++ b/documentation/api/play/modules/morphia/utils/class-use/ObjectIdGsonAdapter.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.ObjectIdGsonAdapter (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.ObjectIdGsonAdapter

-
-No usage of play.modules.morphia.utils.ObjectIdGsonAdapter -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.ObjectIdGsonAdapter (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.ObjectIdGsonAdapter

+
+No usage of play.modules.morphia.utils.ObjectIdGsonAdapter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/PlayLogr.html b/documentation/api/play/modules/morphia/utils/class-use/PlayLogr.html index 7cfa978..a2be855 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/PlayLogr.html +++ b/documentation/api/play/modules/morphia/utils/class-use/PlayLogr.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.PlayLogr (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.PlayLogr

-
-No usage of play.modules.morphia.utils.PlayLogr -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.PlayLogr (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.PlayLogr

+
+No usage of play.modules.morphia.utils.PlayLogr +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/PlayLogrFactory.html b/documentation/api/play/modules/morphia/utils/class-use/PlayLogrFactory.html index 85a0bdf..5a22fb6 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/PlayLogrFactory.html +++ b/documentation/api/play/modules/morphia/utils/class-use/PlayLogrFactory.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.PlayLogrFactory (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.PlayLogrFactory

-
-No usage of play.modules.morphia.utils.PlayLogrFactory -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.PlayLogrFactory (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.PlayLogrFactory

+
+No usage of play.modules.morphia.utils.PlayLogrFactory +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/Serializer.html b/documentation/api/play/modules/morphia/utils/class-use/Serializer.html index afa55c6..6d8dc51 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/Serializer.html +++ b/documentation/api/play/modules/morphia/utils/class-use/Serializer.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.Serializer (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.Serializer

-
-No usage of play.modules.morphia.utils.Serializer -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.Serializer (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.Serializer

+
+No usage of play.modules.morphia.utils.Serializer +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/SilentLogrFactory.html b/documentation/api/play/modules/morphia/utils/class-use/SilentLogrFactory.html index f3dc055..967e385 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/SilentLogrFactory.html +++ b/documentation/api/play/modules/morphia/utils/class-use/SilentLogrFactory.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.SilentLogrFactory (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.SilentLogrFactory

-
-No usage of play.modules.morphia.utils.SilentLogrFactory -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.SilentLogrFactory (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.SilentLogrFactory

+
+No usage of play.modules.morphia.utils.SilentLogrFactory +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/class-use/StringUtil.html b/documentation/api/play/modules/morphia/utils/class-use/StringUtil.html index f7fc6e8..cb04068 100644 --- a/documentation/api/play/modules/morphia/utils/class-use/StringUtil.html +++ b/documentation/api/play/modules/morphia/utils/class-use/StringUtil.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Class play.modules.morphia.utils.StringUtil (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Class
play.modules.morphia.utils.StringUtil

-
-No usage of play.modules.morphia.utils.StringUtil -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Class play.modules.morphia.utils.StringUtil (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
play.modules.morphia.utils.StringUtil

+
+No usage of play.modules.morphia.utils.StringUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/package-frame.html b/documentation/api/play/modules/morphia/utils/package-frame.html index 9b1b531..7d1628e 100644 --- a/documentation/api/play/modules/morphia/utils/package-frame.html +++ b/documentation/api/play/modules/morphia/utils/package-frame.html @@ -1,44 +1,44 @@ - - - - - - -play.modules.morphia.utils (PlayMorphia API) - - - - - - - - - - - -play.modules.morphia.utils - - - - -
-Classes  - -
-IdGenerator -
-ObjectIdGsonAdapter -
-PlayLogr -
-PlayLogrFactory -
-Serializer -
-SilentLogrFactory -
-StringUtil
- - - - + + + + + + +play.modules.morphia.utils (PlayMorphia API) + + + + + + + + + + + +play.modules.morphia.utils + + + + +
+Classes  + +
+IdGenerator +
+ObjectIdGsonAdapter +
+PlayLogr +
+PlayLogrFactory +
+Serializer +
+SilentLogrFactory +
+StringUtil
+ + + + diff --git a/documentation/api/play/modules/morphia/utils/package-summary.html b/documentation/api/play/modules/morphia/utils/package-summary.html index 150790e..efd46c6 100644 --- a/documentation/api/play/modules/morphia/utils/package-summary.html +++ b/documentation/api/play/modules/morphia/utils/package-summary.html @@ -1,184 +1,184 @@ - - - - - - -play.modules.morphia.utils (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-

-Package play.modules.morphia.utils -

- - - - - - - - - - - - - - - - - - - - - - - + + + + + + +play.modules.morphia.utils (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + +
-Class Summary
IdGenerator 
ObjectIdGsonAdapter 
PlayLogr 
PlayLogrFactory 
Serializer
+ + + + + + + + + +
+ +
+ + + +
+

+Package play.modules.morphia.utils +

+ + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - -
+Class Summary
IdGenerator 
ObjectIdGsonAdapter 
PlayLogr 
PlayLogrFactory 
Serializer Helper class to help serialize java object like BitSet The code dealing with BitSet/byte[] conversion comes from - http://stackoverflow.com/questions/1378171/writing-a-bitset-to-a-file-in-java
SilentLogrFactory 
StringUtil 
-  - -

-

-
-
- - - - - - - - - - - - - - - -
- -
- - - -
- - - + http://stackoverflow.com/questions/1378171/writing-a-bitset-to-a-file-in-java + + +SilentLogrFactory +  + + +StringUtil +  + + +  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/package-tree.html b/documentation/api/play/modules/morphia/utils/package-tree.html index 9768a32..34025ca 100644 --- a/documentation/api/play/modules/morphia/utils/package-tree.html +++ b/documentation/api/play/modules/morphia/utils/package-tree.html @@ -1,155 +1,155 @@ - - - - - - -play.modules.morphia.utils Class Hierarchy (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Hierarchy For Package play.modules.morphia.utils -

-
-
-
Package Hierarchies:
All Packages
-
-

-Class Hierarchy -

- -
- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +play.modules.morphia.utils Class Hierarchy (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package play.modules.morphia.utils +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/play/modules/morphia/utils/package-use.html b/documentation/api/play/modules/morphia/utils/package-use.html index 233f9ae..54fc864 100644 --- a/documentation/api/play/modules/morphia/utils/package-use.html +++ b/documentation/api/play/modules/morphia/utils/package-use.html @@ -1,144 +1,144 @@ - - - - - - -Uses of Package play.modules.morphia.utils (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Uses of Package
play.modules.morphia.utils

-
-No usage of play.modules.morphia.utils -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Uses of Package play.modules.morphia.utils (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
play.modules.morphia.utils

+
+No usage of play.modules.morphia.utils +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/serialized-form.html b/documentation/api/serialized-form.html index a7d4c15..5b1b5ac 100644 --- a/documentation/api/serialized-form.html +++ b/documentation/api/serialized-form.html @@ -1,182 +1,182 @@ - - - - - - -Serialized Form (PlayMorphia API) - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
- -
- - - -
-
-

-Serialized Form

-
-
- - - - - -
-Package play.modules.morphia
- -

- - - - - -
-Class play.modules.morphia.Model extends java.lang.Object implements Serializable
- -

-serialVersionUID: -719759872826848048L - -

- - - - - -
-Serialized Fields
- -

-blobFieldsTracker

-
-java.util.Map<K,V> blobFieldsTracker
-
-
-
-
- -

-


- - - - - - - - - - - - - - - -
- -
- - - -
- - - + + + + + + +Serialized Form (PlayMorphia API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package play.modules.morphia
+ +

+ + + + + +
+Class play.modules.morphia.Model extends java.lang.Object implements Serializable
+ +

+serialVersionUID: -719759872826848048L + +

+ + + + + +
+Serialized Fields
+ +

+blobFieldsTracker

+
+java.util.Map<K,V> blobFieldsTracker
+
+
+
+
+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/documentation/api/stylesheet.css b/documentation/api/stylesheet.css index cbd3428..6ea9e51 100644 --- a/documentation/api/stylesheet.css +++ b/documentation/api/stylesheet.css @@ -1,29 +1,29 @@ -/* Javadoc style sheet */ - -/* Define colors, fonts and other style attributes here to override the defaults */ - -/* Page background color */ -body { background-color: #FFFFFF; color:#000000 } - -/* Headings */ -h1 { font-size: 145% } - -/* Table colors */ -.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ -.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ -.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ - -/* Font used in left-hand frame lists */ -.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } -.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } -.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } - -/* Navigation bar fonts and colors */ -.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ -.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ -.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} -.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} - -.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} -.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} - +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/build.properties b/lib/build.properties similarity index 100% rename from build.properties rename to lib/build.properties diff --git a/lib/morphia-1.00-SNAPSHOT.jar b/lib/morphia-1.00-SNAPSHOT.jar deleted file mode 100644 index e55b615..0000000 Binary files a/lib/morphia-1.00-SNAPSHOT.jar and /dev/null differ diff --git a/lib/play-morphia.jar b/lib/play-morphia.jar index c496e87..95951de 100644 Binary files a/lib/play-morphia.jar and b/lib/play-morphia.jar differ diff --git a/samples-and-tests/simple/.gitignore b/samples-and-tests/simple/.gitignore new file mode 100644 index 0000000..a7cb03d --- /dev/null +++ b/samples-and-tests/simple/.gitignore @@ -0,0 +1,8 @@ +logs +eclipse +tmp +precompiled +test-result +.classpath +.settings + diff --git a/samples-and-tests/simple/app/controllers/Application.java b/samples-and-tests/simple/app/controllers/Application.java new file mode 100644 index 0000000..5409ba7 --- /dev/null +++ b/samples-and-tests/simple/app/controllers/Application.java @@ -0,0 +1,30 @@ +package controllers; + +import play.*; +import play.mvc.*; +import play.data.validation.*; +import play.libs.*; +import play.cache.*; + +import java.util.*; + +import models.*; + +public class Application extends Controller { + + @Before + static void addDefaults() { + } + + public static void index() { + User user = new User("test", "test", "test"); + user.save(); + + Account account = new Account("test", "test", "test"); + account.save(); + + Customer customer = new Customer("test", "test", "test"); + customer.save(); + } + +} diff --git a/samples-and-tests/simple/app/models/Account.java b/samples-and-tests/simple/app/models/Account.java new file mode 100644 index 0000000..22eff0c --- /dev/null +++ b/samples-and-tests/simple/app/models/Account.java @@ -0,0 +1,42 @@ +package models; + +import play.data.validation.Email; +import play.data.validation.Required; +import play.modules.morphia.Model; +import play.modules.morphia.Model.AutoTimestamp; +import play.modules.morphia.Model.Datasource; + +import com.google.code.morphia.annotations.Entity; + +@SuppressWarnings("serial") +@Entity +@AutoTimestamp +//@Datasource(name="cluster2") +public class Account extends Model { + + @Email + @Required + public String email; + + @Required + public String password; + + public String fullname; + + public boolean isAdmin; + + public Account(String email, String password, String fullname) { + this.email = email; + this.password = password; + this.fullname = fullname; + } + + public static Account connect(String email, String password) { + return Account.find("byEmailAndPassword", email, password).first(); + } + + public String toString() { + return email; + } + +} \ No newline at end of file diff --git a/samples-and-tests/simple/app/models/Customer.java b/samples-and-tests/simple/app/models/Customer.java new file mode 100644 index 0000000..905263e --- /dev/null +++ b/samples-and-tests/simple/app/models/Customer.java @@ -0,0 +1,40 @@ +package models; + +import play.data.validation.Email; +import play.data.validation.Required; +import play.modules.morphia.Model; +import play.modules.morphia.Model.AutoTimestamp; + +import com.google.code.morphia.annotations.Entity; + +@SuppressWarnings("serial") +@Entity +@AutoTimestamp +public class Customer extends Model { + + @Email + @Required + public String email; + + @Required + public String password; + + public String fullname; + + public boolean isAdmin; + + public Customer(String email, String password, String fullname) { + this.email = email; + this.password = password; + this.fullname = fullname; + } + + public static Customer connect(String email, String password) { + return Customer.find("byEmailAndPassword", email, password).first(); + } + + public String toString() { + return email; + } + +} \ No newline at end of file diff --git a/samples-and-tests/simple/app/models/User.java b/samples-and-tests/simple/app/models/User.java new file mode 100644 index 0000000..d253480 --- /dev/null +++ b/samples-and-tests/simple/app/models/User.java @@ -0,0 +1,42 @@ +package models; + +import play.data.validation.Email; +import play.data.validation.Required; +import play.modules.morphia.Model; +import play.modules.morphia.Model.AutoTimestamp; +import play.modules.morphia.Model.Datasource; + +import com.google.code.morphia.annotations.Entity; + +@SuppressWarnings("serial") +@Entity +@AutoTimestamp +@Datasource(name="cluster1") +public class User extends Model { + + @Email + @Required + public String email; + + @Required + public String password; + + public String fullname; + + public boolean isAdmin; + + public User(String email, String password, String fullname) { + this.email = email; + this.password = password; + this.fullname = fullname; + } + + public static User connect(String email, String password) { + return User.find("byEmailAndPassword", email, password).first(); + } + + public String toString() { + return email; + } + +} \ No newline at end of file diff --git a/samples-and-tests/simple/app/views/main.html b/samples-and-tests/simple/app/views/main.html new file mode 100644 index 0000000..35688c8 --- /dev/null +++ b/samples-and-tests/simple/app/views/main.html @@ -0,0 +1,41 @@ + + + + + #{get 'title' /} + + + + + + + + + + +
+ #{doLayout /} +
+ + + + + diff --git a/samples-and-tests/simple/conf/application.conf b/samples-and-tests/simple/conf/application.conf new file mode 100644 index 0000000..3bd9d6f --- /dev/null +++ b/samples-and-tests/simple/conf/application.conf @@ -0,0 +1,220 @@ +# This is the main configuration file for the application. +# ~~~~~ +application.name=Yet Another Blog Engine + +# Configuration of the blog engine +# ~~~~~ +blog.title=Yet another blog +blog.baseline=We will write about nothing + +# Application mode +# ~~~~~ +# Set to dev to enable instant reloading and other development help. +# Otherwise set to prod. +application.mode=dev +%prod.application.mode=prod + +# Secret key +# ~~~~~ +# The secret key is used to secure cryptographics functions +# If you deploy your application to several instances be sure to use the same key ! +application.secret=s1kwayg211q9v4387pvarbmyqnht7hrl54d34lsz0yh9btb117br293a25trz31o + +# Additional modules +# ~~~~~ +# A module is another play! application. Add a line for each module you want +# to add to your application. Modules path are either absolutes or relative to +# the application root. + +# Import the crud module +module.crud=${play.path}/modules/crud + +# Import the secure module +module.secure=${play.path}/modules/secure + + +# Import the cobertura module in test mode +#%test.module.cobertura=${play.path}/modules/cobertura + +# i18n +# ~~~~~ +# Define locales used by your application. +# You can then place localized messages in conf/messages.{locale} files +# application.langs=fr,en,ja + +# Server configuration +# ~~~~~ +# If you need to change the HTTP port, uncomment this (default is set to 9000) +# http.port=9000 +# +# By default the server listen for HTTP on the wilcard address. +# You can restrict this. +# http.address=127.0.0.1 + +# Session configuration +# ~~~~~~~~~~~~~~~~~~~~~~ +# By default, session will be written to the transient PLAY_SESSION cookie. +# application.session.cookie=PLAY +# application.session.maxAge=1h + +# JPDA configuration +# ~~~~~ +# Define which port is used by JPDA when application is in debug mode (default is set to 8000) +# jpda.port=8000 + +# Log level +# ~~~~~ +# Specify log level for your application. +# If you want a very customized log, create a log4j.properties file in the conf directory +application.log=DEBUG + +# Database configuration +# ~~~~~ +# Enable a database engine if needed. +# +# To quickly set up a development database, use either: +# - mem : for a transient in memory database (HSQL in memory) +# - fs : for a simple file written database (HSQL file stored) +# db=mem +# +# To connect to a local MySQL5 database, use: +# db=mysql:user:pwd@database_name +# +# If you need a full JDBC configuration use the following : +# db.url=jdbc:postgresql:database_name +# db.driver=org.postgresql.Driver +# db.user=root +# db.pass=secret +# +# Connections pool configuration : +# db.pool.timeout=1000 +# db.pool.maxSize=30 +# db.pool.minSize=10 +# +# If you want to reuse an existing Datasource from your application server, use: +# db=java:/comp/env/jdbc/myDatasource + +# JPA Configuration (Hibernate) +# ~~~~~ +# +# Specify the custom JPA dialect to use here (default to guess): +# jpa.dialect=org.hibernate.dialect.PostgreSQLDialect +# +# Specify the ddl generation pattern to use (default to update, set to none to disable it): +# jpa.ddl=update +# +# Debug SQL statements (logged using DEBUG level): +# jpa.debugSQL=true +# +# You can even specify additional hibernate properties here: +# hibernate.use_sql_comments=true +# ... + +# Memcached configuration +# ~~~~~ +# Enable memcached if needed. Otherwise a local cache is used. +# memcached=enabled +# +# Specify memcached host (default to 127.0.0.1:11211) +# memcached.host=127.0.0.1:11211 +# +# Or you can specify multiple host to build a distributed cache +# memcached.1.host=127.0.0.1:11211 +# memcached.2.host=127.0.0.1:11212 + +# Mail configuration +# ~~~~~ +# Default is to use a mock Mailer +mail.smtp=mock + +# Or, specify mail host configuration +# mail.smtp.host=127.0.0.1 +# mail.smtp.user=admin +# mail.smtp.pass= +# mail.smtp.channel=ssl + +# Execution pool +# ~~~~~ +# Default to 1 thread in DEV mode or nb processors + 1 threads in PROD mode. +# Try to keep a low as possible. 1 thread will serialize all requests (very usefull for debugging purpose) +# play.pool=3 + +# Open file from errors pages +# ~~~~~ +# If your text editor supports to open files using URL, Play! will link +# error pages to files dynamically +# +# Example, for textmate: +# play.editor=txmt://open?url=file://%s&line=%s + +## Morphia module configuration +# load morphia +module.morphia=../.. + + +# Database configuration +# ~~~~~ +# Enable a database engine if needed. +# +# To quickly set up a development database, use either: +# - mem : for a transient in memory database (HSQL in memory) +# - fs : for a simple file written database (HSQL file stored) +# db=mem +# +# To connect to a local MySQL5 database, use: +# db=mysql:user:pwd@database_name +# +# If you need a full JDBC configuration use the following : +# db.url=jdbc:postgresql:database_name +# db.driver=org.postgresql.Driver +# db.user=root +# db.pass=secret +# +# Connections pool configuration : +# db.pool.timeout=1000 +# db.pool.maxSize=30 +# db.pool.minSize=10 +# +# If you want to reuse an existing Datasource from your application server, use: +# db=java:/comp/env/jdbc/myDatasource + + +## Morphia module configuration +# load morphia +module.morphia=../.. + +# Mongo Database configuration +# ~~~~~ + +# default single-host properties +morphia.db.host=localhost +morphia.db.port=27017 +morphia.db.name=yabe +#morphia.db.username=user +#morphia.db.password=pass +#morphia.collection.upload=uploads +morphia.id.type=Long + + +# default replica set properties +#morphia.db.seeds=localhost:27017, localhost:27027, localhost:27037 +#morphia.db.name=yabe +#morphia.db.username=user +#morphia.db.password=pass + + +# multiple db sets setup +#morphia.db.cluster1.host=localhost +#morphia.db.cluster1.port=27027 +#morphia.db.cluster1.name=yabe +#morphia.db.cluster1.username=user +#morphia.db.cluster1.password=pass + +#morphia.db.cluster2.host=localhost +#morphia.db.cluster2.port=27037 +#morphia.db.cluster2.name=yabe +#morphia.db.cluster2.username=user +#morphia.db.cluster2.password=pass + +#morphia.cluster2.collection.upload=/tmp + diff --git a/samples-and-tests/simple/conf/dependencies.yml b/samples-and-tests/simple/conf/dependencies.yml new file mode 100644 index 0000000..5a16738 --- /dev/null +++ b/samples-and-tests/simple/conf/dependencies.yml @@ -0,0 +1,2 @@ +require: + - play \ No newline at end of file diff --git a/samples-and-tests/simple/conf/initial-data.yml b/samples-and-tests/simple/conf/initial-data.yml new file mode 100644 index 0000000..ded6392 --- /dev/null +++ b/samples-and-tests/simple/conf/initial-data.yml @@ -0,0 +1,61 @@ +# Test data + +User(bob): + email: bob@gmail.com + password: secret + fullname: Bob + isAdmin: true + +User(jeff): + email: jeff@gmail.com + password: secret + fullname: Jeff + +User(paul): + email: paul@gmail.com + password: secret + fullname: Paul + +Post(firstBobPost): + title: About the model layer + postedAt: 2009-06-14 + author: bob + tags: + - play + - architecture + content: > + The model has a central position in a Play! application. It is the domain-specific + representation of the information on which the application operates. + + Martin fowler defines it as : + + Responsible for representing concepts of the business, information about the + business situation, and business rules. State that reflects the business situation + is controlled and used here, even though the technical details of storing it are + delegated to the infrastructure. This layer is the heart of business software. + +Post(secondBobPost): + title: Just a test of YABE + postedAt: 2009-03-25 + author: bob + tags: + - test + content: > + Well, it's just a test. + +Post(jeffPost): + title: The MVC application + postedAt: 2009-06-06 + author: jeff + tags: + - play + - architecture + - mvc + content: > + A Play! application follows the MVC architectural pattern as applied to the + architecture of the Web. + + This pattern splits the application into separate layers: the Presentation + layer and the Model layer. The Presentation layer is further split into a + View and a Controller layer. + diff --git a/samples-and-tests/simple/conf/messages b/samples-and-tests/simple/conf/messages new file mode 100644 index 0000000..16ffee6 --- /dev/null +++ b/samples-and-tests/simple/conf/messages @@ -0,0 +1,19 @@ +# You can specialize this file for each language. +# For exemple, for french create a messages.fr file +# + +title=Title +content=Content +postedAt=Posted at +author=Author +post=Related post +tags=Tags set +name=Common name +email=Email +password=Password +fullname=Full name +isAdmin=User is admin + +secure.username=Your email: +secure.password=Your password: +secure.signin=Log in now diff --git a/samples-and-tests/simple/conf/routes b/samples-and-tests/simple/conf/routes new file mode 100644 index 0000000..bc41498 --- /dev/null +++ b/samples-and-tests/simple/conf/routes @@ -0,0 +1,12 @@ +# Routes +# This file defines all application routes (Higher priority routes first) +# ~~~~ + +# Home page +GET / Application.index + +# Map static resources from the /app/public folder to the /public path +GET /public/ staticDir:public + +# Catch all +* /{controller}/{action} {controller}.{action} diff --git a/samples-and-tests/unit-tests/.gitignore b/samples-and-tests/unit-tests/.gitignore index 5c8f1dd..ed08b97 100644 --- a/samples-and-tests/unit-tests/.gitignore +++ b/samples-and-tests/unit-tests/.gitignore @@ -3,3 +3,4 @@ tmp precompiled logs modules +.settings \ No newline at end of file diff --git a/samples-and-tests/unit-tests/conf/application.conf b/samples-and-tests/unit-tests/conf/application.conf index c39c958..677d75f 100644 --- a/samples-and-tests/unit-tests/conf/application.conf +++ b/samples-and-tests/unit-tests/conf/application.conf @@ -140,7 +140,7 @@ mail.smtp=mock module.morphia=../.. # where your mongodb server located? # morphia.db.seeds=localhost,ibm.com,aaa -# morphia.db.host=localhost +#morphia.db.host=localhost # what's your mongodb server port # morphia.db.port=27017 # what's your database name @@ -150,15 +150,15 @@ module.morphia=../.. #morphia.db.password=pass # configure your ID field type # could be either ObjectId or Long, default to ObjectId -# morphia.id.type=Long +morphia.id.type=ObjectId # Default Write Concern morphia.defaultWriteConcern=safe # Testing. Set up a custom configuration for test mode # ~~~~~ -%test.application.mode=dev -%test.db=mem -%test.jpa.ddl=create-drop +#%test.application.mode=dev +#%test.db=mem +#%test.jpa.ddl=create-drop %test.mail.smtp=mock %test.morphia.db.host=localhost -#%test.morphia.db.name=test +%test.morphia.db.name=test diff --git a/samples-and-tests/unit-tests/conf/dependencies.yml b/samples-and-tests/unit-tests/conf/dependencies.yml index 6227314..b253c8f 100644 --- a/samples-and-tests/unit-tests/conf/dependencies.yml +++ b/samples-and-tests/unit-tests/conf/dependencies.yml @@ -1,3 +1,4 @@ require: - play - play -> crud + diff --git a/samples-and-tests/unit-tests/test/LifeCycleBenchmark.java b/samples-and-tests/unit-tests/test/LifeCycleBenchmark.java index d08db1e..3473265 100644 --- a/samples-and-tests/unit-tests/test/LifeCycleBenchmark.java +++ b/samples-and-tests/unit-tests/test/LifeCycleBenchmark.java @@ -50,7 +50,7 @@ public void benchmark() { Logger.info("legacy: %s", d0); Logger.info("new: %s", d1); - assertTrue(d1 < d0); + assertTrue((d1 - d0) < 100); } private long l(int times) { diff --git a/samples-and-tests/unit-tests/test/PureMorphiaModelTest.java b/samples-and-tests/unit-tests/test/PureMorphiaModelTest.java index d54052e..7f9affa 100644 --- a/samples-and-tests/unit-tests/test/PureMorphiaModelTest.java +++ b/samples-and-tests/unit-tests/test/PureMorphiaModelTest.java @@ -21,7 +21,7 @@ public class PureMorphiaModelTest extends UnitTest { protected Datastore ds = null; @Before public void setup() { - m = MorphiaPlugin.morphia(); + m = MorphiaPlugin.morphia(MorphiaPlugin.DEFAULT_DS_NAME); ds = MorphiaPlugin.ds(); m.map(PureMorphiaModel.class); diff --git a/samples-and-tests/unit-tests/test/UserTest.java b/samples-and-tests/unit-tests/test/UserTest.java index e5f92e0..ff5388f 100644 --- a/samples-and-tests/unit-tests/test/UserTest.java +++ b/samples-and-tests/unit-tests/test/UserTest.java @@ -9,9 +9,11 @@ import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.io.FileUtils; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import play.modules.morphia.Blob; +import play.modules.morphia.Model.MorphiaQuery; import play.modules.morphia.MorphiaPlugin; import play.test.UnitTest; @@ -136,7 +138,9 @@ public void testBatchDeleteBlob() throws Exception { file = Blob.findFile(b.getBlobFileName("photo")); assertThatPhotoBlobIsValid(file, "user.png"); - User.q("tag", "testing").delete(); + MorphiaQuery q = User.q("tag", "testing"); + q.asList().size(); + q.delete(); file = Blob.findFile(a.getBlobFileName("photo")); assertNull(file); diff --git a/src/play/modules/morphia/Model.java b/src/play/modules/morphia/Model.java index 55f3507..2059336 100644 --- a/src/play/modules/morphia/Model.java +++ b/src/play/modules/morphia/Model.java @@ -82,7 +82,8 @@ public void _save() { public void _delete() { if (isNew()) return; _h_OnDelete(); - ds().delete(this); + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(this.getClass()); + ds(dsName).delete(this); _h_Deleted(); } @@ -393,7 +394,8 @@ public T merge() { */ @SuppressWarnings("unchecked") public T refresh() { - return (T) ds().get(this); + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(this.getClass()); + return (T) ds(dsName).get(this); } public static MorphiaQuery all() { @@ -655,8 +657,12 @@ public static T get() { * * @return */ + @Deprecated public static Datastore ds() { - return MorphiaPlugin.ds(); + return MorphiaPlugin.ds(MorphiaPlugin.DEFAULT_DS_NAME); + } + public static Datastore ds(String dsName) { + return MorphiaPlugin.ds(dsName); } /** @@ -672,6 +678,7 @@ public static DBCollection col() { * * @return */ + @Deprecated public static DB db() { return ds().getDB(); } @@ -694,10 +701,21 @@ public T save() { * @return */ public Key save2() { + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(this.getClass()); + Datastore ds = ds(dsName); + if (ds == null) { + if (MorphiaPlugin.DEFAULT_DS_NAME.equals(dsName)) { + throw new RuntimeException("No morphia datasources are configured in application.conf"); + } else { + throw new RuntimeException("Model class is annotated with @Datasource(name=" + dsName + ") but no datasource is configured in application.conf"); + } + } + + boolean isNew = isNew(); postEvent_(isNew ? MorphiaEvent.ON_ADD : MorphiaEvent.ON_UPDATE, this); if (isNew) _h_OnAdd(); else _h_OnUpdate(); - Key k = ds().save(this); + Key k = ds.save(this); saveBlobs(); if (isNew) {setSaved_();_h_Added();} else _h_Updated(); return k; @@ -858,8 +876,8 @@ private static void postEvent_(MorphiaEvent event, Object context) { @SuppressWarnings({ "rawtypes", "unchecked" }) public static class MorphiaQuery { - public static Datastore ds() { - return MorphiaPlugin.ds(); + public static Datastore ds(String dsName) { + return MorphiaPlugin.ds(dsName); } private QueryImpl q_; @@ -873,8 +891,8 @@ public DBObject getQueryObject() { return q_.getQueryObject(); } - public DBCollection col() { - return ds().getCollection(c_); + public DBCollection col(String dsName) { + return ds(dsName).getCollection(c_); } // constructor for clone() usage @@ -883,7 +901,8 @@ private MorphiaQuery() { public MorphiaQuery(Class clazz) { // super(clazz, ds().getCollection(clazz), ds()); - q_ = (QueryImpl) ds().createQuery(clazz); + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(clazz); + q_ = (QueryImpl) ds(dsName).createQuery(clazz); c_ = clazz; } @@ -919,7 +938,8 @@ public long delete() { m.h_OnBatchDelete(this); m.deleteBlobsInBatch(this); } - ds().delete(q_); + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(c_); + ds(dsName).delete(q_); if (null != m) { m.h_BatchDeleted(this); } @@ -1076,14 +1096,18 @@ public Iterable fetch() { } public Set distinct(String key) { - return new HashSet(col().distinct(key, getQueryObject())); + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(c_); + + return new HashSet(ds(dsName).getCollection(c_).distinct(key,getQueryObject())); } public Map cloud(String field) { + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(c_); + String map = String.format("function() {if (!this.%s) return; for (index in this.%s) emit(this.tags[index], 1);}", field, field); String reduce = "function(previous, current) {var count = 0; for (index in current) count += current[index]; return count;}"; - MapReduceCommand cmd = new MapReduceCommand(col(), map, reduce, null, MapReduceCommand.OutputType.INLINE, q_.getQueryObject()); - MapReduceOutput out = col().mapReduce(cmd); + MapReduceCommand cmd = new MapReduceCommand(col(dsName), map, reduce, null, MapReduceCommand.OutputType.INLINE, q_.getQueryObject()); + MapReduceOutput out = col(dsName).mapReduce(cmd); Map m = new HashMap(); for (Iterator itr = out.results().iterator(); itr.hasNext();) { DBObject dbo = itr.next(); @@ -1109,7 +1133,8 @@ public List group(String groupKeys, DBObject initial, key.put(s, true); } } - return (List) ds().getCollection(c_).group(key, + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(c_); + return (List) ds(dsName).getCollection(c_).group(key, q_.getQueryObject(), initial, reduce, finalize); } @@ -1351,7 +1376,17 @@ public MorphiaQuery clone() { } /** - * OnLoad mark a method be called after an new instance of an entity is initialized and + * Associate an entity with a named Datasource. + * + * @author dbusch + */ + @Retention(RetentionPolicy.RUNTIME) + @Target({ElementType.TYPE}) + public @interface Datasource { + String name() default "default"; + } + + /* OnLoad mark a method be called after an new instance of an entity is initialized and * before the properties are filled with mongo db columns * * @author luog diff --git a/src/play/modules/morphia/MorphiaEnhancer.java b/src/play/modules/morphia/MorphiaEnhancer.java index 1080289..680954e 100644 --- a/src/play/modules/morphia/MorphiaEnhancer.java +++ b/src/play/modules/morphia/MorphiaEnhancer.java @@ -256,11 +256,11 @@ private void enhance_(CtClass ctClass, ApplicationClass applicationClass, boolea } // col - CtMethod col = CtMethod.make("public static com.mongodb.DBCollection col() { return ds().getCollection(" + className + "); }", ctClass); + CtMethod col = CtMethod.make("public static com.mongodb.DBCollection col() { return ds(MorphiaPlugin.getDatasourceNameFromAnnotation(" + className + ")).getCollection(" + className + "); }", ctClass); ctClass.addMethod(col); // count - CtMethod count = CtMethod.make("public static long count() { return ds().getCount(" + className + "); }", ctClass); + CtMethod count = CtMethod.make("public static long count() { return ds(MorphiaPlugin.getDatasourceNameFromAnnotation(" + className + ")).getCount(" + className + "); }", ctClass); ctClass.addMethod(count); // count (String keys, Object... params) diff --git a/src/play/modules/morphia/MorphiaPlugin.java b/src/play/modules/morphia/MorphiaPlugin.java index ea7240c..65fcd5b 100644 --- a/src/play/modules/morphia/MorphiaPlugin.java +++ b/src/play/modules/morphia/MorphiaPlugin.java @@ -10,6 +10,7 @@ import java.util.Arrays; import java.util.Collection; import java.util.Collections; +import java.util.Enumeration; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -18,6 +19,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; +import java.util.regex.Matcher; import java.util.regex.Pattern; import org.bson.types.ObjectId; @@ -30,6 +32,7 @@ import play.db.Model.Factory; import play.exceptions.ConfigurationException; import play.exceptions.UnexpectedException; +import play.modules.morphia.Model.Datasource; import play.modules.morphia.Model.MorphiaQuery; import play.modules.morphia.MorphiaEvent.IMorphiaEventHandler; import play.modules.morphia.utils.PlayLogrFactory; @@ -121,10 +124,10 @@ private static String msg_(String msg, Object... args) { public static final String PREFIX = "morphia.db."; + public static final String DEFAULT_DS_NAME = "default"; + private MorphiaEnhancer e_ = new MorphiaEnhancer(); - private static Morphia morphia_ = null; - private static Datastore ds_ = null; private static GridFS gridfs; private static boolean configured_ = false; @@ -153,32 +156,42 @@ public static IdType getIdType() { return idType_; } + @Deprecated public static Datastore ds() { - return ds_; + return ds(DEFAULT_DS_NAME); } - public static GridFS gridFs() { - return gridfs; - } - - private final static ConcurrentMap dataStores_ = new ConcurrentHashMap(); - - public static Datastore ds(String dbName) { - if (StringUtil.isEmpty(dbName)) - return ds(); - Datastore ds = dataStores_.get(dbName); - if (null == ds) { - Datastore ds0 = morphia_.createDatastore(mongo_, dbName); - ds = dataStores_.putIfAbsent(dbName, ds0); - if (null == ds) { - ds = ds0; + private static final ConcurrentMap dataStores_ = new ConcurrentHashMap(); + + public static Datastore ds(String datasourceName) { + Datastore ds = dataStores_.get(datasourceName); + if (ds == null) { + + if (DEFAULT_DS_NAME.equals(datasourceName)) { + throw new RuntimeException( + "There is no default datasource configured. Please check that the application.conf file " + + "contains default morphia configuration or that the @Datasource annotations in your model " + + "classes match the names of the configured morphia datasources "); + } else { + ds = dataStores_.get(DEFAULT_DS_NAME); + + if (ds == null) { + throw new RuntimeException( + "Application.conf does not contain a morphia configuration named " + datasourceName + + ", nor does it contain a default morphia configuration"); + } } } + return ds; } + + public static GridFS gridFs() { + return gridfs; + } - public static Morphia morphia() { - return morphia_; + public static Morphia morphia(String dsName) { + return morphias_.get(dsName); } @Override @@ -269,8 +282,6 @@ static void onBatchLifeCycleEvent(MorphiaEvent event, MorphiaQuery query) { } } - private static Mongo mongo_; - /* * Connect using conf - morphia.db.host=host1,host2... - * morphia.db.port=port1,port2... @@ -337,38 +348,143 @@ public void onConfigurationRead() { debug("reading configuration"); initIdType_(); MorphiaPlugin.postPluginEvent = Boolean.parseBoolean(Play.configuration.getProperty("morphia.postPluginEvent", "false")); + getDatasourceNames_(); configureConnection_(); configured_ = true; } + private static final Set datasourceNames_ = new HashSet(); + private final Pattern namedDatasourceKeyPattern = Pattern.compile(PREFIX + "([a-zA-Z0-9]+)\\.(host|port|name|username|password|seeds)"); + + private void getDatasourceNames_() { + Properties c = Play.configuration; + Enumeration propertyNames = (Enumeration)c.propertyNames(); + while(propertyNames.hasMoreElements()) { + String propertyName = propertyNames.nextElement(); + + Matcher matcher = namedDatasourceKeyPattern.matcher(propertyName); + if (matcher.matches()) { + String datasourceName = matcher.group(1); + + if (null != datasourceName && + !"".equals(datasourceName) && + !"collection".equals(datasourceName)) { + + datasourceNames_.add(datasourceName); + } + } + } + } + private void configureConnection_() { + if (!datasourceNames_.isEmpty()) { + for (String dsName : datasourceNames_) { + configureConnection_(dsName); + } + } + + //should only load this if there are no named datasources or if there are named datasources, + //then there needs to be properties defined. Should not load default properties if named + //datasources are already loaded + if (containsDefaultDatasourceConfiguration()) { + configureConnection_(null); + } + } + + private static final ConcurrentMap mongos_ = new ConcurrentHashMap(); + + private void configureConnection_(String datastoreName) { Properties c = Play.configuration; - - String seeds = c.getProperty(PREFIX + "seeds"); - if (!StringUtil.isEmpty(seeds)) - mongo_ = connect_(seeds); - else { - String host = c.getProperty(PREFIX + "host", "localhost"); - String port = c.getProperty(PREFIX + "port", "27017"); - mongo_ = connect_(host, port); + String prefix = (null == datastoreName || "".equals(datastoreName)) ? PREFIX : PREFIX + datastoreName + "."; + String dsKey = (null == datastoreName || "".equals(datastoreName)) ? DEFAULT_DS_NAME : datastoreName; + + Mongo mongo = null; + + String seeds = c.getProperty(prefix + "seeds"); + if (!StringUtil.isEmpty(seeds)) { + Logger.debug("Connecting to Mongo replica set %s", seeds); + mongo = connect_(seeds); + } else { + String host = c.getProperty(prefix + "host", "localhost"); + String port = c.getProperty(prefix + "port", "27017"); + Logger.debug("Connecting to Mongo %s:%s ", host, port); + mongo = connect_(host, port); } + + if (null == mongo) { + throw new ConfigurationException("Could not connect to mongo with parameters defined for key " + dsKey); + } else { + mongos_.put(dsKey, mongo); + } + } + + private final Pattern defaultDatasourceKeyPattern = Pattern.compile(PREFIX + "(host|port|name|username|password|seeds)"); + + private boolean containsDefaultDatasourceConfiguration() { + Properties c = Play.configuration; + Enumeration propertyNames = (Enumeration)c.propertyNames(); + + while(propertyNames.hasMoreElements()) { + String propertyName = propertyNames.nextElement(); + + Matcher matcher = defaultDatasourceKeyPattern.matcher(propertyName); + if (matcher.matches()) { + return true; + } + } + + return false; } @SuppressWarnings("unchecked") private void initMorphia_() { + initMorphias_(); + setupGridFS(); + initIdType_(); + } + + private static final ConcurrentMap dbs_ = new ConcurrentHashMap(); + private static final ConcurrentMap morphias_ = new ConcurrentHashMap(); + + private void initMorphias_() { + if (!datasourceNames_.isEmpty()) { + + for (String dsName : datasourceNames_) { + Morphia morphia = initMorphia_(dsName, mongos_.get(dsName)); + } + + Logger.debug("Morphia datasource keys found in application.conf %s", datasourceNames_); + } + + //should only load this if there are no named datasources or if there are named datasources, + //then there needs to be properties defined. Should not load default properties if named + //datasources are already loaded + if (containsDefaultDatasourceConfiguration()) { + Morphia morphia = initMorphia_(null, mongos_.get(DEFAULT_DS_NAME)); + } + } + + private Morphia initMorphia_(String datastoreName, Mongo mongo) { Properties c = Play.configuration; + String prefix = (null == datastoreName || "".equals(datastoreName)) ? PREFIX : PREFIX + datastoreName + "."; + String dsKey = (null == datastoreName || "".equals(datastoreName)) ? DEFAULT_DS_NAME : datastoreName; + + Logger.debug("Initializing %s morphia datasource", dsKey); - String dbName = c.getProperty(PREFIX + "name"); + String dbName = c.getProperty(prefix + "name"); if (null == dbName) { - warn("mongodb name not configured! using [test] db"); + Logger.warn("mongodb name not configured! using [test] db"); dbName = "test"; } - DB db = mongo_.getDB(dbName); - if (c.containsKey(PREFIX + "username") && c.containsKey(PREFIX + "password")) { - String username = c.getProperty(PREFIX + "username"); - String password = c.getProperty(PREFIX + "password"); - if (!db.isAuthenticated() && !db.authenticate(username, password.toCharArray())) { - throw new RuntimeException("MongoDB authentication failed: " + dbName); + + DB db = mongo.getDB(dbName); + if (c.containsKey(prefix + "username") + && c.containsKey(prefix + "password")) { + String username = c.getProperty(prefix + "username"); + String password = c.getProperty(prefix + "password"); + if (!db.authenticate(username, password.toCharArray())) { + throw new RuntimeException("MongoDB authentication failed: " + + dbName); } } @@ -390,15 +506,17 @@ private void initMorphia_() { loggerRegistered_ = false; MorphiaLoggerFactory.reset(); MorphiaLoggerFactory.registerLogger(loggerClazz); - morphia_ = new Morphia(); - loggerRegistered_ = true; - ds_ = morphia_.createDatastore(mongo_, dbName); - dataStores_.put(dbName, ds_); - String uploadCollection = c.getProperty("morphia.collection.upload", "uploads"); - gridfs = new GridFS(MorphiaPlugin.ds().getDB(), uploadCollection); - morphia_.getMapper().addInterceptor(new AbstractEntityInterceptor(){ + dbs_.put(dsKey, db); + + Morphia morphia = new Morphia(); + morphias_.put(dsKey, morphia); + + Datastore ds = morphia.createDatastore(mongo, dbName); + ds.ensureIndexes(); + + morphia.getMapper().addInterceptor(new AbstractEntityInterceptor(){ @Override public void preLoad(Object ent, DBObject dbObj, Mapper mapr) { if (ent instanceof Model) { @@ -416,6 +534,65 @@ public void postLoad(Object ent, DBObject dbObj, Mapper mapr) { } } }); + + + String writeConcern = Play.configuration.getProperty("morphia.defaultWriteConcern", "safe"); + if (null != writeConcern) { + ds.setDefaultWriteConcern(WriteConcern.valueOf(writeConcern.toUpperCase())); + } + + dataStores_.put(dsKey, ds); + Logger.debug("Datasource %s initialized", dsKey); + + configured_ = true; + + return morphia; + } + + private final Pattern gridFSKeyPattern = Pattern.compile("morphia" + "([a-zA-Z0-9]+).collection.upload"); + + //GridFS is special, it must be be configured on only one node + //in a multi-node configuration due to have the Blob class in implemented + //If this is not a multi-node setup, then it can use a default + //setup with the default ds. + private void setupGridFS() { + Properties c = Play.configuration; + Enumeration propertyNames = (Enumeration)c.propertyNames(); + + String gridFsKeyName = null; + String gridFsNodeName = null; + + while(propertyNames.hasMoreElements()) { + String propertyName = propertyNames.nextElement(); + + Matcher matcher = gridFSKeyPattern.matcher(propertyName); + if (matcher.matches()) { + gridFsKeyName = matcher.group(0); + gridFsNodeName = matcher.group(1); + } + } + + String dbName = null; + String gridFsUploadDir = null; + + if (null != gridFsKeyName && !"".equals(gridFsKeyName)) { + gridFsUploadDir = c.getProperty(gridFsKeyName, "uploads"); + dbName = gridFsNodeName; + + } else { + gridFsUploadDir = c.getProperty("morphia.collection.upload", "uploads"); + dbName = DEFAULT_DS_NAME; + } + + + DB db = dbs_.get(dbName); + if (null == db) { + throw new ConfigurationException("Datasource name not configured: " + dbName); + } + + gridfs = new GridFS(db, gridFsUploadDir); + Logger.debug("Initialized GridFS for db %s using path %s", db.getName(), gridFsUploadDir); + } private void initIdType_() { @@ -435,6 +612,9 @@ private void initIdType_() { fatal(e, msg); throw new ConfigurationException(msg); } + } else { + idType_ = IdType.ObjectId; + debug("Id type set to default: ObjectId."); } } @@ -526,6 +706,23 @@ public void onInvocationException(Throwable e) { } private void configureDs_() { + if (!datasourceNames_.isEmpty()) { + + for (String dsName : datasourceNames_) { + Morphia morphia = morphias_.get(dsName); + configureDs_(morphia, dsName); + } + + Logger.debug("Morphia datasource keys found in application.conf %s", datasourceNames_); + } + + if (containsDefaultDatasourceConfiguration()) { + Morphia morphia = morphias_.get(DEFAULT_DS_NAME); + configureDs_(morphia, DEFAULT_DS_NAME); + } + } + + private void configureDs_(Morphia morphia, String dsName) { List> pending = new ArrayList>(); Map, Integer> retries = new HashMap, Integer>(); List cs = Play.classes.all(); @@ -534,7 +731,7 @@ private void configureDs_() { if (clz.isAnnotationPresent(Entity.class)) { try { debug("mapping class: %1$s", clz.getName()); - morphia_.map(clz); + morphia.map(clz); } catch (ConstraintViolationException e) { error(e, "error mapping class [%1$s]", clz); pending.add(clz); @@ -547,7 +744,7 @@ private void configureDs_() { for (Class clz : pending) { try { debug("mapping class: ", clz.getName()); - morphia_.map(clz); + morphia.map(clz); pending.remove(clz); } catch (ConstraintViolationException e) { error(e, "error mapping class [%1$s]", clz); @@ -561,12 +758,12 @@ private void configureDs_() { } } - ds().ensureIndexes(); + ds(dsName).ensureIndexes(); String writeConcern = Play.configuration.getProperty( "morphia.defaultWriteConcern", "safe"); if (null != writeConcern) { - ds().setDefaultWriteConcern( + ds(dsName).setDefaultWriteConcern( WriteConcern.valueOf(writeConcern.toUpperCase())); } } @@ -604,6 +801,36 @@ public Object bind(String name, Object o, Map params) { return null; } + private static final ConcurrentMap datasourceNameMap = new ConcurrentHashMap(); + + public static String getDatasourceNameFromAnnotation(Class clazz) { + + if (datasourceNameMap.containsKey(clazz)) { + return datasourceNameMap.get(clazz); + + } else { + + if (Model.class.isAssignableFrom(clazz)) { + for (Annotation annotation : clazz.getAnnotations()) { + if (Datasource.class.isAssignableFrom(annotation.annotationType())) { + Datasource ds = (Datasource)annotation; + + datasourceNameMap.put(clazz, ds.name()); + warn("associating %s with %s", clazz, ds.name()); + + return ds.name(); + } + } + } + + datasourceNameMap.put(clazz, DEFAULT_DS_NAME); + return DEFAULT_DS_NAME; + + + } + + } + @SuppressWarnings("unchecked") @Override public Model.Factory modelFactory(Class modelClass) { diff --git a/src/play/modules/morphia/utils/IdGenerator.java b/src/play/modules/morphia/utils/IdGenerator.java index bce9b95..d13f923 100644 --- a/src/play/modules/morphia/utils/IdGenerator.java +++ b/src/play/modules/morphia/utils/IdGenerator.java @@ -13,8 +13,8 @@ public class IdGenerator { - public static Datastore ds() { - return MorphiaPlugin.ds(); + public static Datastore ds(String dsName) { + return MorphiaPlugin.ds(dsName); } public static Object generateId(Model entity){ IdType t = MorphiaPlugin.getIdType(); @@ -33,13 +33,15 @@ public static Long generateLongId(T entity){ } public static Long generateLongId(Class clazz){ - String collName = ds().getCollection(clazz).getName(); - Query q = ds().find(StoredId.class, "_id", collName); - UpdateOperations uOps = ds().createUpdateOperations(StoredId.class).inc("value"); - StoredId newId = ds().findAndModify(q, uOps); + String dsName = MorphiaPlugin.getDatasourceNameFromAnnotation(clazz); + + String collName = ds(dsName).getCollection(clazz).getName(); + Query q = ds(dsName).find(StoredId.class, "_id", collName); + UpdateOperations uOps = ds(dsName).createUpdateOperations(StoredId.class).inc("value"); + StoredId newId = ds(dsName).findAndModify(q, uOps); if (newId == null) { newId = new StoredId(collName); - ds().save(newId); + ds(dsName).save(newId); } return newId.getValue(); } diff --git a/src/play/test/MorphiaFixtures.java b/src/play/test/MorphiaFixtures.java index f9a76eb..9185f96 100644 --- a/src/play/test/MorphiaFixtures.java +++ b/src/play/test/MorphiaFixtures.java @@ -13,7 +13,7 @@ public class MorphiaFixtures extends Fixtures { private static Datastore ds() { - return MorphiaPlugin.ds(); + return MorphiaPlugin.ds(MorphiaPlugin.DEFAULT_DS_NAME); } public static void deleteDatabase() {