@Entity public class Connector extends Persistable
id| Constructor and Description |
|---|
Connector()
Constructor for JPA entity.
|
Connector(String name,
Date created,
Date modified)
Creates a new instance of connector details.
|
Connector(String name,
String assemblyInstructions,
String description,
String type,
Date created,
Date modified,
GenericArtifact dataSheet,
List<ConnectorManufacturer> manufacturers,
String linkToDatasheet)
Creates a new instance of connector details.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
equalsContent(Connector other) |
String |
getAssemblyInstructions() |
Date |
getCreated() |
GenericArtifact |
getDataSheet() |
String |
getDescription() |
String |
getLinkToDatasheet() |
List<ConnectorManufacturer> |
getManufacturers() |
String |
getManufacturersAsString(boolean addDatasheet)
Joins the names of all manufacturers and datasheets of this cable type for filtering/sorting purposes.
|
Date |
getModified() |
String |
getName() |
String |
getType() |
int |
hashCode() |
boolean |
isActive() |
void |
setActive(boolean active)
Set the connector active state.
|
void |
setAssemblyInstructions(String assemblyInstructions) |
void |
setCreated(Date created) |
void |
setDataSheet(GenericArtifact dataSheet) |
void |
setDescription(String description) |
void |
setLinkToDatasheet(String linkToDatasheet) |
void |
setManufacturers(List<ConnectorManufacturer> manufacturers) |
void |
setModified(Date modified)
Sets the modified date of the manufacturer details.
|
void |
setName(String name) |
void |
setType(String connectorType) |
String |
toString() |
getIdpublic Connector()
public Connector(String name, Date created, Date modified)
name - connector namecreated - creation datemodified - modification datepublic Connector(String name, String assemblyInstructions, String description, String type, Date created, Date modified, GenericArtifact dataSheet, List<ConnectorManufacturer> manufacturers, String linkToDatasheet)
name - connector nameassemblyInstructions - assembly instructionsdescription - connector descriptiontype - connector typecreated - date when connector details were createdmodified - date when connector details were modifieddataSheet - data sheet artifactmanufacturers - the manufacturerslinkToDatasheet - link to the datasheetpublic String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getType()
public void setType(String connectorType)
public Date getCreated()
public void setCreated(Date created)
public Date getModified()
public void setModified(Date modified)
modified - the modified date to setpublic GenericArtifact getDataSheet()
public void setDataSheet(GenericArtifact dataSheet)
public boolean isActive()
public List<ConnectorManufacturer> getManufacturers()
public String getManufacturersAsString(boolean addDatasheet)
addDatasheet - boolean indicating whether or not to add datasheets to the string.public void setManufacturers(List<ConnectorManufacturer> manufacturers)
manufacturers - the manufacturers to setpublic void setActive(boolean active)
active - true if this connector is in active use, false if it was obsoletedpublic String getAssemblyInstructions()
public void setAssemblyInstructions(String assemblyInstructions)
public String getLinkToDatasheet()
public void setLinkToDatasheet(String linkToDatasheet)
public boolean equalsContent(Connector other)
Copyright © 2025 European Spallation Source. All rights reserved.