net.csdn.mongo.association
Class HasManyAssociation

java.lang.Object
  extended by net.csdn.mongo.association.HasManyAssociation
All Implemented Interfaces:
Association

public class HasManyAssociation
extends Object
implements Association

User: WilliamZhu Date: 12-10-17 Time: 上午10:09


Constructor Summary
HasManyAssociation(String name, Options options)
           
 
Method Summary
 Association build(Map params)
           
 int count()
           
 Association doNotUseMePlease_newMe(Document document)
           
<T> List<T>
find(List list)
           
<T> List<T>
findAll()
           
<T> T
findById(Object id)
           
<T> T
findOne()
           
 Criteria in(Map in)
           
 Criteria limit(int limit)
           
 Criteria not(Map not)
           
 Criteria notIn(Map notIn)
           
 Criteria order(Map orderBy)
           
 Association remove(Document document)
           
 void save()
           
 Criteria select(List fieldNames)
           
 Criteria skip(int skip)
           
 Criteria where(Map conditions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HasManyAssociation

public HasManyAssociation(String name,
                          Options options)
Method Detail

build

public Association build(Map params)
Specified by:
build in interface Association

remove

public Association remove(Document document)
Specified by:
remove in interface Association

save

public void save()
Specified by:
save in interface Association

where

public Criteria where(Map conditions)
Specified by:
where in interface Association

select

public Criteria select(List fieldNames)
Specified by:
select in interface Association

order

public Criteria order(Map orderBy)
Specified by:
order in interface Association

skip

public Criteria skip(int skip)
Specified by:
skip in interface Association

limit

public Criteria limit(int limit)
Specified by:
limit in interface Association

count

public int count()
Specified by:
count in interface Association

in

public Criteria in(Map in)
Specified by:
in in interface Association

not

public Criteria not(Map not)
Specified by:
not in interface Association

notIn

public Criteria notIn(Map notIn)
Specified by:
notIn in interface Association

findById

public <T> T findById(Object id)
Specified by:
findById in interface Association

findOne

public <T> T findOne()
Specified by:
findOne in interface Association

find

public <T> List<T> find(List list)
Specified by:
find in interface Association

findAll

public <T> List<T> findAll()
Specified by:
findAll in interface Association

doNotUseMePlease_newMe

public Association doNotUseMePlease_newMe(Document document)
Specified by:
doNotUseMePlease_newMe in interface Association


Copyright © 2014. All Rights Reserved.