Class JPA2DataSource

All Implemented Interfaces:
com.isomorphic.base.IAutoConfigurable, com.isomorphic.datasource.Committable, com.isomorphic.datasource.FreeResourcesHandler, com.isomorphic.datasource.IType, IToJSON, Serializable

public class JPA2DataSource extends JPADataSource
Server side implementation of JPA 2.0 data source.

Supports all AdvancedCriteria criterions except "regexp" and "iregexp".

Declaring JPA 2.0 usage in persistence.xml:

 <persistence
      version="2.0"
      xmlns="http://java.sun.com/xml/ns/persistence"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
 ...
 </persistence>
Implementation is not thread-safe. Data source acquiring mechanism enshures that single instance of this class will be used in one thread only.
See Also:
  • Method Details

    • deriveDS

      public Map<String,Object> deriveDS(String schemaBean, String id, boolean extended)
      Creates data source configuration from specified fully qualified class name.
      Overrides:
      deriveDS in class JPADataSource
      Parameters:
      schemaBean - String Fully qualified class name.
      id - String Id for newly created data source.
      extended - boolean Extended properties will be captured if set to true.
      Returns:
      Map<String, Object> created data source configuration or null if it can not be created.