Class ResourceExistsDAO


  • public class ResourceExistsDAO
    extends java.lang.Object
    DAO to check if the configured resource exists
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceExistsDAO​(IResourceTypeMaps resourceTypeMaps, int resourceTypeId, java.lang.String logicalId, int versionId, java.lang.String resourcePayloadKey)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean run​(java.sql.Connection c)
      Run the query to see if the resource version currently exists.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resourceTypeId

        final int resourceTypeId
      • logicalId

        final java.lang.String logicalId
      • versionId

        final int versionId
      • resourcePayloadKey

        final java.lang.String resourcePayloadKey
    • Constructor Detail

      • ResourceExistsDAO

        public ResourceExistsDAO​(IResourceTypeMaps resourceTypeMaps,
                                 int resourceTypeId,
                                 java.lang.String logicalId,
                                 int versionId,
                                 java.lang.String resourcePayloadKey)
        Public constructor
        Parameters:
        resourceTypeMap -
        resourceTypeId -
        logicalId -
        versionId -
        resourcePayloadKey -
    • Method Detail

      • run

        public boolean run​(java.sql.Connection c)
                    throws java.sql.SQLException
        Run the query to see if the resource version currently exists. Does not care about deletion status, just that the row is there.
        Parameters:
        c -
        Returns:
        Throws:
        java.sql.SQLException