org.optaplanner.examples.common.domain
Class AbstractPersistable
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>
- Direct Known Subclasses:
- AdmissionPart, Allocation, Bed, BedDesignation, City, CloudBalance, CloudComputer, CloudProcess, Column, Contract, ContractLine, Course, CourseSchedule, Curriculum, Customer, Day, Day, Day, DayOffRequest, DayOnRequest, Department, DepartmentSpecialism, Depot, Domicile, Employee, Equipment, Exam, Examination, ExecutionMode, Guest, HobbyPractician, InstitutionParametrization, Job, Job, Lecture, Location, MachineReassignment, Manners2009, Match, MrBalancePenalty, MrGlobalPenaltyInfo, MrLocation, MrMachine, MrMachineCapacity, MrNeighborhood, MrProcess, MrProcessAssignment, MrProcessRequirement, MrResource, MrService, Night, NQueens, NurseRoster, NurseRosterInfo, NurseRosterParametrization, Patient, PatientAdmissionSchedule, Pattern, PatternContractLine, Period, Period, PeriodPenalty, PreferredPatientEquipment, Project, Queen, RequiredPatientEquipment, Resource, ResourceRequirement, Room, Room, Room, RoomEquipment, RoomPenalty, RoomSpecialism, Row, Schedule, Seat, SeatDesignation, Shift, ShiftAssignment, ShiftDate, ShiftOffRequest, ShiftOnRequest, ShiftType, ShiftTypeSkillRequirement, Skill, SkillProficiency, Specialism, Student, Table, Teacher, Team, Team, TeamAssignment, TennisSolution, Timeslot, Topic, TravelingSalesmanTour, TravelingTournament, UnavailabilityPenalty, UnavailablePeriodPenalty, Vehicle, VehicleRoutingSolution, Visit
public abstract class AbstractPersistable
- extends Object
- implements Serializable, Comparable<AbstractPersistable>
- See Also:
- Serialized Form
Field Summary |
protected Long |
id
|
id
protected Long id
AbstractPersistable
protected AbstractPersistable()
AbstractPersistable
protected AbstractPersistable(long id)
getId
public Long getId()
setId
public void setId(Long id)
compareTo
public int compareTo(AbstractPersistable other)
- Used by the GUI to sort the
ConstraintMatch
list
by ConstraintMatch.getJustificationList()
.
- Specified by:
compareTo
in interface Comparable<AbstractPersistable>
- Parameters:
other
- never null
- Returns:
- comparison
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.