Class Image
java.lang.Object
com.needleandstitch.pavuk.model.Image
An entity class for image.
This class serves as a model for the image table in the database.
- Since:
- 15.12.2024
- Version:
- 1.0.0
- Author:
- Needle & Stitch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the unique identifier for the image.boolean
Gets whether the image is marked as the primary image.getName()
Gets the name of the image.getUrl()
Gets the URL of the image.void
Sets the unique identifier for the image.void
setIsPrimary
(boolean isPrimary) Sets whether the image is marked as the primary image.void
Sets the name of the image.void
Sets the URL of the image.
-
Constructor Details
-
Image
public Image()Default constructor. -
Image
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the image.- Parameters:
id
- The image ID to set
-
getName
-
setName
Sets the name of the image.- Parameters:
name
- The name of the image to set
-
getUrl
-
setUrl
Sets the URL of the image.- Parameters:
url
- The URL to set for the image
-
getIsPrimary
public boolean getIsPrimary()Gets whether the image is marked as the primary image.- Returns:
- True\False depending on whether the image is primary.
-
setIsPrimary
public void setIsPrimary(boolean isPrimary) Sets whether the image is marked as the primary image.- Parameters:
isPrimary
- True\False depending on whether you want to set an image as primary one.
-