Class Image
- java.lang.Object
-
- edu.cnm.deepdive.albuquirky.model.entity.Image
-
@Entity public class Image extends Object
-
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreated()Gets the creation timestamp for the image.LonggetId()GetsidStringgetImageDescription()Gets the image description.StringgetImageFileName()Gets the filename for the image.ProductgetProduct()Gets theProductassociated with the image.voidsetImageDescription(String imageDescription)SetsimageDescriptionvoidsetImageFileName(String imageFileName)SetsimageFileNamevoidsetProduct(Product product)SetsProductid
-
-
-
Method Detail
-
getImageFileName
@NonNull public String getImageFileName()
Gets the filename for the image.- Returns:
- The image filename.
-
setImageFileName
public void setImageFileName(@NonNull String imageFileName)SetsimageFileName- Parameters:
imageFileName- - String
-
getImageDescription
public String getImageDescription()
Gets the image description.- Returns:
- The image description.
-
setImageDescription
public void setImageDescription(String imageDescription)
SetsimageDescription- Parameters:
imageDescription- - String
-
getProduct
@NonNull public Product getProduct()
Gets theProductassociated with the image.- Returns:
- The
Productfor the image.
-
setProduct
public void setProduct(@NonNull Product product)SetsProductid- Parameters:
product- - Product id
-
getCreated
@NonNull public Date getCreated()
Gets the creation timestamp for the image.- Returns:
- The image's creation timestamp.
-
-