Difference between revisions of "User:Muhammadnasir"
(→Immutable Objects in Java) |
m (→Immutable Objects in Java) |
||
Line 130: | Line 130: | ||
*• Understanding Instance and Class Members | *• Understanding Instance and Class Members | ||
[http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html Instance and Class Members] | [http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html Instance and Class Members] | ||
+ | |||
+ | == Marker Interface in Java == | ||
+ | In Java the interfaces without any methods are known as marker interfaces. Examples Of marker interfaces > Clonable,Serializable, SingleThreadModel, Event listener. | ||
+ | E.g. Suppose you want to persist (save) the state of an object then you have to implement the Serializable interface otherwise the compiler will throw an error. | ||
+ | Marker Interfaces are implemented by the classes or their super classes in order to add some functionality. | ||
+ | *•For more Detail Visit Below Links | ||
+ | [http://www.roseindia.net/java/master-java/interface.shtml Marker Interface] | ||
+ | *• Marker Interface Pattern | ||
+ | [http://en.wikipedia.org/wiki/Marker_interface_pattern] | ||
== Extends / Uses == | == Extends / Uses == |
Revision as of 12:20, 20 June 2010
Contents
- 1 ADempiere Package org.compiere.model Classes/Interfaces
- 2 Data Model Purchasing
- 3 Debugging in Adempiere
- 4 How to Create New Project in Eclipse
- 5 Relationship in ADempiere
- 6 Click and Find GUI window initial call of methods
- 7 How to Identify Button class Process
- 8 Assets Data Model and Relationship
- 9 ADempiere Reporting Help
- 10 Persistent Objects PO Class
- 11 Immutable Objects in Java
- 12 Marker Interface in Java
- 13 Extends / Uses
- 14 ADempiere Developer Forum Volume-1
- 15 ADempiere Developer Forum Volume-2
- 16 ADempiere Developer Forum Volume-3
- 17 ADempiere Developer Forum Volume-4
ADempiere Package org.compiere.model Classes/Interfaces
File:NasirADempierePackageModel.pdf
Helping Services
Introduction to Java Language
How to install JDK > Java Development Kit
How to install postgres Database
How to install JRE > Java Runtime Environment
How to ready windows to run Java based applications
How to configure server for ADempiere
How to configure clients for ADempiere
ADempiere code structure
Manage ADempiere tree
How to create new window
How to create new Tab
Create and attach a callout with fields
Create and attach a callout with a button
How to create Dynamic and Static validation lists
How to Create New Product and setting its Price
How to Manage Purchase
How to Manage Sales
Data Model Purchasing
Debugging in Adempiere
Download pdf here Debugging.pdf.
How to Create New Project in Eclipse
How to Create New Project in Eclipse
Relationship in ADempiere
I am not sure that this is correct document ,you can send me your comments to update it .
Click and Find GUI window initial call of methods
Click and find >> ClickAndFindBy_Nasir.pdf.
You can send me your comments via mail to update it .
How to Identify Button class Process
You can send me your comments via mail to update it .
Assets Data Model and Relationship
: Data Model and Relationship.
ADempiere Reporting Help
You can send me your comments via mail to update it .
Persistent Objects PO Class
PO is a persistent class in ADempiere.It is an abstract class.This persistence object class manages the database and the mapping between the database and the objects. PO class use for three of main functionality ::
- It use for Transfer of Database
- It use for calls the Triggers
- It use for calls the Model Validator
PO Class Implements three interfaces
- • Serializable (Java Built-in Interface).It is a marker Interface(Interface which have no any method).This interface only use for streaming of object.
The initial concept of object serialization is the ability to read and write objects to byte streams. Serialization involves saving the current state of an object to a stream, and restoring an equivalent object from that stream. Below images describe the Streaming of objects.
- • Comparator > (Java Built-in Interface) It consist two methods compare() and equals().These methods are implemented by PO. Because PO class implements this interface so it need to override these methods.
Methods > boolean equals(Object obj) and int compare(Object obj1, obj2)
- • Evaluatee > This is ADempiere Built-in interface. It consist only one method.
Method >public String get_ValueAsString (String variableName).
Immutable Objects in Java
In Java the String class is immutable, so that once it is created a String object cannot be changed. The String class has a number of methods, that appear to modify strings. Since strings are immutable, what these methods really do is create and return a new string that contains the result of the operation.
- •How to Make a Java Class Immutable
- • A Strategy for Defining Immutable Objects
- •Immutable objects First Page
- •Immutable objects
- • Understanding Instance and Class Members
Marker Interface in Java
In Java the interfaces without any methods are known as marker interfaces. Examples Of marker interfaces > Clonable,Serializable, SingleThreadModel, Event listener. E.g. Suppose you want to persist (save) the state of an object then you have to implement the Serializable interface otherwise the compiler will throw an error. Marker Interfaces are implemented by the classes or their super classes in order to add some functionality.
- •For more Detail Visit Below Links
- • Marker Interface Pattern
Extends / Uses
How to use UML extends and uses
ADempiere Developer Forum Volume-1
Click Here to see the pdf file.
ADempiere Developer Forum Volume-2
Click Here to see Volume-2 file.
ADempiere Developer Forum Volume-3
Click Here to see Volume-3 file.