Class Project
java.lang.Object
Project
Represents a single 3D print project stored by the application.
This value object contains the metadata persisted in the application's H2 database
(see `projects` table). Typical usage is to construct an instance from a
ResultSet retrieved from the database and then expose the values
to UI components or reporting utilities.
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TimestampTimestamp when project was createdprivate StringProject description or notesprivate StringAbsolute path to project files on diskprivate intUnique project ID (primary key in database)List of timestamps recording last printed datesprivate StringProject name/titleprivate StringProject type (e.g., Prototype, Final Print) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the timestamp when the project record was created.Returns the project's description or user-supplied notes.Returns the absolute filesystem path where the project's files reside.intgetId()Returns the unique database identifier for this project.Retrieve the list of last-printed timestamps recorded for this project.getName()Returns the human-readable project name.Returns the project type or category (e.g., Prototype, Final Print).voidsetLastPrintedDates(List<Timestamp> lastPrintedDates) Replace the cached list of last-printed timestamps for the project.
-
Field Details
-
id
private int idUnique project ID (primary key in database) -
name
Project name/title -
projectType
Project type (e.g., Prototype, Final Print) -
filePath
Absolute path to project files on disk -
description
Project description or notes -
createdDate
Timestamp when project was created -
lastPrintedDates
-
-
Constructor Details
-
Project
public Project(int id, String name, String projectType, String filePath, String description, Timestamp createdDate) Create a new Project instance with metadata values.- Parameters:
id- the unique project identifier (database primary key)name- human-readable project nameprojectType- a short category string describing the projectfilePath- absolute filesystem path where project files residedescription- free-text description or notescreatedDate- timestamp when the project record was created
-
-
Method Details
-
getId
public int getId()Returns the unique database identifier for this project.- Returns:
- the database id for this project
-
getName
-
getProjectType
Returns the project type or category (e.g., Prototype, Final Print).- Returns:
- the project type/category
-
getFilePath
Returns the absolute filesystem path where the project's files reside.- Returns:
- absolute path to the project's files
-
getDescription
Returns the project's description or user-supplied notes.- Returns:
- project description or notes
-
getCreatedDate
Returns the timestamp when the project record was created.- Returns:
- when the project was created in the system
-
setLastPrintedDates
-
getLastPrintedDates
-