@Entity public class Shift extends AbstractPersistable
id, tenantId, version| Constructor and Description |
|---|
Shift() |
Shift(Integer tenantId,
Spot spot,
OffsetDateTime startDateTime,
OffsetDateTime endDateTime) |
Shift(Integer tenantId,
Spot spot,
OffsetDateTime startDateTime,
OffsetDateTime endDateTime,
Employee rotationEmployee) |
Shift(ZoneId zoneId,
ShiftView shiftView,
Spot spot) |
Shift(ZoneId zoneId,
ShiftView shiftView,
Spot spot,
Employee rotationEmployee) |
| Modifier and Type | Method and Description |
|---|---|
Employee |
getEmployee() |
OffsetDateTime |
getEndDateTime() |
Employee |
getRotationEmployee() |
Spot |
getSpot() |
OffsetDateTime |
getStartDateTime() |
Shift |
inTimeZone(ZoneId zoneId) |
boolean |
isPinnedByUser() |
void |
setEmployee(Employee employee) |
void |
setEndDateTime(OffsetDateTime endDateTime) |
void |
setPinnedByUser(boolean lockedByUser) |
void |
setRotationEmployee(Employee rotationEmployee) |
void |
setSpot(Spot spot) |
void |
setStartDateTime(OffsetDateTime startDateTime) |
String |
toString() |
equals, getId, getTenantId, getVersion, hashCode, setId, setTenantId, setVersionpublic Shift()
public Shift(Integer tenantId, Spot spot, OffsetDateTime startDateTime, OffsetDateTime endDateTime)
public Shift(Integer tenantId, Spot spot, OffsetDateTime startDateTime, OffsetDateTime endDateTime, Employee rotationEmployee)
public String toString()
toString in class AbstractPersistablepublic Spot getSpot()
public void setSpot(Spot spot)
public OffsetDateTime getStartDateTime()
public void setStartDateTime(OffsetDateTime startDateTime)
public OffsetDateTime getEndDateTime()
public void setEndDateTime(OffsetDateTime endDateTime)
public boolean isPinnedByUser()
public void setPinnedByUser(boolean lockedByUser)
public Employee getEmployee()
public void setEmployee(Employee employee)
public Employee getRotationEmployee()
public void setRotationEmployee(Employee rotationEmployee)
Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.