java.lang.Object
de.seggebaeing.sqlanalyzer.logic.bdo.BusinessDomainObject
de.seggebaeing.sqlanalyzer.logic.bdo.PromptType
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 Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.StringProperty
javafx.beans.property.StringProperty
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newPromptType
with default values.PromptType
(String name, String description) Creates a newPromptType
with the given values.PromptType
(String name, String description, Long version) Creates a newPromptType
with the given values and an optional version. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.StringProperty
Gets the value of thedescription
property.getName()
Gets the value of thename
property.javafx.beans.property.StringProperty
void
setDescription
(String description) Sets the value of thedescription
property.void
Sets the value of thename
property.toString()
Returns a string representation of this prompt type.Methods inherited from class de.seggebaeing.sqlanalyzer.logic.bdo.BusinessDomainObject
getVersion, refreshVersion, registerProperties, setVersion
-
Property Details
-
name
public javafx.beans.property.StringProperty nameProperty- See Also:
-
description
public javafx.beans.property.StringProperty descriptionProperty- See Also:
-
-
Constructor Details
-
PromptType
public PromptType()Creates a newPromptType
with default values.Initializes all string fields as empty and the version as
null
. -
PromptType
Creates a newPromptType
with the given values.Sets the version to
null
, causing it to be initialized automatically.- Parameters:
name
- non-null namedescription
- non-null description- Throws:
NullPointerException
- ifname
ordescription
isnull
-
PromptType
Creates a newPromptType
with the given values and an optional version.Initializes all fields and registers property listeners so that changes automatically refresh the version. If
version
isnull
, the version is initialized to the current time.- Parameters:
name
- non-null namedescription
- non-null descriptionversion
- initial version value, ornull
to auto-generate- Throws:
NullPointerException
- ifname
ordescription
isnull
-
-
Method Details
-
toString
Returns a string representation of this prompt type.Format:
name
. -
getName
Gets the value of thename
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
Gets the value of thedescription
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
Sets the value of thename
property.- Property description:
- Parameters:
name
- the value for thename
property- See Also:
-
setDescription
Sets the value of thedescription
property.- Property description:
- Parameters:
description
- the value for thedescription
property- See Also:
-