I believe that you don't have to call a specific method on the sun's interface. Those methods have the responsibility to manipulate the database. To book the record you could have to following steps like :
If the interface doesn't provide you the appropriate method, you can create your own interface that extends the interface provided by Sun and add the new method. That was how I had done in my URLyBird assignment.