Java Doc for EntityUtil.java in  » ERP-CRM-Financial » ofbiz » org » ofbiz » entity » util » 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 » ofbiz » org.ofbiz.entity.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.entity.util.EntityUtil

EntityUtil
public class EntityUtil (Code)
Helper methods when dealing with Entities, especially ones that follow certain conventions


Field Summary
final public static  Stringmodule
    


Method Summary
public static  voiddelDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search)
    
public static  voiddelDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now)
    
public static  ListfilterByAnd(List values, Map fields)
    
public static  ListfilterByAnd(List values, List exprs)
    
public static  ListfilterByCondition(List values, EntityCondition condition)
    
public static  ListfilterByDate(List datedValues)
     returns the values that are currently active.
public static  ListfilterByDate(List datedValues, boolean allAreSame)
     returns the values that are currently active.
public static  ListfilterByDate(List datedValues, java.util.Date moment)
     returns the values that are active at the moment.
public static  ListfilterByDate(List datedValues, java.sql.Timestamp moment)
     returns the values that are active at the moment.
public static  ListfilterByDate(List datedValues, java.sql.Timestamp moment, String fromDateName, String thruDateName, boolean allAreSame)
     returns the values that are active at the moment.
public static  ListfilterByOr(List values, List exprs)
    
public static  ListfilterOutByCondition(List values, EntityCondition condition)
    
public static  ListfindDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search)
    
public static  ListfindDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now)
    
public static  ListgetFieldListFromEntityList(List genericValueList, String fieldName, boolean distinct)
    
public static  ListgetFieldListFromEntityListIterator(EntityListIterator genericValueEli, String fieldName, boolean distinct)
    
public static  EntityConditiongetFilterByDateExpr()
    
public static  EntityConditiongetFilterByDateExpr(String fromDateName, String thruDateName)
    
public static  EntityConditiongetFilterByDateExpr(java.util.Date moment)
    
public static  EntityConditiongetFilterByDateExpr(java.sql.Timestamp moment)
    
public static  EntityConditiongetFilterByDateExpr(java.sql.Timestamp moment, String fromDateName, String thruDateName)
    
public static  GenericValuegetFirst(List values)
    
public static  GenericValuegetOnly(List values)
    
public static  ListgetRelated(String relationName, List values)
    
public static  ListgetRelatedByAnd(String relationName, Map fields, List values)
    
public static  ListgetRelatedCache(String relationName, List values)
    
public static  booleanisValueActive(GenericValue datedValue, java.sql.Timestamp moment)
    
public static  booleanisValueActive(GenericValue datedValue, java.sql.Timestamp moment, String fromDateName, String thruDateName)
    
public static  GenericValuenewDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search)
    
public static  GenericValuenewDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now)
    
public static  ListorderBy(Collection values, List orderBy)
    

Field Detail
module
final public static String module(Code)





Method Detail
delDatedInclusionEntity
public static void delDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search) throws GenericEntityException(Code)



delDatedInclusionEntity
public static void delDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now) throws GenericEntityException(Code)



filterByAnd
public static List filterByAnd(List values, Map fields)(Code)
returns the values that match the values in fields
Parameters:
  values - List of GenericValues
Parameters:
  fields - the field-name/value pairs that must match List of GenericValue's that match the values in fields



filterByAnd
public static List filterByAnd(List values, List exprs)(Code)
returns the values that match all of the exprs in list
Parameters:
  values - List of GenericValues
Parameters:
  exprs - the expressions that must validate to true List of GenericValue's that match the values in fields



filterByCondition
public static List filterByCondition(List values, EntityCondition condition)(Code)



filterByDate
public static List filterByDate(List datedValues)(Code)
returns the values that are currently active.
Parameters:
  datedValues - GenericValue's that have "fromDate" and "thruDate" fields List of GenericValue's that are currently active



filterByDate
public static List filterByDate(List datedValues, boolean allAreSame)(Code)
returns the values that are currently active.
Parameters:
  datedValues - GenericValue's that have "fromDate" and "thruDate" fields
