java.lang.Object
de.seggebaeing.sqlanalyzer.logic.bdo.BusinessDomainObject
de.seggebaeing.sqlanalyzer.logic.bdo.PromptType

public class PromptType extends BusinessDomainObject
Business domain object (BDO) representing a prompt type.

Wraps observable JavaFX properties for name and description. Versioning is inherited from BusinessDomainObject and automatically refreshed when observed properties change.

Since:
1.0
Author:
Felix Seggebäing
  • Property Details

  • Constructor Details

    • PromptType

      public PromptType()
      Creates a new PromptType with default values.

      Initializes all string fields as empty and the version as null.

    • PromptType

      public PromptType(String name, String description)
      Creates a new PromptType with the given values.

      Sets the version to null, causing it to be initialized automatically.

      Parameters:
      name - non-null name
      description - non-null description
      Throws:
      NullPointerException - if name or description is null
    • PromptType

      public PromptType(String name, String description, Long version)
      Creates a new PromptType with the given values and an optional version.

      Initializes all fields and registers property listeners so that changes automatically refresh the version. If version is null, the version is initialized to the current time.

      Parameters:
      name - non-null name
      description - non-null description
      version - initial version value, or null to auto-generate
      Throws:
      NullPointerException - if name or description is null
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this prompt type.

      Format: name.

      Overrides:
      toString in class Object
      Returns:
      the name of this prompt type
    • getName

      public String getName()
      Gets the value of the name property.
      Property description:
      Returns:
      the value of the name property
      See Also:
    • nameProperty

      public javafx.beans.property.StringProperty nameProperty()
      Returns:
      the name property
      See Also:
    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Property description:
      Returns:
      the value of the description property
      See Also:
    • descriptionProperty

      public javafx.beans.property.StringProperty descriptionProperty()
      Returns:
      the description property
      See Also:
    • setName

      public void setName(String name)
      Sets the value of the name property.
      Property description:
      Parameters:
      name - the value for the name property
      See Also:
    • setDescription

      public void setDescription(String description)
      Sets the value of the description property.
      Property description:
      Parameters:
      description - the value for the description property
      See Also: