net.csdn.jpa.association
Class Association

java.lang.Object
  extended by net.csdn.jpa.association.Association

public class Association
extends Object

User: WilliamZhu Date: 12-7-26 Time: 下午7:36


Constructor Summary
Association(Model object, String field, String targetField, String type)
           
Association(Model object, String field, String targetField, String type, String tableName, String master)
           
 
Method Summary
 boolean add(JPABase model)
           
 boolean add(Map params)
           
 long count()
           
 long count(String countStr)
           
 void delete()
           
 List fetch()
           
 JPQL limit(Integer limit)
           
 JPQL offset(Integer offset)
           
 JPQL order(String orderBy)
           
 void remove(JPABase model)
           
 boolean set(JPABase model)
           
 JPQL where(Map whereQuery)
           
 JPQL where(String where)
           
 JPQL where(String where, Map<String,Object> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Association

public Association(Model object,
                   String field,
                   String targetField,
                   String type)

Association

public Association(Model object,
                   String field,
                   String targetField,
                   String type,
                   String tableName,
                   String master)
Method Detail

remove

public void remove(JPABase model)

fetch

public List fetch()

count

public long count()

count

public long count(String countStr)

where

public JPQL where(String where,
                  Map<String,Object> params)

where

public JPQL where(String where)

where

public JPQL where(Map whereQuery)

order

public JPQL order(String orderBy)

offset

public JPQL offset(Integer offset)

limit

public JPQL limit(Integer limit)

delete

public void delete()

set

public boolean set(JPABase model)

add

public boolean add(Map params)

add

public boolean add(JPABase model)


Copyright © 2014. All Rights Reserved.