Java Doc for DataField.java in  » J2EE » Expresso » com » jcorporate » expresso » core » dataobjects » 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 » J2EE » Expresso » com.jcorporate.expresso.core.dataobjects 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.dataobjects.DataField

All known Subclasses:   com.jcorporate.expresso.core.dataobjects.DefaultDataField,  com.jcorporate.expresso.core.dataobjects.jdbc.JoinedDataField,
DataField
public interface DataField (Code)
This class represents a single field of data that is stored within the data object. It will provide basic manipulations such as it's original value, and attribute holdings.
author:
   Michael Rimov
since:
   Expresso 5.0.1




Method Summary
public  BigDecimalasBigDecimal()
     Retrieve the wrapped object as a BigDecimal object or zero if we're unable to convert it.
public  BooleanasBoolean()
     Retrieve the boolean object value.
public  DateasDate()
     Retrieve the wrapped object as a Date object or possibly null if we can't convert it or the object is null.
public  DoubleasDouble()
    
public  IntegerasInteger()
     Retrieves the wrapped object as an Integer or zero if it's an invalid format.
public  InputStreamasStream()
     Allows for retrieval of BLOB database types.
public  StringasString()
    
public  voidcacheIsChangedComparison()
     call after add() or update().
public  voidcheckValue()
     Make sure the value of the field is valid.
public  MapgetAllAttributes()
     Returns a Read Only Map of all attributes in name-value pairs.
public  ObjectgetAttribute(String attributeName)
     Retrieves any user defined attributes for this field.
public  DataFieldMetaDatagetFieldMetaData()
     Returns a handle to the Field MetaData object.
public  ObjectgetOriginalValue()
    
public  DataObjectgetOwner()
    
public  ObjectgetValue()
    
public  booleanisChanged()
     Used for change logging.
public  booleanisNull()
     Returns true if the object is null.
public  booleanisValueSet()
     Used for change logging.
public  voidresetChanged()
    
public  voidsetAttribute(String attributeName, Object value)
    
public  voidsetFieldMetaData(DataFieldMetaData newMetadata)
     Sets the metadata object for this field.
Parameters:
  newMetadata - the new Field Meta data object...
public  voidsetOwner(DataObject newOwner)
    
public  voidsetValue(Object newValue)
    



Method Detail
asBigDecimal
public BigDecimal asBigDecimal()(Code)
Retrieve the wrapped object as a BigDecimal object or zero if we're unable to convert it. a properly instantiated BigDecimal Object if we're able to convert it.



asBoolean
public Boolean asBoolean()(Code)
Retrieve the boolean object value. java.lang.Boolean



asDate
public Date asDate()(Code)
Retrieve the wrapped object as a Date object or possibly null if we can't convert it or the object is null. a properly instantiated Date Object if we're able to convert it.



asDouble
public Double asDouble()(Code)
Retrieve the wrapped object as a Double object or zero if we can't convert i a properly instantiated Double Object if we're able to convert it.



asInteger
public Integer asInteger()(Code)
Retrieves the wrapped object as an Integer or zero if it's an invalid format. a java.lang.Integer object, or null if the object is null.



asStream
public InputStream asStream()(Code)
Allows for retrieval of BLOB database types. java.io.InputStream



asString
public String asString()(Code)
Retrieves the wrapped object as a String java.lang.String



cacheIsChangedComparison
public void cacheIsChangedComparison()(Code)
call after add() or update(). The currentValue of data fields should be considered the baseline, the 'original value' for purposes of determining 'isChanged'



checkValue
public void checkValue() throws DataException(Code)
Make sure the value of the field is valid.
throws:
  DataException - if the field value is not valid



getAllAttributes
public Map getAllAttributes()(Code)
Returns a Read Only Map of all attributes in name-value pairs. If there are no attributes then getAllAttributes will return a null map. java.util.map



getAttribute
public Object getAttribute(String attributeName)(Code)
Retrieves any user defined attributes for this field.
Parameters:
  attributeName - the name of the attribute to retrieve an object or null if the attribute doesn't exist



getFieldMetaData
public DataFieldMetaData getFieldMetaData()(Code)
Returns a handle to the Field MetaData object. DataFieldMetaData



getOriginalValue
public Object getOriginalValue()(Code)
the original object or null



getOwner
public DataObject getOwner()(Code)
Returns a handle to the DataObject that is the container for this Data Field DataObject the containing data object.



getValue
public Object getValue()(Code)
Retrieves the wrapped object for the Data Field java.lang.Object or null



isChanged
public boolean isChanged()(Code)
Used for change logging. true if the field has changed since the last reset



isNull
public boolean isNull()(Code)
Returns true if the object is null. true if the object is null



isValueSet
public boolean isValueSet()(Code)
Used for change logging. true if the field has been set since the last reset



resetChanged
public void resetChanged()(Code)
Resets the changed flag and sets the original value field to null



setAttribute
public void setAttribute(String attributeName, Object value)(Code)
Sets an attribute for this particular instance of the Data field
Parameters:
  attributeName - the name of the attribute to set
Parameters:
  value - the value to set it to



setFieldMetaData
public void setFieldMetaData(DataFieldMetaData newMetadata)(Code)
Sets the metadata object for this field.
Parameters:
  newMetadata - the new Field Meta data object... for example DBField



setOwner
public void setOwner(DataObject newOwner)(Code)
Sets the owner of a given DataObject
Parameters:
  newOwner - The new parent object.



setValue
public void setValue(Object newValue)(Code)
Sets the wrapped object for the data field
Parameters:
  newValue - a new Object to set the value to



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