Package org.ivoa.dm.tool
Class OCIRegistry
java.lang.Object
org.ivoa.dm.tool.OCIRegistry
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:OCIRegistry",
role=objectType)
public class OCIRegistry
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Details about the OCIcontainer registry.
objectType: OCIRegistry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for OCIRegistry, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OCIRegistryOCIRegistry(String host, String project) full parameter constructor.OCIRegistry(OCIRegistry other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic OCIRegistrycreate a OCIRegistry in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetHost()Returns host Attribute.getId()Returns project Attribute.getXmlId()getter for XMLIDbooleanvoidSet host Attribute.voidsetProject(String pProject) Set project Attribute.voidvoidupdateUsing(OCIRegistry other) Update this object with the content of the given object.fluent setter for host Attribute.withProject(String pProject) fluent setter for project Attribute.
-
Field Details
-
_id
inserted database key -
host
@VoDml(id="tool:OCIRegistry.host", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String hostContainer registry hostname. : Attribute host type ivoa:string : multiplicity 1 -
project
@VoDml(id="tool:OCIRegistry.project", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String projectContainer registry project/namespace. : Attribute project type ivoa:string : multiplicity 1
-
-
Constructor Details
-
OCIRegistry
public OCIRegistry()Creates a new OCIRegistry -
OCIRegistry
full parameter constructor.- Parameters:
host- Container registry hostname.project- Container registry project/namespace.
-
OCIRegistry
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
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
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.
-
getHost
Returns host Attribute.- Returns:
- host Attribute
-
setHost
Set host Attribute.- Parameters:
pHost- value to set
-
withHost
fluent setter for host Attribute.- Parameters:
pHost- value to set- Returns:
- OCIRegistry
-
getProject
Returns project Attribute.- Returns:
- project Attribute
-
setProject
Set project Attribute.- Parameters:
pProject- value to set
-
withProject
fluent setter for project Attribute.- Parameters:
pProject- value to set- Returns:
- OCIRegistry
-
createOCIRegistry
create a OCIRegistry 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>
-