0% found this document useful (0 votes)
47 views

Eoimpl Java JAVA File Have 5 Section Ename - Job Sal Comm

The document discusses the structure of a Java file for an entity object (EO) with sections for attributes like ename, job, sal, and comm. It describes set and get methods to access and modify attribute values, and methods to create, remove, and perform DML operations on entities. Validation of entity attributes is discussed. The document also covers entity associations using primary and foreign keys and association objects (AO), and view objects (VO) that access SQL queries with files generated by the OAF framework.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Eoimpl Java JAVA File Have 5 Section Ename - Job Sal Comm

The document discusses the structure of a Java file for an entity object (EO) with sections for attributes like ename, job, sal, and comm. It describes set and get methods to access and modify attribute values, and methods to create, remove, and perform DML operations on entities. Validation of entity attributes is discussed. The document also covers entity associations using primary and foreign keys and association objects (AO), and view objects (VO) that access SQL queries with files generated by the OAF framework.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

EOIMpl JAVA

JAVA File have 5 section

Ename --

Job

Sal

Comm

1)create

2)remove

3)do dml

4)validate entity

5)set and get methods

Public void setEname()

Public String getEname()

Return getEname();

Public void setSal()

}
Public Number getSal()

Return getSal();

Public void setSal()

Public Number getSal()

Return getSal();

1)create

Public void create()

setEno(“sequenace name”);

2)remove

Public void remove()

{
setStatus(“inactive”);

commit;

3)do dml:

Emptype – permanent and contract

10 rows

1 cn

2 pn

3 cn

4 pn --

5 cn

If(getEmptype.equals(“pn”) && do dml.delete())

Throw new OAException – OAF

Rasie the error

If(

4)validate entity

Will validate multiple attributes

Emp sdate

Emp end date


Ename – special characters

Mobile nmber – should noe be charcaters

Entity Association:

1) Association is relation between two entity objects, having common attribute between two Eos

2) PRIMARY KEY, FOREIGN KEY, ON DELETE CASCADE

3) All the association objects naming convention end with AO

DeptEmpAO

4)when u create the association OAF will generate one xml file

DeptEmpAO.xml

Dept -- accounting

Emp -- 5 emps

View objects VO:

1)View objects access all the sql queries

2)all the view objects naming convention end with VO

EmpVO

3) When u create the view object OAF will generate two files mandatory.. One file is optional

EmpVO.xml

EmpVOimpl.java

EmpVORowimpl.java(optioanal)

You might also like