Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmSecondaryTableType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSecondaryTableType
- All Implemented Interfaces:
Serializable,TableInformationContainer
public class JaxbHbmSecondaryTableType
extends Object
implements Serializable, TableInformationContainer
A join allows some properties of a class to be persisted to a second table
Java class for SecondaryTableType complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="SecondaryTableType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="subselect" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="key" type="{http://www.hibernate.org/xsd/orm/hbm}key-type"/>
<choice maxOccurs="unbounded" minOccurs="0">
<element name="property" type="{http://www.hibernate.org/xsd/orm/hbm}BasicAttributeType"/>
<element name="many-to-one" type="{http://www.hibernate.org/xsd/orm/hbm}ManyToOneType"/>
<element name="component" type="{http://www.hibernate.org/xsd/orm/hbm}CompositeAttributeType"/>
<element name="dynamic-component" type="{http://www.hibernate.org/xsd/orm/hbm}dynamic-component-type"/>
<element name="any" type="{http://www.hibernate.org/xsd/orm/hbm}AnyAssociationType"/>
</choice>
<group ref="{http://www.hibernate.org/xsd/orm/hbm}CustomSqlDmlGroup"/>
</sequence>
<attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="fetch" type="{http://www.hibernate.org/xsd/orm/hbm}FetchStyleEnum" default="join" />
<attribute name="inverse" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
</restriction>
</complexContent>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Serializable>protected Stringprotected Stringprotected JaxbHbmFetchStyleEnumprotected Booleanprotected JaxbHbmKeyTypeprotected Booleanprotected Stringprotected JaxbHbmCustomSqlDmlTypeprotected JaxbHbmCustomSqlDmlTypeprotected JaxbHbmCustomSqlDmlTypeprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attributes property.Gets the value of the catalog property.Gets the value of the comment property.getFetch()Gets the value of the fetch property.getKey()Gets the value of the key property.Gets the value of the schema property.Gets the value of the sqlDelete property.Gets the value of the sqlInsert property.Gets the value of the sqlUpdate property.Gets the value of the subselect property.getTable()Gets the value of the table property.booleanGets the value of the inverse property.booleanGets the value of the optional property.voidsetCatalog(String value) Sets the value of the catalog property.voidsetComment(String value) Sets the value of the comment property.voidsetFetch(JaxbHbmFetchStyleEnum value) Sets the value of the fetch property.voidsetInverse(Boolean value) Sets the value of the inverse property.voidsetKey(JaxbHbmKeyType value) Sets the value of the key property.voidsetOptional(Boolean value) Sets the value of the optional property.voidSets the value of the schema property.voidSets the value of the sqlDelete property.voidSets the value of the sqlInsert property.voidSets the value of the sqlUpdate property.voidsetSubselect(String value) Sets the value of the subselect property.voidSets the value of the table property.
-
Field Details
-
subselect
-
comment
-
key
-
attributes
-
sqlInsert
-
sqlUpdate
-
sqlDelete
-
schema
-
catalog
-
table
-
fetch
-
inverse
-
optional
-
-
Constructor Details
-
JaxbHbmSecondaryTableType
public JaxbHbmSecondaryTableType()
-
-
Method Details
-
getSubselect
Gets the value of the subselect property.- Specified by:
getSubselectin interfaceTableInformationContainer- Returns:
- possible object is
String
-
setSubselect
Sets the value of the subselect property.- Parameters:
value- allowed object isString
-
getComment
Gets the value of the comment property.- Returns:
- possible object is
String
-
setComment
Sets the value of the comment property.- Parameters:
value- allowed object isString
-
getKey
Gets the value of the key property.- Returns:
- possible object is
JaxbHbmKeyType
-
setKey
Sets the value of the key property.- Parameters:
value- allowed object isJaxbHbmKeyType
-
getAttributes
Gets the value of the attributes property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the attributes property.For example, to add a new item, do as follows:
getAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmAnyAssociationTypeJaxbHbmBasicAttributeTypeJaxbHbmCompositeAttributeTypeJaxbHbmDynamicComponentTypeJaxbHbmManyToOneType- Returns:
- The value of the attributes property.
-
getSqlInsert
Gets the value of the sqlInsert property.- Returns:
- possible object is
JaxbHbmCustomSqlDmlType
-
setSqlInsert
Sets the value of the sqlInsert property.- Parameters:
value- allowed object isJaxbHbmCustomSqlDmlType
-
getSqlUpdate
Gets the value of the sqlUpdate property.- Returns:
- possible object is
JaxbHbmCustomSqlDmlType
-
setSqlUpdate
Sets the value of the sqlUpdate property.- Parameters:
value- allowed object isJaxbHbmCustomSqlDmlType
-
getSqlDelete
Gets the value of the sqlDelete property.- Returns:
- possible object is
JaxbHbmCustomSqlDmlType
-
setSqlDelete
Sets the value of the sqlDelete property.- Parameters:
value- allowed object isJaxbHbmCustomSqlDmlType
-
getSchema
Gets the value of the schema property.- Specified by:
getSchemain interfaceTableInformationContainer- Returns:
- possible object is
String
-
setSchema
Sets the value of the schema property.- Parameters:
value- allowed object isString
-
getCatalog
Gets the value of the catalog property.- Specified by:
getCatalogin interfaceTableInformationContainer- Returns:
- possible object is
String
-
setCatalog
Sets the value of the catalog property.- Parameters:
value- allowed object isString
-
getTable
Gets the value of the table property.- Specified by:
getTablein interfaceTableInformationContainer- Returns:
- possible object is
String
-
setTable
Sets the value of the table property.- Parameters:
value- allowed object isString
-
getFetch
Gets the value of the fetch property.- Returns:
- possible object is
JaxbHbmFetchStyleEnum
-
setFetch
Sets the value of the fetch property.- Parameters:
value- allowed object isJaxbHbmFetchStyleEnum
-
isInverse
public boolean isInverse()Gets the value of the inverse property.- Returns:
- possible object is
Boolean
-
setInverse
Sets the value of the inverse property.- Parameters:
value- allowed object isBoolean
-
isOptional
public boolean isOptional()Gets the value of the optional property.- Returns:
- possible object is
Boolean
-
setOptional
Sets the value of the optional property.- Parameters:
value- allowed object isBoolean
-