ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm20
Interface CollectionTable<T>

All Superinterfaces:
Child<T>

public interface CollectionTable<T>
extends Child<T>

This interface defines the contract for the collection-table xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 CollectionTable<T> catalog(String catalog)
          Sets the catalog attribute
 JoinColumn<CollectionTable<T>> createJoinColumn()
          Creates a new join-column element
 UniqueConstraint<CollectionTable<T>> createUniqueConstraint()
          Creates a new unique-constraint element
 List<JoinColumn<CollectionTable<T>>> getAllJoinColumn()
          Returns all join-column elements
 List<UniqueConstraint<CollectionTable<T>>> getAllUniqueConstraint()
          Returns all unique-constraint elements
 String getCatalog()
          Returns the catalog attribute
 String getName()
          Returns the name attribute
 JoinColumn<CollectionTable<T>> getOrCreateJoinColumn()
          If not already created, a new join-column element will be created and returned.
 UniqueConstraint<CollectionTable<T>> getOrCreateUniqueConstraint()
          If not already created, a new unique-constraint element will be created and returned.
 String getSchema()
          Returns the schema attribute
 CollectionTable<T> name(String name)
          Sets the name attribute
 CollectionTable<T> removeAllJoinColumn()
          Removes all join-column elements
 CollectionTable<T> removeAllUniqueConstraint()
          Removes all unique-constraint elements
 CollectionTable<T> removeCatalog()
          Removes the catalog attribute
 CollectionTable<T> removeName()
          Removes the name attribute
 CollectionTable<T> removeSchema()
          Removes the schema attribute
 CollectionTable<T> schema(String schema)
          Sets the schema attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

getOrCreateJoinColumn

JoinColumn<CollectionTable<T>> getOrCreateJoinColumn()
If not already created, a new join-column element will be created and returned. Otherwise, the first existing join-column element will be returned.

Returns:
the instance defined for the element join-column

createJoinColumn

JoinColumn<CollectionTable<T>> createJoinColumn()
Creates a new join-column element

Returns:
the new created instance of JoinColumn>

getAllJoinColumn

List<JoinColumn<CollectionTable<T>>> getAllJoinColumn()
Returns all join-column elements

Returns:
list of join-column

removeAllJoinColumn

CollectionTable<T> removeAllJoinColumn()
Removes all join-column elements

Returns:
the current instance of JoinColumn>

getOrCreateUniqueConstraint

UniqueConstraint<CollectionTable<T>> getOrCreateUniqueConstraint()
If not already created, a new unique-constraint element will be created and returned. Otherwise, the first existing unique-constraint element will be returned.

Returns:
the instance defined for the element unique-constraint

createUniqueConstraint

UniqueConstraint<CollectionTable<T>> createUniqueConstraint()
Creates a new unique-constraint element

Returns:
the new created instance of UniqueConstraint>

getAllUniqueConstraint

List<UniqueConstraint<CollectionTable<T>>> getAllUniqueConstraint()
Returns all unique-constraint elements

Returns:
list of unique-constraint

removeAllUniqueConstraint

CollectionTable<T> removeAllUniqueConstraint()
Removes all unique-constraint elements

Returns:
the current instance of UniqueConstraint>

name

CollectionTable<T> name(String name)
Sets the name attribute

Parameters:
name - the value for the attribute name
Returns:
the current instance of CollectionTable

getName

String getName()
Returns the name attribute

Returns:
the value defined for the attribute name

removeName

CollectionTable<T> removeName()
Removes the name attribute

Returns:
the current instance of CollectionTable

catalog

CollectionTable<T> catalog(String catalog)
Sets the catalog attribute

Parameters:
catalog - the value for the attribute catalog
Returns:
the current instance of CollectionTable

getCatalog

String getCatalog()
Returns the catalog attribute

Returns:
the value defined for the attribute catalog

removeCatalog

CollectionTable<T> removeCatalog()
Removes the catalog attribute

Returns:
the current instance of CollectionTable

schema

CollectionTable<T> schema(String schema)
Sets the schema attribute

Parameters:
schema - the value for the attribute schema
Returns:
the current instance of CollectionTable

getSchema

String getSchema()
Returns the schema attribute

Returns:
the value defined for the attribute schema

removeSchema

CollectionTable<T> removeSchema()
Removes the schema attribute

Returns:
the current instance of CollectionTable

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.