Class AbstractConnectionFactory

  • All Implemented Interfaces:
    ConnectionFactory

    public abstract class AbstractConnectionFactory
    extends Object
    implements ConnectionFactory
    Abstract implementation of a ConnectionFactory for a DataNucleus-supported datastore.
    • Field Detail

      • resourceType

        protected final String resourceType
        Type of resource represented by this ConnectionFactory. See ConnectionResourceType.
      • resourceName

        protected final String resourceName
        Name of this resource ("tx", "non-tx" etc).
    • Constructor Detail

      • AbstractConnectionFactory

        public AbstractConnectionFactory​(StoreManager storeMgr,
                                         String resourceName)
        Constructor.
        Parameters:
        storeMgr - The store manager needing the connection
        resourceName - Name of resource (tx, nontx)
    • Method Detail

      • getResourceType

        public String getResourceType()
        Description copied from interface: ConnectionFactory
        Type of resource that this ConnectionFactory represents. See ConnectionResourceType.
        Specified by:
        getResourceType in interface ConnectionFactory
        Returns:
        Resource type ("JTA", "RESOURCE_LOCAL")
      • toString

        public String toString()
        Method to return a string form of this object for convenience debug.
        Overrides:
        toString in class Object
        Returns:
        The String form