Class TableSet
java.lang.Object
org.ivoa.dm.registry.vodataservice.TableSet
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
 Tableset
@Entity
@VoDml(id="VODataService:TableSet",
       role=objectType)
public class TableSet
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The set of tables hosted by a resource. 
 objectType:  TableSet
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TableSet, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected List<TableSchema>A named description of a group of logically related tables. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.vodataservice.TableSchema to the composition.copyMe()make a clone of the object taking into account current polymorhic type.static TableSetcreate a TableSet in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns schema composition as an immutable list.voidRemove a org.ivoa.dm.registry.vodataservice.TableSchema from the composition.voidupdate a org.ivoa.dm.registry.vodataservice.TableSchema in the composition.voidsetSchema(List<TableSchema> pSchema) Defines whole schema composition.voidupdateUsing(TableSet other) Update this object with the content of the given object. 
- 
Field Details
- 
_id
inserted database key - 
schema
@VoDml(id="VODataService:TableSet.schema", role=composition, type="VODataService:TableSchema", typeRole=objectType) protected List<TableSchema> schemaA named description of a group of logically related tables. The name given by the “name” child element must be unique within this TableSet instance. If there is only one schema in this set and/or there is no locally appropriate name to provide, the name can be set to “default”. This aggregation does not need to map to an actual database, catalogue, or schema, though the publisher may choose to aggregate along such designations. Particular service protocols may require stricter patterns. composition schema : ( Multiplicity : 1..* ) 
 - 
 - 
Constructor Details
- 
TableSet
public TableSet()Creates a new TableSet - 
TableSet
full parameter constructor.- Parameters:
 schema- A named description of a group of logically related tables. The name given by the “name” child element must be unique within this TableSet instance. If there is only one schema in this set and/or there is no locally appropriate name to provide, the name can be set to “default”. This aggregation does not need to map to an actual database, catalogue, or schema, though the publisher may choose to aggregate along such designations. Particular service protocols may require stricter patterns.
 - 
TableSet
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
 
 - 
copyMe
make a clone of the object taking into account current polymorhic type.- Returns:
 - the cloned object.
 
 - 
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.
 - 
getSchema
Returns schema composition as an immutable list.- Returns:
 - schema composition.
 
 - 
setSchema
Defines whole schema composition.- Parameters:
 pSchema- composition to set.
 - 
addToSchema
Add a org.ivoa.dm.registry.vodataservice.TableSchema to the composition.- Parameters:
 p- org.ivoa.dm.registry.vodataservice.TableSchema to add
 - 
removeFromSchema
Remove a org.ivoa.dm.registry.vodataservice.TableSchema from the composition.- Parameters:
 p- org.ivoa.dm.registry.vodataservice.TableSchema to remove
 - 
replaceInSchema
update a org.ivoa.dm.registry.vodataservice.TableSchema in the composition.- Parameters:
 _p- org.ivoa.dm.registry.vodataservice.TableSchema to update the match is done via the database key
 - 
createTableSet
create a TableSet 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>
 
 -