Package org.ivoa.dm.demodm.catalog.inner
Class Testing
java.lang.Object
org.ivoa.dm.demodm.catalog.inner.Testing
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="DemoDM:catalog.inner.Testing",
role=objectType)
public class Testing
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
objectType: Testing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Testing, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Testingcreate a Testing in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidorg.ivoa.dm.adqlgeom.CircleReturns acircle Attribute.org.javastro.ivoacore.pgsphere.types.PointReturns apoint Attribute.org.ivoa.dm.adqlgeom.PolygongetApoly()Returns apoly Attribute.getId()getPlain()Returns plain Attribute.Returns unbounded Attribute.voidsetAcircle(org.ivoa.dm.adqlgeom.Circle pAcircle) Set acircle Attribute.voidsetApoint(org.javastro.ivoacore.pgsphere.types.Point pApoint) Set apoint Attribute.voidsetApoly(org.ivoa.dm.adqlgeom.Polygon pApoly) Set apoly Attribute.voidSet plain Attribute.voidsetUnbounded(List<String> pUnbounded) Set unbounded Attribute.voidupdateUsing(Testing other) Update this object with the content of the given object.withAcircle(org.ivoa.dm.adqlgeom.Circle pAcircle) fluent setter for acircle Attribute.withApoint(org.javastro.ivoacore.pgsphere.types.Point pApoint) fluent setter for apoint Attribute.withApoly(org.ivoa.dm.adqlgeom.Polygon pApoly) fluent setter for apoly Attribute.fluent setter for plain Attribute.withUnbounded(List<String> pUnbounded) fluent setter for unbounded Attribute.
-
Field Details
-
_id
inserted database key -
plain
@VoDml(id="DemoDM:catalog.inner.Testing.plain", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String plaina single string. : Attribute plain type ivoa:string : multiplicity 1 -
unbounded
@VoDml(id="DemoDM:catalog.inner.Testing.unbounded", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> unboundedan array with many elements. : Attribute unbounded type ivoa:string : multiplicity 0..* -
apoint
@VoDml(id="DemoDM:catalog.inner.Testing.apoint", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected org.javastro.ivoacore.pgsphere.types.Point apoint. : Attribute apoint type adqlgeom:Point : multiplicity 1 -
acircle
@VoDml(id="DemoDM:catalog.inner.Testing.acircle", role=attribute, type="adqlgeom:Circle", typeRole=dataType) protected org.ivoa.dm.adqlgeom.Circle acircle. : Attribute acircle type adqlgeom:Circle : multiplicity 1 -
apoly
@VoDml(id="DemoDM:catalog.inner.Testing.apoly", role=attribute, type="adqlgeom:Polygon", typeRole=dataType) protected org.ivoa.dm.adqlgeom.Polygon apoly. : Attribute apoly type adqlgeom:Polygon : multiplicity 1
-
-
Constructor Details
-
Testing
public Testing()Creates a new Testing -
Testing
public Testing(String plain, List<String> unbounded, org.javastro.ivoacore.pgsphere.types.Point apoint, org.ivoa.dm.adqlgeom.Circle acircle, org.ivoa.dm.adqlgeom.Polygon apoly) full parameter constructor.- Parameters:
plain- a single string.unbounded- an array with many elements.apoint- .acircle- .apoly- .
-
Testing
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.
-
getPlain
Returns plain Attribute.- Returns:
- plain Attribute
-
setPlain
Set plain Attribute.- Parameters:
pPlain- value to set
-
withPlain
fluent setter for plain Attribute.- Parameters:
pPlain- value to set- Returns:
- Testing
-
getUnbounded
Returns unbounded Attribute.- Returns:
- unbounded Attribute
-
setUnbounded
Set unbounded Attribute.- Parameters:
pUnbounded- value to set
-
withUnbounded
fluent setter for unbounded Attribute.- Parameters:
pUnbounded- value to set- Returns:
- Testing
-
getApoint
public org.javastro.ivoacore.pgsphere.types.Point getApoint()Returns apoint Attribute.- Returns:
- apoint Attribute
-
setApoint
public void setApoint(org.javastro.ivoacore.pgsphere.types.Point pApoint) Set apoint Attribute.- Parameters:
pApoint- value to set
-
withApoint
fluent setter for apoint Attribute.- Parameters:
pApoint- value to set- Returns:
- Testing
-
getAcircle
public org.ivoa.dm.adqlgeom.Circle getAcircle()Returns acircle Attribute.- Returns:
- acircle Attribute
-
setAcircle
public void setAcircle(org.ivoa.dm.adqlgeom.Circle pAcircle) Set acircle Attribute.- Parameters:
pAcircle- value to set
-
withAcircle
fluent setter for acircle Attribute.- Parameters:
pAcircle- value to set- Returns:
- Testing
-
getApoly
public org.ivoa.dm.adqlgeom.Polygon getApoly()Returns apoly Attribute.- Returns:
- apoly Attribute
-
setApoly
public void setApoly(org.ivoa.dm.adqlgeom.Polygon pApoly) Set apoly Attribute.- Parameters:
pApoly- value to set
-
withApoly
fluent setter for apoly Attribute.- Parameters:
pApoly- value to set- Returns:
- Testing
-
createTesting
create a Testing 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>
-