Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Persistent Classes

Former Member
0 Likes
813

Hi all,

What are persistent classes and what is the usage of that?

5 REPLIES 5
Read only

Former Member
0 Likes
785
Read only

Former Member
0 Likes
785

Hi

<b>Persistent class</b>

A special class, the attributes of which are linked to database tables via object-relational mapping. Since Release 6.10 they can be created using the Mapping

http://help.sap.com/saphelp_nw04/helpdata/en/f5/a36828bc6911d4b2e80050dadfb92b/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/ab/9d0a3ad259cd58e10000000a11402f/frameset.htm

<b>Reward if usefull</b>

Read only

Former Member
0 Likes
785

Hi

see t his weblog

it may helpfull for you

/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql

Read only

varma_narayana
Active Contributor
0 Likes
785

hI..

Persistent classes are used to implement Object Relational DBMS (ORDBMS) concept is SAP. That means each instance of Class in persistently stored in the Database.

<b>reward if Helpful.</b>

Read only

Former Member
0 Likes
785

hi

good

To use the Persistence Service for objects, the classes of these objects must be created as persistent classes in the Class Builder. The term persistent class does not imply that a class is persistent. (As a template for objects, every class is persistent). Rather, it means that the objects of that class and their state are managed by the Persistence Service. For example, the objects of these classes are instantiated in the ABAP program with a method of the Persistence Service, which ensures that the initialization is correct (not with the usual CREATE OBJECT statement). When the Class Builder creates a persistent class, it automatically generates an associated class, known as the class actor or class agent, whose methods manage the objects of persistent classes. As well as their identity, persistent classes can contain key attributes, which allow the Persistence Service to ensure that the content of each persistent object is unique.

thanks

mrutyun^