Reputation: 191
So I already understand what a CachedRowSet is. Mainly it holds the data as opposed to other RowSets/ResultSets which require a connection and retrieve the data each time. Since it does not require a connection, it is serializable, and I quote from Java SE 8 documentation of CachedRowSet
A CachedRowSet object is a container for rows of data that caches its rows in memory, which makes it possible to operate without always being connected to its data source. Further, it is a JavaBeans™ component and is scrollable, updatable, and serializable.
I have searched to documentation to the best of my abilities and if it is serializable, it must implement the serializable interface directly or indirectly higher up the hierarchy. I do not see that, so I am confused about how it is serializable without serializable implementation.
Upvotes: 0
Views: 294