Package org.ivoa.dm.registry.tap
Class DataLimits
java.lang.Object
org.ivoa.dm.registry.tap.DataLimits
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="TAPRegExt:DataLimits",
       role=objectType)
public class DataLimits
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Limits on data sizes, given in rows or bytes. 
 objectType:  DataLimits
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DataLimits, mainly for use in the functional builder pattern. - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DataLimitsDataLimits(DataLimit default_, DataLimit hard) full parameter constructor.DataLimits(DataLimits other) Copy Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionstatic DataLimitscreate a DataLimits in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns default Attribute.getHard()Returns hard Attribute.getId()voidsetDefault(DataLimit pDefault) Set default Attribute.voidSet hard Attribute.voidupdateUsing(DataLimits other) Update this object with the content of the given object.withDefault(DataLimit pDefault) fluent setter for default Attribute.fluent setter for hard Attribute. 
- 
Field Details
- 
_id
inserted database key - 
default_
@VoDml(id="TAPRegExt:DataLimits.default", role=attribute, type="TAPRegExt:DataLimit", typeRole=dataType) protected DataLimit default_The value of this limit for newly-created jobs. : Attribute default_ : multiplicity 0..1 - 
hard
@VoDml(id="TAPRegExt:DataLimits.hard", role=attribute, type="TAPRegExt:DataLimit", typeRole=dataType) protected DataLimit hardThe value this limit cannot be raised above. : Attribute hard : multiplicity 0..1 
 - 
 - 
Constructor Details
- 
DataLimits
public DataLimits()Creates a new DataLimits - 
DataLimits
full parameter constructor.- Parameters:
 default_- The value of this limit for newly-created jobs.hard- The value this limit cannot be raised above.
 - 
DataLimits
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.
 - 
getDefault
Returns default Attribute.- Returns:
 - default Attribute
 
 - 
setDefault
Set default Attribute.- Parameters:
 pDefault- value to set
 - 
withDefault
fluent setter for default Attribute.- Parameters:
 pDefault- value to set- Returns:
 - DataLimits
 
 - 
getHard
Returns hard Attribute.- Returns:
 - hard Attribute
 
 - 
setHard
Set hard Attribute.- Parameters:
 pHard- value to set
 - 
withHard
fluent setter for hard Attribute.- Parameters:
 pHard- value to set- Returns:
 - DataLimits
 
 - 
createDataLimits
create a DataLimits 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>
 
 -