Class Client
- java.lang.Object
-
- Client
-
public class Client extends java.lang.ObjectThis class represents a client in the system.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetClientActive()Gets the active status of this client.intgetClientID()Gets the client ID of this client.java.lang.StringgetClientName()Gets the name of this client.java.time.LocalDategetClientRegDate()Gets the registration date of this client.voidsetClientActive(boolean clientActive)Sets the active status of this client.voidsetClientID(int clientID)Sets the client ID of this client.voidsetClientName(java.lang.String clientName)Sets the name of this client.java.lang.StringtoString()Returns a string representation of the client instance.
-
-
-
Method Detail
-
getClientID
public int getClientID()
Gets the client ID of this client.- Returns:
- the client ID of this client.
-
setClientID
public void setClientID(int clientID)
Sets the client ID of this client.- Parameters:
clientID- the new client ID to be set.
-
getClientName
public java.lang.String getClientName()
Gets the name of this client.- Returns:
- the name of this client.
-
setClientName
public void setClientName(java.lang.String clientName)
Sets the name of this client.- Parameters:
clientName- the new name to be set.
-
getClientRegDate
public java.time.LocalDate getClientRegDate()
Gets the registration date of this client.- Returns:
- the registration date of this client.
-
getClientActive
public boolean getClientActive()
Gets the active status of this client.- Returns:
- the active status of this client.
-
setClientActive
public void setClientActive(boolean clientActive)
Sets the active status of this client.- Parameters:
clientActive- the new active status to be set.
-
toString
public java.lang.String toString()
Returns a string representation of the client instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string containing the client's name, ID, registration date and active status.
-
-