Java Doc for GenericDAO.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » entity » datasource » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » SourceTap CRM » org.ofbiz.entity.datasource 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.entity.datasource.GenericDAO

GenericDAO
public class GenericDAO (Code)
Generic Entity Data Access Object - Handles persisntence for any defined entity.
author:
   David E. Jones
author:
   Andy Zeneski
author:
   Chris Maurer
author:
   Juergen Donnerstag
author:
   Rene Gielen
author:
   John Nutting
version:
   $Revision: 1.15 $
since:
   1.0


Field Summary
protected  EntityConfigUtil.DatasourceInfodatasourceInfo
    
protected static  MapgenericDAOs
    
protected  StringhelperName
    
protected  ModelFieldTypeReadermodelFieldTypeReader
    
final public static  Stringmodule
    

Constructor Summary
public  GenericDAO(String helperName)
    

Method Summary
public  voidcheckDb(Map modelEntities, List messages, boolean addMissing)
    
public  intdelete(GenericEntity entity)
    
public  intdelete(GenericEntity entity, SQLProcessor sqlP)
    
public  intdeleteAll(List dummyPKs)
    
public  intdeleteByAnd(ModelEntity modelEntity, Map fields)
    
public  intdeleteByAnd(ModelEntity modelEntity, Map fields, SQLProcessor sqlP)
    
public static  GenericDAOgetGenericDAO(String helperName)
    
public  ListinduceModelFromDb(Collection messages)
    
public  intinsert(GenericEntity entity)
    
public  voidpartialSelect(GenericEntity entity, Set keys)
    
public  voidselect(GenericEntity entity)
    
public  voidselect(GenericEntity entity, SQLProcessor sqlP)
    
public  ListselectByAnd(ModelEntity modelEntity, Map fields, List orderBy)
    
public  ListselectByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection fieldsToSelect, List orderBy)
     Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
public  ListselectByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List orderBy)
    
public  ListselectByOr(ModelEntity modelEntity, Map fields, List orderBy)
    
public  longselectCountByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition)
    
public  EntityListIteratorselectListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection fieldsToSelect, List orderBy, EntityFindOptions findOptions)
     Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
Parameters:
  modelEntity - The ModelEntity of the Entity as defined in the entity XML file
Parameters:
  whereEntityCondition - The EntityCondition object that specifies how to constrain this query before any groupings are done (if this is a view entity with group-by aliases)
Parameters:
  havingEntityCondition - The EntityCondition object that specifies how to constrain this query after any groupings are done (if this is a view entity with group-by aliases)
Parameters:
  fieldsToSelect - The fields of the named entity to get from the database; if empty or null all fields will be retreived
Parameters:
  orderBy - The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
Parameters:
  findOptions - An instance of EntityFindOptions that specifies advanced query options.
public  intstoreAll(List entities)
    
public  intupdate(GenericEntity entity)
    
public  intupdateAll(GenericEntity entity)
    

Field Detail
datasourceInfo
protected EntityConfigUtil.DatasourceInfo datasourceInfo(Code)



genericDAOs
protected static Map genericDAOs(Code)



helperName
protected String helperName(Code)



modelFieldTypeReader
protected ModelFieldTypeReader modelFieldTypeReader(Code)



module
final public static String module(Code)




Constructor Detail
GenericDAO
public GenericDAO(String helperName)(Code)




Method Detail
checkDb
public void checkDb(Map modelEntities, List messages, boolean addMissing)(Code)



delete
public int delete(GenericEntity entity) throws GenericEntityException(Code)



delete
public int delete(GenericEntity entity, SQLProcessor sqlP) throws GenericEntityException(Code)



deleteAll
public int deleteAll(List dummyPKs) throws GenericEntityException(Code)
Called dummyPKs because they can be invalid PKs, doing a deleteByAnd instead of a normal delete



deleteByAnd
public int deleteByAnd(ModelEntity modelEntity, Map fields) throws GenericEntityException(Code)



deleteByAnd
public int deleteByAnd(ModelEntity modelEntity, Map fields, SQLProcessor sqlP) throws GenericEntityException(Code)



getGenericDAO
public static GenericDAO getGenericDAO(String helperName)(Code)



induceModelFromDb
public List induceModelFromDb(Collection messages)(Code)
Creates a list of ModelEntity objects based on meta data from the database



insert
public int insert(GenericEntity entity) throws GenericEntityException(Code)



partialSelect
public void partialSelect(GenericEntity entity, Set keys) throws GenericEntityException(Code)



select
public void select(GenericEntity entity) throws GenericEntityException(Code)



select
public void select(GenericEntity entity, SQLProcessor sqlP) throws GenericEntityException(Code)



selectByAnd
public List selectByAnd(ModelEntity modelEntity, Map fields, List orderBy) throws GenericEntityException(Code)



selectByCondition
public List selectByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection fieldsToSelect, List orderBy) throws GenericEntityException(Code)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
Parameters:
  modelEntity - The ModelEntity of the Entity as defined in the entity XML file
Parameters:
  entityCondition - The EntityCondition object that specifies how to constrain this query
Parameters:
  fieldsToSelect - The fields of the named entity to get from the database; if empty or null all fields will be retreived
Parameters:
  orderBy - The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending List of GenericValue objects representing the result



selectByMultiRelation
public List selectByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List orderBy) throws GenericEntityException(Code)



selectByOr
public List selectByOr(ModelEntity modelEntity, Map fields, List orderBy) throws GenericEntityException(Code)



selectCountByCondition
public long selectCountByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition) throws GenericEntityException(Code)



selectListIteratorByCondition
public EntityListIterator selectListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection fieldsToSelect, List orderBy, EntityFindOptions findOptions) throws GenericEntityException(Code)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
Parameters:
  modelEntity - The ModelEntity of the Entity as defined in the entity XML file
Parameters:
  whereEntityCondition - The EntityCondition object that specifies how to constrain this query before any groupings are done (if this is a view entity with group-by aliases)
Parameters:
  havingEntityCondition - The EntityCondition object that specifies how to constrain this query after any groupings are done (if this is a view entity with group-by aliases)
Parameters:
  fieldsToSelect - The fields of the named entity to get from the database; if empty or null all fields will be retreived
Parameters:
  orderBy - The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
Parameters:
  findOptions - An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details. EntityListIterator representing the result of the query: NOTE THAT THIS MUST BE CLOSED WHEN YOU AREDONE WITH IT, AND DON'T LEAVE IT OPEN TOO LONG BEACUSE IT WILL MAINTAIN A DATABASE CONNECTION.



storeAll
public int storeAll(List entities) throws GenericEntityException(Code)



update
public int update(GenericEntity entity) throws GenericEntityException(Code)



updateAll
public int updateAll(GenericEntity entity) throws GenericEntityException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.