@Entity public class CableType extends Persistable
| Modifier and Type | Field and Description |
|---|---|
static int |
DESCRIPTION_FIELD_LENGTH |
id| Constructor and Description |
|---|
CableType()
Constructor for JPA entity.
|
CableType(String name,
InstallationType installationType)
Creates a new instance of cable type.
|
CableType(String name,
InstallationType installationType,
String description,
String service,
Integer voltage,
String insulation,
String jacket,
String flammability,
Float tid,
Float weight,
Float diameter,
List<CableTypeManufacturer> manufacturers,
String comments,
String revision)
Creates a new instance of cable type.
|
getIdpublic static final int DESCRIPTION_FIELD_LENGTH
public CableType()
public CableType(String name, InstallationType installationType)
name - the name/codeinstallationType - the allowed installation typepublic CableType(String name, InstallationType installationType, String description, String service, Integer voltage, String insulation, String jacket, String flammability, Float tid, Float weight, Float diameter, List<CableTypeManufacturer> manufacturers, String comments, String revision)
name - the name/codeinstallationType - the allowed installation typedescription - the descriptionservice - the service/function descriptionvoltage - the voltage rating descriptioninsulation - the insulation materialjacket - the type of jacketflammability - the flammability classificationtid - the total ionizing dose in mradweight - the weight in kg/meterdiameter - the outer diameter in mmmanufacturers - the manufacturerscomments - the commentsrevision - the revisionpublic String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getService()
public void setService(String service)
public Integer getVoltage()
public void setVoltage(Integer voltage)
public String getInsulation()
public void setInsulation(String insulation)
public String getJacket()
public void setJacket(String jacket)
public String getFlammability()
public void setFlammability(String flammability)
public InstallationType getInstallationType()
public void setInstallationType(InstallationType installationType)
public Float getTid()
public void setTid(Float tid)
public Float getWeight()
public void setWeight(Float weight)
public Float getDiameter()
public void setDiameter(Float diameter)
public String getComments()
public void setComments(String comments)
public List<CableTypeManufacturer> getManufacturers()
public String getManufacturersAsString(boolean addDatasheet)
addDatasheet - boolean indicating whether or not to add datasheets to the string.public void setManufacturers(List<CableTypeManufacturer> manufacturers)
manufacturers - the manufacturers to setpublic String getRevision()
public void setRevision(String revision)
public boolean isActive()
public void setActive(boolean active)
active - true if this cable type is in active use, false if it was obsoletedpublic boolean equalsContent(CableType other)
Copyright © 2025 European Spallation Source. All rights reserved.