Interface JdbcResource

  • All Superinterfaces:
    com.sun.enterprise.config.serverbeans.BindableResource, org.jvnet.hk2.config.ConfigBeanProxy, jakarta.validation.Payload, org.jvnet.hk2.config.types.PropertyBag, com.sun.enterprise.config.serverbeans.Resource, com.sun.enterprise.config.serverbeans.ResourcePoolReference

    @ResourceConfigCreator(commandName="create-jdbc-resource")
    @ResourceTypeOrder(deploymentOrder=JDBC_RESOURCE)
    @ReferenceConstraint(skipDuringCreation=true,
                         payload=JdbcResource.class)
    @UniqueResourceNameConstraint(message="{resourcename.isnot.unique}",
                                  payload=JdbcResource.class)
    public interface JdbcResource
    extends org.jvnet.hk2.config.ConfigBeanProxy, com.sun.enterprise.config.serverbeans.Resource, org.jvnet.hk2.config.types.PropertyBag, com.sun.enterprise.config.serverbeans.BindableResource, jakarta.validation.Payload, com.sun.enterprise.config.serverbeans.ResourcePoolReference
    JDBC javax.sql.(XA)DataSource resource definition
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  JdbcResource.Duck  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String name  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getDescription()
      Gets the value of the description property.
      String getEnabled()
      Gets the value of the enabled property.
      String getIdentity()  
      @NotNull String getPoolName()
      Gets the value of the poolName property.
      List<org.jvnet.hk2.config.types.Property> getProperty()
      Properties as per PropertyBag
      void setDescription​(String value)
      Sets the value of the description property.
      void setEnabled​(String value)
      Sets the value of the enabled property.
      • Methods inherited from interface com.sun.enterprise.config.serverbeans.BindableResource

        getJndiName, setJndiName
      • Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy

        createChild, deepCopy, getParent, getParent
      • Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag

        addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
      • Methods inherited from interface com.sun.enterprise.config.serverbeans.Resource

        getDeploymentOrder, getObjectType, setDeploymentOrder, setObjectType
      • Methods inherited from interface com.sun.enterprise.config.serverbeans.ResourcePoolReference

        setPoolName
    • Method Detail

      • getPoolName

        @NotNull
        @RemoteKey(message="{resourceref.invalid.poolname}",
                   type=JdbcConnectionPool.class)
        @NotNull String getPoolName()
        Gets the value of the poolName property.
        Specified by:
        getPoolName in interface com.sun.enterprise.config.serverbeans.ResourcePoolReference
        Returns:
        possible object is String
      • getEnabled

        String getEnabled()
        Gets the value of the enabled property.
        Specified by:
        getEnabled in interface com.sun.enterprise.config.serverbeans.BindableResource
        Returns:
        possible object is String
      • setEnabled

        void setEnabled​(String value)
                 throws PropertyVetoException
        Sets the value of the enabled property.
        Specified by:
        setEnabled in interface com.sun.enterprise.config.serverbeans.BindableResource
        Parameters:
        value - allowed object is String
        Throws:
        PropertyVetoException
      • getDescription

        String getDescription()
        Gets the value of the description property.
        Returns:
        possible object is String
      • getProperty

        @ToDo(priority=IMPORTANT,
              details="Provide PropertyDesc for legal props")
        @PropertiesDesc(props={})
        List<org.jvnet.hk2.config.types.Property> getProperty()
        Properties as per PropertyBag
        Specified by:
        getProperty in interface org.jvnet.hk2.config.types.PropertyBag
      • getIdentity

        @DuckTyped
        String getIdentity()
        Specified by:
        getIdentity in interface com.sun.enterprise.config.serverbeans.BindableResource
        Specified by:
        getIdentity in interface com.sun.enterprise.config.serverbeans.Resource