Parameters:
  allAreSame - Specifies whether all values in the List are of the same entity; this can help speed things up a fair amount since we only have to see if the from and thru date fields are valid once List of GenericValue's that are currently active



filterByDate
public static List filterByDate(List datedValues, java.util.Date moment)(Code)
returns the values that are active at the moment.
Parameters:
  datedValues - GenericValue's that have "fromDate" and "thruDate" fields
Parameters:
  moment - the moment in question List of GenericValue's that are active at the moment



filterByDate
public static List filterByDate(List datedValues, java.sql.Timestamp moment)(Code)
returns the values that are active at the moment.
Parameters:
  datedValues - GenericValue's that have "fromDate" and "thruDate" fields
Parameters:
  moment - the moment in question List of GenericValue's that are active at the moment



filterByDate
public static List filterByDate(List datedValues, java.sql.Timestamp moment, String fromDateName, String thruDateName, boolean allAreSame)(Code)
returns the values that are active at the moment.
Parameters:
  datedValues - GenericValue's that have "fromDate" and "thruDate" fields
Parameters:
  moment - the moment in question
Parameters:
  allAreSame - Specifies whether all values in the List are of the same entity; this can help speed things up a fair amount since we only have to see if the from and thru date fields are valid once List of GenericValue's that are active at the moment



filterByOr
public static List filterByOr(List values, List exprs)(Code)
returns the values that match any of the exprs in list
Parameters:
  values - List of GenericValues
Parameters:
  exprs - the expressions that must validate to true List of GenericValue's that match the values in fields



filterOutByCondition
public static List filterOutByCondition(List values, EntityCondition condition)(Code)



findDatedInclusionEntity
public static List findDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search) throws GenericEntityException(Code)



findDatedInclusionEntity
public static List findDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now) throws GenericEntityException(Code)



getFieldListFromEntityList
public static List getFieldListFromEntityList(List genericValueList, String fieldName, boolean distinct)(Code)



getFieldListFromEntityListIterator
public static List getFieldListFromEntityListIterator(EntityListIterator genericValueEli, String fieldName, boolean distinct)(Code)



getFilterByDateExpr
public static EntityCondition getFilterByDateExpr()(Code)



getFilterByDateExpr
public static EntityCondition getFilterByDateExpr(String fromDateName, String thruDateName)(Code)



getFilterByDateExpr
public static EntityCondition getFilterByDateExpr(java.util.Date moment)(Code)



getFilterByDateExpr
public static EntityCondition getFilterByDateExpr(java.sql.Timestamp moment)(Code)



getFilterByDateExpr
public static EntityCondition getFilterByDateExpr(java.sql.Timestamp moment, String fromDateName, String thruDateName)(Code)



getFirst
public static GenericValue getFirst(List values)(Code)



getOnly
public static GenericValue getOnly(List values)(Code)



getRelated
public static List getRelated(String relationName, List values) throws GenericEntityException(Code)



getRelatedByAnd
public static List getRelatedByAnd(String relationName, Map fields, List values) throws GenericEntityException(Code)



getRelatedCache
public static List getRelatedCache(String relationName, List values) throws GenericEntityException(Code)



isValueActive
public static boolean isValueActive(GenericValue datedValue, java.sql.Timestamp moment)(Code)



isValueActive
public static boolean isValueActive(GenericValue datedValue, java.sql.Timestamp moment, String fromDateName, String thruDateName)(Code)



newDatedInclusionEntity
public static GenericValue newDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search) throws GenericEntityException(Code)



newDatedInclusionEntity
public static GenericValue newDatedInclusionEntity(GenericDelegator delegator, String entityName, Map search, Timestamp now) throws GenericEntityException(Code)



orderBy
public static List orderBy(Collection values, List orderBy)(Code)
returns the values in the order specified
Parameters:
  values - List of GenericValues
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's in the proper order



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.