Package net.ivoa.dm.adqlgeom.test
Class ATest
java.lang.Object
net.ivoa.dm.adqlgeom.test.ATest
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="adqltest:ATest",
role=objectType)
public class ATest
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Just for testing.
objectType: ATest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ATest, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ATestcreate a ATest in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns acircle Attribute.Returns aninterval Attribute.Returns apoint Attribute.getApoly()Returns apoly Attribute.getId()voidsetAcircle(Circle pAcircle) Set acircle Attribute.voidsetAninterval(Interval pAninterval) Set aninterval Attribute.voidSet apoint Attribute.voidSet apoly Attribute.voidupdateUsing(ATest other) Update this object with the content of the given object.withAcircle(Circle pAcircle) fluent setter for acircle Attribute.withAninterval(Interval pAninterval) fluent setter for aninterval Attribute.withApoint(Point pApoint) fluent setter for apoint Attribute.fluent setter for apoly Attribute.
-
Field Details
-
_id
inserted database key -
apoint
@VoDml(id="adqltest:ATest.apoint", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected Point apoint. : Attribute apoint : multiplicity 1 -
acircle
@VoDml(id="adqltest:ATest.acircle", role=attribute, type="adqlgeom:Circle", typeRole=dataType) protected Circle acircle. : Attribute acircle : multiplicity 1 -
apoly
@VoDml(id="adqltest:ATest.apoly", role=attribute, type="adqlgeom:Polygon", typeRole=dataType) protected Polygon apoly. : Attribute apoly : multiplicity 1 -
aninterval
@VoDml(id="adqltest:ATest.aninterval", role=attribute, type="adqlgeom:Interval", typeRole=dataType) protected Interval aninterval. : Attribute aninterval : multiplicity 1
-
-
Constructor Details
-
ATest
public ATest()Creates a new ATest -
ATest
full parameter constructor.- Parameters:
apoint- .acircle- .apoly- .aninterval- .
-
ATest
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.
-
getApoint
Returns apoint Attribute.- Returns:
- apoint Attribute
-
setApoint
Set apoint Attribute.- Parameters:
pApoint- value to set
-
withApoint
fluent setter for apoint Attribute.- Parameters:
pApoint- value to set- Returns:
- ATest
-
getAcircle
Returns acircle Attribute.- Returns:
- acircle Attribute
-
setAcircle
Set acircle Attribute.- Parameters:
pAcircle- value to set
-
withAcircle
fluent setter for acircle Attribute.- Parameters:
pAcircle- value to set- Returns:
- ATest
-
getApoly
Returns apoly Attribute.- Returns:
- apoly Attribute
-
setApoly
Set apoly Attribute.- Parameters:
pApoly- value to set
-
withApoly
fluent setter for apoly Attribute.- Parameters:
pApoly- value to set- Returns:
- ATest
-
getAninterval
Returns aninterval Attribute.- Returns:
- aninterval Attribute
-
setAninterval
Set aninterval Attribute.- Parameters:
pAninterval- value to set
-
withAninterval
fluent setter for aninterval Attribute.- Parameters:
pAninterval- value to set- Returns:
- ATest
-
createATest
create a ATest 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>
-