1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.resource.cci;
  6. import javax.resource.ResourceException;
  7. /** The interface <code>ConnectionMetaData</code> provides information
  8. * about an EIS instance connected through a Connection instance. A
  9. * component calls the method <code>Connection.getMetaData</code> to
  10. * get a <code>ConnectionMetaData</code> instance.
  11. *
  12. * @version 0.8
  13. * @author Rahul Sharma
  14. * @see javax.resource.cci.Connection
  15. * @see javax.resource.cci.ResultSetInfo
  16. **/
  17. public interface ConnectionMetaData {
  18. /** Returns product name of the underlying EIS instance connected
  19. * through the Connection that produced this metadata.
  20. *
  21. * @return Product name of the EIS instance
  22. * @throws ResourceException Failed to get the information for
  23. * the EIS instance
  24. **/
  25. public
  26. String getEISProductName() throws ResourceException;
  27. /** Returns product version of the underlying EIS instance.
  28. *
  29. * @return Product version of an EIS instance.
  30. * @throws ResourceException Failed to get the information for
  31. * the EIS instance
  32. **/
  33. public
  34. String getEISProductVersion() throws ResourceException;
  35. /** Returns the user name for an active connection as known to
  36. * the underlying EIS instance. The name corresponds the resource
  37. * principal under whose security context a connection to the
  38. * EIS instance has been established.
  39. *
  40. * @return String representing the user name
  41. * @throws ResourceException Failed to get the information for
  42. * the EIS instance
  43. **/
  44. public
  45. String getUserName() throws ResourceException;
  46. }