Package org.ivoa.dm.registry.tap
Class TimeLimits
java.lang.Object
org.ivoa.dm.registry.tap.TimeLimits
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="TAPRegExt:TimeLimits",
       role=objectType)
public class TimeLimits
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Time-valued limits, all values given in seconds. 
 objectType:  TimeLimits
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TimeLimits, mainly for use in the functional builder pattern. - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TimeLimitsTimeLimits(Integer default_, Integer hard) full parameter constructor.TimeLimits(TimeLimits other) Copy Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionstatic TimeLimitscreate a TimeLimits in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns default Attribute.getHard()Returns hard Attribute.getId()voidsetDefault(Integer pDefault) Set default Attribute.voidSet hard Attribute.voidupdateUsing(TimeLimits other) Update this object with the content of the given object.withDefault(Integer pDefault) fluent setter for default Attribute.fluent setter for hard Attribute. 
- 
Field Details
- 
_id
inserted database key - 
default_
@VoDml(id="TAPRegExt:TimeLimits.default", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer default_The value of this limit for newly-created jobs, given in seconds. : Attribute default_ : multiplicity 0..1 - 
hard
@VoDml(id="TAPRegExt:TimeLimits.hard", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer hardThe value this limit cannot be raised above, given in seconds. : Attribute hard : multiplicity 0..1 
 - 
 - 
Constructor Details
- 
TimeLimits
public TimeLimits()Creates a new TimeLimits - 
TimeLimits
full parameter constructor.- Parameters:
 default_- The value of this limit for newly-created jobs, given in seconds.hard- The value this limit cannot be raised above, given in seconds.
 - 
TimeLimits
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:
 - TimeLimits
 
 - 
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:
 - TimeLimits
 
 - 
createTimeLimits
create a TimeLimits 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>
 
 -