Package org.ivoa.dm.registry.tap
Class DataLimit
java.lang.Object
org.ivoa.dm.registry.tap.DataLimit
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="TAPRegExt:DataLimit",
       role=dataType)
public class DataLimit
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A limit on some data size, either in rows or in bytes. 
 dataType:  DataLimit
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DataLimit, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataLimit_unitThe unit of the limit specified.protected Integer. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic DataLimitcreate a DataLimit in functional builder style.voidgetUnit()Returns unit Attribute.getValue()Returns value Attribute.voidsetUnit(DataLimit_unit pUnit) Set unit Attribute.voidSet value Attribute.voidupdateUsing(DataLimit other) Update this object with the content of the given object.withUnit(DataLimit_unit pUnit) fluent setter for unit Attribute.fluent setter for value Attribute. 
- 
Field Details
- 
value
@VoDml(id="TAPRegExt:DataLimit.value", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer value. : Attribute value : multiplicity 1 - 
unit
@VoDml(id="TAPRegExt:DataLimit.unit", role=attribute, type="TAPRegExt:DataLimit_unit", typeRole=enumeration) protected DataLimit_unit unitThe unit of the limit specified. : Attribute unit : multiplicity 1 
 - 
 - 
Constructor Details
- 
DataLimit
public DataLimit()Creates a new DataLimit - 
DataLimit
full parameter constructor.- Parameters:
 value- .unit- The unit of the limit specified.
 - 
DataLimit
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 
 - 
 - 
Method Details
- 
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.
 - 
getValue
Returns value Attribute.- Returns:
 - value Attribute
 
 - 
setValue
Set value Attribute.- Parameters:
 pValue- value to set
 - 
withValue
fluent setter for value Attribute.- Parameters:
 pValue- value to set- Returns:
 - DataLimit
 
 - 
getUnit
Returns unit Attribute.- Returns:
 - unit Attribute
 
 - 
setUnit
Set unit Attribute.- Parameters:
 pUnit- value to set
 - 
withUnit
fluent setter for unit Attribute.- Parameters:
 pUnit- value to set- Returns:
 - DataLimit
 
 - 
createDataLimit
create a DataLimit 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
 
 -