Class ProfileDataCollection.Profile

    • Constructor Detail

      • Profile

        public Profile​(String profileName)

        Create a new profile import record. The profile action is CREATE, and errors are ignored. <p> This constructor is equivalent to new Profile(profileName, CREATE, false, false).

        Parameters:
        profileName - the name of the profile. The value null is acceptable and indicates the profile table’s default profile.
      • Profile

        public Profile​(String profileName,
                       ProfileDataCollection.Profile.Action action,
                       boolean failIfExists,
                       boolean failIfNotExists)

        Create a new profile import record.

        Parameters:
        profileName - the name of the profile. The value null is acceptable and indicates the profile table’s default profile.
        action - the import action. Must be one of the constants defined by the ProfileDataCollection.Profile.Action enumeration.
        failIfExists - flag indicating if an exception should be thrown during import if action == CREATE and a profile with the name specified by profileName already exists.
        failIfNotExists - flag indicating if an exception should be thrown during import if action == REMOVE and a profile with the name specified by profileName does not exist.
        Throws:
        IllegalArgumentException - if an invalid action is specified, if failIfExists is true but action != CREATE if failIfNotExists is true but action != remove, or if the default profile is selected for removal.
    • Method Detail

      • getName

        public String getName()

        Get the name of the profile.

        Returns:
        the name of the profile.
      • failIfExists

        public boolean failIfExists()

        Determine if the fail-if-exists flag has been set for CREATE actions.

        Returns:
        true if the fail-if-exists flag has been set, false otherwise.
      • failIfNotExists

        public boolean failIfNotExists()

        Determine if the fail-if-not-exists flag has been set for REMOVE actions.

        Returns:
        true if the fail-if-not-exists flag has been set, false otherwise.