Class JKPlainDataSource

All Implemented Interfaces:
Synchronizable, JKDataSource

public class JKPlainDataSource extends JKHibernateDataSource
This class extends JKHibernateDataSource and provides a specialized data source for plain JDBC connections.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Field Details

    • PROPERTIES_TO_IGNORE

      public static final String[] PROPERTIES_TO_IGNORE
      Represents the array of properties to ignore during processing.
  • Constructor Details

    • JKPlainDataSource

      public JKPlainDataSource(String name, Properties properties)
      This method constructs a new JKPlainDataSource with a name and configuration properties.
      Parameters:
      name - Specifies the data source name.
      properties - Specifies the configuration properties.
  • Method Details

    • processProperty

      protected void processProperty(Properties properties, String key, String value)
      This method processes a property and its value.
      Overrides:
      processProperty in class JKHibernateDataSource
      Parameters:
      properties - Specifies the properties to process.
      key - Specifies the key of the property.
      value - Specifies the value of the property.
    • getHibernateExtraConfig

      protected Map getHibernateExtraConfig()
      This method gets extra Hibernate configuration settings.

      Subclasses can override this method to provide additional configuration.

      Overrides:
      getHibernateExtraConfig in class JKHibernateDataSource
      Returns:
      the extra Hibernate configuration settings.
    • createPlainDataSource

      protected DataSource createPlainDataSource()
      This method creates and returns a plain JDBC data source based on the provided database URL, user name, and password.
      Returns:
      the plain JDBC data source.