Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does “Reference implementation” mean?

Tags:

java

I am trying to learn about CachedRowSet in Java, and I am reading some tutorials about it. I have come across reference implementation terminology very often.

For example

Alternatively, you can use the constructor from the CachedRowSet implementation of your JDBC driver. However, implementations of the RowSet interface will differ from the reference implementation. These implementations will have different names and constructors. For example, the Oracle JDBC driver's implementation of the CachedRowSet interface is named oracle.jdbc.rowset.OracleCachedRowSet.

Could anyone please be kind and explain this?

Note, I have found some definitions on the web that are too vague for me to understand.

like image 246
Kick Buttowski Avatar asked Apr 02 '14 23:04

Kick Buttowski


People also ask

What do you mean by reference implementation?

In the software development process, a reference implementation (or, less frequently, sample implementation or model implementation) is a program that implements all requirements from a corresponding specification.

What is a Java reference implementation?

The Reference Implementation (RI) is a simulator that can be built with a ROM mask, much like a Java Card technology-based implementation for actual field use.

What is reference implementation in Java EE?

It means the implementation of the specification that should demonstrate the concepts. Mostly it is implemented by the same guys/company that designed the specification. You may think of specification as a standard that is needed to allow other possible implementation to be compatible with the rest of the world.


2 Answers

It means the implementation of the specification that should demonstrate the concepts. Mostly it is implemented by the same guys/company that designed the specification.

You may think of specification as a standard that is needed to allow other possible implementation to be compatible with the rest of the world. And the reference implementation of a proof-of-concept kind piece of software that should show how to do that and encourage others to create their own implementations.

In the JDBC context it means, that there are some interfaces (CachedRowSet) prescribing some methods and there is a reference implementation to these interfaces done in Sun/Oracle.

like image 133
Jiri Kremser Avatar answered Sep 30 '22 16:09

Jiri Kremser


JSR (Java Specification Request) - theory

RI (Reference Implementation) - concrete, working code proving that JSR can work. Basically, a sample implementation.

You can create your own implementation of any JSR and use RI as an example if you're not sure about something.

like image 41
Andrejs Avatar answered Sep 30 '22 16:09

Andrejs