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) voidReturns acircle Attribute.Returns apoint Attribute.getApoly()Returns apoly Attribute.getId()getPlain()Returns plain Attribute.Returns unbounded Attribute.voidsetAcircle(Circle pAcircle) Set acircle Attribute.voidSet apoint Attribute.voidSet 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(Circle pAcircle) fluent setter for acircle Attribute.withApoint(Point pApoint) fluent setter for apoint Attribute.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 : 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 : multiplicity 0..* -
apoint
@VoDml(id="DemoDM:catalog.inner.Testing.apoint", role=attribute, type="DemoDM:Point", typeRole=dataType) protected Point apoint. : Attribute apoint : multiplicity 1 -
acircle
@VoDml(id="DemoDM:catalog.inner.Testing.acircle", role=attribute, type="DemoDM:Circle", typeRole=dataType) protected Circle acircle. : Attribute acircle : multiplicity 1 -
apoly
@VoDml(id="DemoDM:catalog.inner.Testing.apoly", role=attribute, type="DemoDM:Polygon", typeRole=dataType) protected Polygon apoly. : Attribute apoly : multiplicity 1
-
-
Constructor Details
-
Testing
public Testing()Creates a new Testing -
Testing
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
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:
- Testing
-
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:
- Testing
-
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:
- 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>
-