Java Doc for BusinessObject.java in  » Web-Framework » JAT » com » jat » business » 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 » Web Framework » JAT » com.jat.business 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jat.business.BusinessObject

All known Subclasses:   com.jat.business.JatUser,  com.jat.business.privileges.Privilege,  com.jat.presentation.parameter.HttpRequestParameters,  com.jat.business.BusinessObjectImpl,
BusinessObject
public class BusinessObject implements Orderable,XMLable,Serializable(Code)

Title: JAT

Description: this class represent the JAT main Business Object model of your application.
It is composed of a set of properties (see BusinessObjectProperties ) that you can get with getField , getFieldAsObject and getProperties methods and set with the putField or setProperties methods.
A Business Object instance is also sortable from a com.jat.business.BusinessObjectList and is possible to get its XML format ( toXML and getXmlDocument methods).

If you want to build your own Business Object, you must create:

Copyright: Copyright (c) 2004 -2005 Stefano Fratini (stefano.fratini@gmail.com)

Distributed under the terms of the GNU Lesser General Public License, v2.1 or later


author:
   stf
version:
   1.1
See Also:   com.com.jat.business.BusinessObjectList
See Also:   com.com.jat.business.BusinessObjectFactory


Field Summary
static  Stringobject
    
protected  StringorderBy
    
static  Stringproperty
    
static  Stringschema
    

Constructor Summary
public  BusinessObject(String dataSourceName)
    
public  BusinessObject(String dataSourceName, Object orderBy)
    
public  BusinessObject(String dataSourceName, BusinessObjectProperties properties)
    
public  BusinessObject(String dataSourceName, BusinessObjectProperties properties, Object orderBy)
    

Method Summary
public  booleanequals(Object other)
    
public  EnumerationfieldNames()
    
public static  BusinessObjectgetBusinessObject(BusinessObjectFactory factory, String dataSourceName, String name, BusinessObjectProperties properties)
     Return the business object loaded from a data source by an operation using the specific properties
Parameters:
  factory - the com.jat.business.BusinessObjectFactory instance
Parameters:
  dataSourceName - the configured data source (see com.jat.integration.DataSource configuration)
Parameters:
  name - the operation name of the data source (see com.jat.integration.DataSource configuration)
Parameters:
  properties - the list of property used by the specified operation.
public  StringgetDataSourceName()
    
public  java.util.DategetDateFromMillisec(String fieldName)
    
public  StringgetField(String name)
    
public  ObjectgetFieldAsObject(String fieldName)
    
public  ObjectgetOrderBy()
    
public  BusinessObjectPropertiesgetProperties()
    
public  ObjectgetValue()
    
public  DocumentgetXmlDocument(boolean validate)
    
public  booleangreatThan(Orderable _obj)
    
public  booleanlessThan(Orderable _obj)
    
public  voidorderBy(Object order)
    
public  BusinessObjectPropertiespersist(String operation)
    
public  voidputField(String key, Object value)
    
public  ObjectremoveField(String key)
    
public  voidsetProperties(BusinessObjectProperties properties)
    
public  StringtoString()
    
public  StringtoXML()
    

Field Detail
object
static String object(Code)



orderBy
protected String orderBy(Code)



property
static String property(Code)



schema
static String schema(Code)




Constructor Detail
BusinessObject
public BusinessObject(String dataSourceName)(Code)



BusinessObject
public BusinessObject(String dataSourceName, Object orderBy)(Code)



BusinessObject
public BusinessObject(String dataSourceName, BusinessObjectProperties properties)(Code)



BusinessObject
public BusinessObject(String dataSourceName, BusinessObjectProperties properties, Object orderBy)(Code)




Method Detail
equals
public boolean equals(Object other)(Code)



fieldNames
public Enumeration fieldNames()(Code)



getBusinessObject
public static BusinessObject getBusinessObject(BusinessObjectFactory factory, String dataSourceName, String name, BusinessObjectProperties properties) throws BusinessException, IntegrationException(Code)
Return the business object loaded from a data source by an operation using the specific properties
Parameters:
  factory - the com.jat.business.BusinessObjectFactory instance
Parameters:
  dataSourceName - the configured data source (see com.jat.integration.DataSource configuration)
Parameters:
  name - the operation name of the data source (see com.jat.integration.DataSource configuration)
Parameters:
  properties - the list of property used by the specified operation. It can be null. the Business Object matching with properties in the operation of the data source
throws:
  java.lang.Exception - if an error occours



getDataSourceName
public String getDataSourceName()(Code)



getDateFromMillisec
public java.util.Date getDateFromMillisec(String fieldName)(Code)



getField
public String getField(String name)(Code)



getFieldAsObject
public Object getFieldAsObject(String fieldName)(Code)



getOrderBy
public Object getOrderBy()(Code)



getProperties
public BusinessObjectProperties getProperties()(Code)



getValue
public Object getValue()(Code)



getXmlDocument
public Document getXmlDocument(boolean validate) throws SAXException, ParserConfigurationException, IOException(Code)



greatThan
public boolean greatThan(Orderable _obj)(Code)



lessThan
public boolean lessThan(Orderable _obj)(Code)



orderBy
public void orderBy(Object order)(Code)



persist
public BusinessObjectProperties persist(String operation) throws BusinessException(Code)



putField
public void putField(String key, Object value)(Code)



removeField
public Object removeField(String key)(Code)



setProperties
public void setProperties(BusinessObjectProperties properties)(Code)



toString
public String toString()(Code)



toXML
public String toXML()(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.