Public Part Entities – Development Objects in Public Parts

Public parts contain development objects; development object, in this case, is a very general and abstract term. The objects you can publish in public parts are the public part entities.

Development objects can appear in different forms. A Java class – as a development object example – can appear either as a .java file or, in its compiled form, as a .class file. Depending on the situation, a public part can contain one or the other form (or even both). When defining a public part, to each development object contained, both a name and a type (and, if necessary, even a subtype) are assigned.

The Java class MyClass is assigned to a public part api. When defining the public part, the developer decides to add both the source code and the compiled form of the class to the public part. The developer adds two entries to the content list of the public part:

·         MyClass of type source

·         MyClass of type class

The type or subtype identifiers of an entry in the content list of a public part are not determined by the component model; you can select them at will. However, the development and compilation tools in the SAP NetWeaver Developer Studio already predefine a supply of very general types, such as File, Folder, Folder Tree, Java Class, Java Package, Java Package Tree, and so on, which you can use when defining public parts. In addition, you can use define inclusion and exclusion lists with place holders.

Types of Public Part Entities

When you add a public part entity to a public part using Add Entity in the context menu of the entity node, only those entity types are displayed that exist in their source files.

You can also use the context menu of an object to add the object to a public part.

Name and package of the selected entity are used to determine the corresponding resource(s).

List of Public Part Entities

Name

Purpose

Subtypes

Supported DC Types

Dictionary Database Table

Exports the meta data that define a table. 

Source

Web Dynpro, Dictionary

Dictionary Simple Type

Exports the meta data that define a Dictionary Simple Type.  

Source

Web Dynpro, Dictionary

Dictionary Structure

Exports the meta data that define a Dictionary Structure.

Source

Web Dynpro, Dictionary

File

Exports a file.

The entity name specifies the file name in relation to the source folder or package folder.

none

all

Folder

Exports the content of a folder.

The entity name specifies the folder name in relation to the source folder or package folder.

none

all

Folder Tree

Exports the content of a folder and its content, including all subfolders.

The entity name specifies the folder name in relation to the source folder or package folder.

none

all

Java Class

Exports a Java class. Nested or inner classes are automatically included in the export. Depending on the selected subtype, the export consists of a jar file with compiled classes (subtype Class) or a zip archive with the sources (subtype Source).

Class, Source

EJB, Web, Java, Web Dynpro, Web Services Clients

Java Package

Exports all Java classes in the selected package. Nested or inner classes and interfaces are automatically included in the export. Depending on the selected subtype, the export consists of a jar file with compiled classes (subtype Class) or a zip archive with the sources (subtype Source).

Classes in subpackages are not exported.

Class, Source

EJB, Web, Java, WebDynpro, Web Services Clients

Java Package Tree

Exports all Java classes in the selected package and in all its subpackages. Nested or inner classes and interfaces are automatically included in the export. Depending on the selected subtype, the export consists of a jar file with compiled classes (subtype Class) or a zip archive with the sources (subtype Source).

Class, Source

EJB, Web, Java, WebDynpro, Web Services Clients

Web Service Definition

Exports the meta data file for a Web services definition.

Source

EJB, Java

Web Dynpro Component

Exports the meta data and compiled Java classes of a Web Dynpro component.

Source

Web Dynpro

Web Dynpro Component Interface Definition

Exports the meta data and compiled Java classes of a Web Dynpro component interface definition.

Source

Web Dynpro

Common Model

Exports the meta data and compiled Java classes of a Web Dynpro model.

Source

Web Dynpro

Web Service Deployable Client

Exports the meta data and compiled Java classes of a Web service client.

Compiled Java classes are exported even though the subtype is Source.

Source

Web Service Deployable Client

Web Service Standalone Client

Exports the meta data and compiled Java classes of a Web service client.

Compiled Java classes are exported even though the subtype is Source.

Source

Web Service Standalone Client

These types are used internally by generated entities. Do not delete or change entities that use these types.

·         J2EE Server Component - J2EE Library

·         J2EE DCs

There is no simple way of re-creating these entities.