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) voidgetId()getPlain()Returns plain Attribute.Returns unbounded Attribute.voidSet plain Attribute.voidsetUnbounded(List<String> pUnbounded) Set unbounded Attribute.voidupdateUsing(Testing other) Update this object with the content of the given object.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..*
-
-
Constructor Details
-
Testing
public Testing()Creates a new Testing -
Testing
full parameter constructor.- Parameters:
plain- a single string.unbounded- an array with many elements.
-
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
-
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>
-