Package entity
Class Employee
java.lang.Object
entity.AbstractEmployee
entity.Employee
- All Implemented Interfaces:
Person
- Direct Known Subclasses:
Manager
Represents an employee in the banking system.
Built using the Builder pattern.
- Author:
- TAMIL MUGHILAN
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for creating Employee instances. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class entity.AbstractEmployee
canApproveTransactions, getEmail, getId, getName, getPassword, getRole, setEmail, setId, setName, setPassword, setRole
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface entity.Person
isValidEmail, isValidName
-
Field Details
-
branch_id
private final int branch_id
-
-
Constructor Details
-
Employee
-
-
Method Details
-
getBranchId
public int getBranchId()Gets the branch ID.- Specified by:
getBranchId
in classAbstractEmployee
- Returns:
- the branch ID
-
toString
-