Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java special class "e" vs alias/reference variable

3462211May 22 2017 — edited May 25 2017

Hello,

How do I know when to use Java special class e and when to use alias(reference variable) of an object's instance in lambda expression?

On page 4 of the slides for lesson 4-2, where Java special class e is used in lambda expression.  Here it's clearly referring to the direction of the blade is going.  Why is that alias b of the object blade is not being used?

blade.setOnMousePressed

(e -> setDirection (Dir.NE  ));

On page 9 of the slides for lesson 4-2, where alias b of BumperList is used in lambda expression.  Obtaining the shape of the objects stored in the BumperList is an event.  Why is that Java special class e isn't being used here?

BumperList.stream()

.filter

   (b -> b.getShape() == shape.STAR)

.forEach

   (b -> b.setShape(Shape.RECT)  );

Thanks in advance,

Carol

Comments

SH_INT

There is no scripting support in EPBCS Data Management that would allow you to integrate any calls to the Salesforce REST API. So no.

DayalanP

Curious, cant we use a scripting language (Groovy) + REST API to get the data from Salesforce and load into EPBCS?

SH_INT

The scripting model in the Cloud EPM application is extremely limited, presumably for security reasons. Cloud Data Management has no scripting support outside of SQL scripting in mappings and although EPBCS does support Groovy this is limited to use in business rules and the EPBCS object libraries.

JohnGoodwin

I think there are two parts to this, the first is there currently is no direct integration to Salesforce, it may happen in the future but as it is not owned by Oracle then it is not going to be high priority.

The second is that it can be achieved outside of the cloud instance with solutions like Oracle Integration Cloud or onecloud.io or through custom scripting.

Cheers

John

1 - 5

Post Details

Added on May 22 2017
5 comments
276 views