Package org.ivoa.dm.executionbroker
Class SimpleSessionConnector
java.lang.Object
org.ivoa.dm.executionbroker.SimpleSessionConnector
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:SimpleSessionConnector",
role=objectType)
public class SimpleSessionConnector
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A connector to interact with the session.
objectType: SimpleSessionConnector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleSessionConnector, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected StringA URI to identify the type of connector.protected StringThe access connector URL.protected StringThe access protocol, provided by the server when an offer is made.protected StringA flag to indicate the staus of the access method. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimpleSessionConnectorSimpleSessionConnector(String kind, String status, String protocol, String location) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSessionConnectorcreate a SimpleSessionConnector in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()getKind()Returns kind Attribute.Returns location Attribute.Returns protocol Attribute.Returns status Attribute.voidSet kind Attribute.voidsetLocation(String pLocation) Set location Attribute.voidsetProtocol(String pProtocol) Set protocol Attribute.voidSet status Attribute.voidUpdate this object with the content of the given object.fluent setter for kind Attribute.withLocation(String pLocation) fluent setter for location Attribute.withProtocol(String pProtocol) fluent setter for protocol Attribute.withStatus(String pStatus) fluent setter for status Attribute.
-
Field Details
-
_id
inserted database key -
kind
@VoDml(id="execbroker:SimpleSessionConnector.kind", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String kindA URI to identify the type of connector. : Attribute kind : multiplicity 1 -
status
@VoDml(id="execbroker:SimpleSessionConnector.status", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String statusA flag to indicate the staus of the access method. : Attribute status : multiplicity 1 -
protocol
@VoDml(id="execbroker:SimpleSessionConnector.protocol", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String protocolThe access protocol, provided by the server when an offer is made. Typically one of [TCP, HTTP, HTTPS]. : Attribute protocol : multiplicity 1 -
location
@VoDml(id="execbroker:SimpleSessionConnector.location", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String locationThe access connector URL. : Attribute location : multiplicity 1
-
-
Constructor Details
-
SimpleSessionConnector
public SimpleSessionConnector()Creates a new SimpleSessionConnector -
SimpleSessionConnector
full parameter constructor.- Parameters:
kind- A URI to identify the type of connector.status- A flag to indicate the staus of the access method.protocol- The access protocol, provided by the server when an offer is made. Typically one of [TCP, HTTP, HTTPS].location- The access connector URL.
-
SimpleSessionConnector
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:
getIdin 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.
-
getKind
Returns kind Attribute.- Returns:
- kind Attribute
-
setKind
Set kind Attribute.- Parameters:
pKind- value to set
-
withKind
fluent setter for kind Attribute.- Parameters:
pKind- value to set- Returns:
- SimpleSessionConnector
-
getStatus
Returns status Attribute.- Returns:
- status Attribute
-
setStatus
Set status Attribute.- Parameters:
pStatus- value to set
-
withStatus
fluent setter for status Attribute.- Parameters:
pStatus- value to set- Returns:
- SimpleSessionConnector
-
getProtocol
Returns protocol Attribute.- Returns:
- protocol Attribute
-
setProtocol
Set protocol Attribute.- Parameters:
pProtocol- value to set
-
withProtocol
fluent setter for protocol Attribute.- Parameters:
pProtocol- value to set- Returns:
- SimpleSessionConnector
-
getLocation
Returns location Attribute.- Returns:
- location Attribute
-
setLocation
Set location Attribute.- Parameters:
pLocation- value to set
-
withLocation
fluent setter for location Attribute.- Parameters:
pLocation- value to set- Returns:
- SimpleSessionConnector
-
createSimpleSessionConnector
public static SimpleSessionConnector createSimpleSessionConnector(Consumer<SimpleSessionConnector.SimpleSessionConnectorBuilder> f) create a SimpleSessionConnector in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-