Package org.ivoa.dm.regtap
Class Capability
java.lang.Object
org.ivoa.dm.regtap.Capability
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:Capability",
role=objectType)
public class Capability
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Pieces of behaviour of a resource.
objectType: Capability
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for Capability, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
inserted database keyprotected String
A human-readable description of what this capability provides as part of the over-all service.protected Integer
An arbitrary identifier of this capability within the resource.protected String
The type of capability covered here.protected String
A URI for a standard this capability conforms to. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CapabilityCapability
(Integer cap_index, String cap_type, String cap_description, String standard_id) full parameter constructor.Capability
(Capability other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Capability
create a Capability in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns cap_description Attribute.Returns cap_index Attribute.Returns cap_type Attribute.getId()
Returns standard_id Attribute.void
setCap_description
(String pCap_description) Set cap_description Attribute.void
setCap_index
(Integer pCap_index) Set cap_index Attribute.void
setCap_type
(String pCap_type) Set cap_type Attribute.void
setStandard_id
(String pStandard_id) Set standard_id Attribute.void
updateUsing
(Capability other) Update this object with the content of the given object.withCap_description
(String pCap_description) fluent setter for cap_description Attribute.withCap_index
(Integer pCap_index) fluent setter for cap_index Attribute.withCap_type
(String pCap_type) fluent setter for cap_type Attribute.withStandard_id
(String pStandard_id) fluent setter for standard_id Attribute.
-
Field Details
-
_id
inserted database key -
cap_index
@VoDml(id="RegTAP:Capability.cap_index", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer cap_indexAn arbitrary identifier of this capability within the resource. : Attribute cap_index : multiplicity 1 -
cap_type
@VoDml(id="RegTAP:Capability.cap_type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cap_typeThe type of capability covered here. If looking for endpoints implementing a certain standard, you should not use this column but rather match against standard_id. : Attribute cap_type : multiplicity 1 -
cap_description
@VoDml(id="RegTAP:Capability.cap_description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cap_descriptionA human-readable description of what this capability provides as part of the over-all service. : Attribute cap_description : multiplicity 1 -
standard_id
@VoDml(id="RegTAP:Capability.standard_id", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String standard_idA URI for a standard this capability conforms to. : Attribute standard_id : multiplicity 1
-
-
Constructor Details
-
Capability
public Capability()Creates a new Capability -
Capability
full parameter constructor.- Parameters:
cap_index
- An arbitrary identifier of this capability within the resource.cap_type
- The type of capability covered here. If looking for endpoints implementing a certain standard, you should not use this column but rather match against standard_id.cap_description
- A human-readable description of what this capability provides as part of the over-all service.standard_id
- A URI for a standard this capability conforms to.
-
Capability
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
getCap_index
Returns cap_index Attribute.- Returns:
- cap_index Attribute
-
setCap_index
Set cap_index Attribute.- Parameters:
pCap_index
- value to set
-
withCap_index
fluent setter for cap_index Attribute.- Parameters:
pCap_index
- value to set- Returns:
- Capability
-
getCap_type
Returns cap_type Attribute.- Returns:
- cap_type Attribute
-
setCap_type
Set cap_type Attribute.- Parameters:
pCap_type
- value to set
-
withCap_type
fluent setter for cap_type Attribute.- Parameters:
pCap_type
- value to set- Returns:
- Capability
-
getCap_description
Returns cap_description Attribute.- Returns:
- cap_description Attribute
-
setCap_description
Set cap_description Attribute.- Parameters:
pCap_description
- value to set
-
withCap_description
fluent setter for cap_description Attribute.- Parameters:
pCap_description
- value to set- Returns:
- Capability
-
getStandard_id
Returns standard_id Attribute.- Returns:
- standard_id Attribute
-
setStandard_id
Set standard_id Attribute.- Parameters:
pStandard_id
- value to set
-
withStandard_id
fluent setter for standard_id Attribute.- Parameters:
pStandard_id
- value to set- Returns:
- Capability
-
createCapability
create a Capability in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-