Enum ResourceChecks

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ResourceChecks>

    public enum ResourceChecks
    extends java.lang.Enum<ResourceChecks>
    implements java.io.Serializable
    Defines when and if database and collection existence will be checked.
    Since:
    5.4
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NEVER
      Check won't be ever done, meaning that the database and collection will be created automatically by Mongo when it's accessed for the first time.
      ON_EACH_CONNECT
      Check will be done on every connect action on every processor.
      ONCE_PER_JOB
      Check will be done once per each job execution (when job starts from scratch or from snapshot).
      ONLY_INITIAL
      (SQL-only) check will be done only during initial mapping creation.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ResourceChecks fromString​(java.lang.String code)
      Resolves given string value to one of values of this enum.
      boolean isEverPerformed()  
      static ResourceChecks valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ResourceChecks[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ON_EACH_CONNECT

        public static final ResourceChecks ON_EACH_CONNECT
        Check will be done on every connect action on every processor.
      • ONCE_PER_JOB

        public static final ResourceChecks ONCE_PER_JOB
        Check will be done once per each job execution (when job starts from scratch or from snapshot).
      • ONLY_INITIAL

        public static final ResourceChecks ONLY_INITIAL
        (SQL-only) check will be done only during initial mapping creation.
      • NEVER

        public static final ResourceChecks NEVER
        Check won't be ever done, meaning that the database and collection will be created automatically by Mongo when it's accessed for the first time.
    • Method Detail

      • values

        public static ResourceChecks[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ResourceChecks c : ResourceChecks.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResourceChecks valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromString

        public static ResourceChecks fromString​(java.lang.String code)
        Resolves given string value to one of values of this enum.
      • isEverPerformed

        public boolean isEverPerformed()
        Returns:
        Is check ever done?