Event Types for use With a Database Table Source

2-6 Oracle Complex Event Processing Developers Guide ■ Section 2.6, Using an Event Type Builder Factory ■ Section 2.7, Accessing the Event Type Repository ■ Section 2.8, Sharing Event Types Between Application Bundles For more information, see Section 2.1, Oracle CEP Event Types .

2.2 Creating an Oracle CEP Event Type as a JavaBean

You can create and register an Oracle CEP event type as a JavaBean. This is the preferred approach. Follow standard JavaBeans programming guidelines. See the JavaBeans Tutorial at http:java.sun.comdocsbookstutorialjavabeans for additional details. Oracle recommends that, if possible, you make your event type JavaBeans immutable to improve performance. For more information, see Section 2.1.1, Event Type Instantiation and Immutability . When you design your event, you must restrict your design to the even data types that Section 2.1.3.1, Event Types Specified as JavaBean or Java Class describes. This topic describes: ■ Section 2.2.1, How to Create an Oracle CEP Event Type as a JavaBean Using the Event Type Repository Editor ■ Section 2.2.2, How to Create an Oracle CEP Event Type as a JavaBean Manually

2.2.1 How to Create an Oracle CEP Event Type as a JavaBean Using the Event Type Repository Editor

This procedure describes how to create and register an Oracle CEP event type as a JavaBean using the Oracle CEP IDE for Eclipse event type repository editor. For more information about the Oracle CEP IDE for Eclipse, see Example 3, Overview of the Oracle CEP IDE for Eclipse . Alternatively, you can create and register your event type as a JavaBean manually see Section 2.2.2, How to Create an Oracle CEP Event Type as a JavaBean Manually . To create an Oracle CEP event type as a Java bean using the event type repository editor: 1. Create a JavaBean class to represent your event type. Follow standard JavaBeans programming guidelines. See the JavaBeans Tutorial at http:java.sun.comdocsbookstutorialjavabeans for additional details. Oracle recommends that, if possible, you make your event type JavaBeans immutable to improve performance. For more information, see Section 2.1.1, Event Type Instantiation and Immutability . When you design your event, you must restrict your design to the even data types that Section 2.1.3.1, Event Types Specified as JavaBean or Java Class describes. Example 2–5 shows the MarketEvent which is implemented by the com.bea.wlevs.example.algotrading.event.MarketEvent class.