Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmSecondaryTableType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSecondaryTableType
-
- All Implemented Interfaces:
java.io.Serializable,TableInformationContainer
public class JaxbHbmSecondaryTableType extends java.lang.Object implements java.io.Serializable, TableInformationContainer
A join allows some properties of a class to be persisted to a second tableJava 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> <attGroup ref="{http://www.hibernate.org/xsd/orm/hbm}table-information-group"/> <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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.io.Serializable>attributesprotected java.lang.Stringcatalogprotected java.lang.Stringcommentprotected JaxbHbmFetchStyleEnumfetchprotected java.lang.Booleaninverseprotected JaxbHbmKeyTypekeyprotected java.lang.Booleanoptionalprotected java.lang.Stringschemaprotected JaxbHbmCustomSqlDmlTypesqlDeleteprotected JaxbHbmCustomSqlDmlTypesqlInsertprotected JaxbHbmCustomSqlDmlTypesqlUpdateprotected java.lang.Stringsubselectprotected java.lang.StringsubselectAttributeprotected java.lang.Stringtable
-
Constructor Summary
Constructors Constructor Description JaxbHbmSecondaryTableType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.io.Serializable>getAttributes()Gets the value of the attributes property.java.lang.StringgetCatalog()Gets the value of the catalog property.java.lang.StringgetComment()Gets the value of the comment property.JaxbHbmFetchStyleEnumgetFetch()Gets the value of the fetch property.JaxbHbmKeyTypegetKey()Gets the value of the key property.java.lang.StringgetSchema()Gets the value of the schema property.JaxbHbmCustomSqlDmlTypegetSqlDelete()Gets the value of the sqlDelete property.JaxbHbmCustomSqlDmlTypegetSqlInsert()Gets the value of the sqlInsert property.JaxbHbmCustomSqlDmlTypegetSqlUpdate()Gets the value of the sqlUpdate property.java.lang.StringgetSubselect()Gets the value of the subselect property.java.lang.StringgetSubselectAttribute()Gets the value of the subselectAttribute property.java.lang.StringgetTable()Gets the value of the table property.booleanisInverse()Gets the value of the inverse property.booleanisOptional()Gets the value of the optional property.voidsetCatalog(java.lang.String value)Sets the value of the catalog property.voidsetComment(java.lang.String value)Sets the value of the comment property.voidsetFetch(JaxbHbmFetchStyleEnum value)Sets the value of the fetch property.voidsetInverse(java.lang.Boolean value)Sets the value of the inverse property.voidsetKey(JaxbHbmKeyType value)Sets the value of the key property.voidsetOptional(java.lang.Boolean value)Sets the value of the optional property.voidsetSchema(java.lang.String value)Sets the value of the schema property.voidsetSqlDelete(JaxbHbmCustomSqlDmlType value)Sets the value of the sqlDelete property.voidsetSqlInsert(JaxbHbmCustomSqlDmlType value)Sets the value of the sqlInsert property.voidsetSqlUpdate(JaxbHbmCustomSqlDmlType value)Sets the value of the sqlUpdate property.voidsetSubselect(java.lang.String value)Sets the value of the subselect property.voidsetSubselectAttribute(java.lang.String value)Sets the value of the subselectAttribute property.voidsetTable(java.lang.String value)Sets the value of the table property.
-
-
-
Field Detail
-
subselect
protected java.lang.String subselect
-
comment
protected java.lang.String comment
-
key
protected JaxbHbmKeyType key
-
attributes
protected java.util.List<java.io.Serializable> attributes
-
sqlInsert
protected JaxbHbmCustomSqlDmlType sqlInsert
-
sqlUpdate
protected JaxbHbmCustomSqlDmlType sqlUpdate
-
sqlDelete
protected JaxbHbmCustomSqlDmlType sqlDelete
-
fetch
protected JaxbHbmFetchStyleEnum fetch
-
inverse
protected java.lang.Boolean inverse
-
optional
protected java.lang.Boolean optional
-
schema
protected java.lang.String schema
-
catalog
protected java.lang.String catalog
-
table
protected java.lang.String table
-
subselectAttribute
protected java.lang.String subselectAttribute
-
-
Method Detail
-
getSubselect
public java.lang.String getSubselect()
Gets the value of the subselect property.- Specified by:
getSubselectin interfaceTableInformationContainer- Returns:
- possible object is
String
-
setSubselect
public void setSubselect(java.lang.String value)
Sets the value of the subselect property.- Parameters:
value- allowed object isString
-
getComment
public java.lang.String getComment()
Gets the value of the comment property.- Returns:
- possible object is
String
-
setComment
public void setComment(java.lang.String value)
Sets the value of the comment property.- Parameters:
value- allowed object isString
-
getKey
public JaxbHbmKeyType getKey()
Gets the value of the key property.- Returns:
- possible object is
JaxbHbmKeyType
-
setKey
public void setKey(JaxbHbmKeyType value)
Sets the value of the key property.- Parameters:
value- allowed object isJaxbHbmKeyType
-
getAttributes
public java.util.List<java.io.Serializable> 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
JaxbHbmBasicAttributeTypeJaxbHbmManyToOneTypeJaxbHbmCompositeAttributeTypeJaxbHbmDynamicComponentTypeJaxbHbmAnyAssociationType
-
getSqlInsert
public JaxbHbmCustomSqlDmlType getSqlInsert()
Gets the value of the sqlInsert property.- Returns:
- possible object is
JaxbHbmCustomSqlDmlType
-
setSqlInsert
public void setSqlInsert(JaxbHbmCustomSqlDmlType value)
Sets the value of the sqlInsert property.- Parameters:
value- allowed object isJaxbHbmCustomSqlDmlType
-
getSqlUpdate
public JaxbHbmCustomSqlDmlType getSqlUpdate()
Gets the value of the sqlUpdate property.- Returns:
- possible object is
JaxbHbmCustomSqlDmlType
-
setSqlUpdate
public void setSqlUpdate(JaxbHbmCustomSqlDmlType value)
Sets the value of the sqlUpdate property.- Parameters:
value- allowed object isJaxbHbmCustomSqlDmlType
-
getSqlDelete
public JaxbHbmCustomSqlDmlType getSqlDelete()
Gets the value of the sqlDelete property.- Returns:
- possible object is
JaxbHbmCustomSqlDmlType
-
setSqlDelete
public void setSqlDelete(JaxbHbmCustomSqlDmlType value)
Sets the value of the sqlDelete property.- Parameters:
value- allowed object isJaxbHbmCustomSqlDmlType
-
getFetch
public JaxbHbmFetchStyleEnum getFetch()
Gets the value of the fetch property.- Returns:
- possible object is
JaxbHbmFetchStyleEnum
-
setFetch
public void setFetch(JaxbHbmFetchStyleEnum value)
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
public void setInverse(java.lang.Boolean value)
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
public void setOptional(java.lang.Boolean value)
Sets the value of the optional property.- Parameters:
value- allowed object isBoolean
-
getSchema
public java.lang.String getSchema()
Gets the value of the schema property.- Specified by:
getSchemain interfaceTableInformationContainer- Returns:
- possible object is
String
-
setSchema
public void setSchema(java.lang.String value)
Sets the value of the schema property.- Parameters:
value- allowed object isString
-
getCatalog
public java.lang.String getCatalog()
Gets the value of the catalog property.- Specified by:
getCatalogin interfaceTableInformationContainer- Returns:
- possible object is
String
-
setCatalog
public void setCatalog(java.lang.String value)
Sets the value of the catalog property.- Parameters:
value- allowed object isString
-
getTable
public java.lang.String getTable()
Gets the value of the table property.- Specified by:
getTablein interfaceTableInformationContainer- Returns:
- possible object is
String
-
setTable
public void setTable(java.lang.String value)
Sets the value of the table property.- Parameters:
value- allowed object isString
-
getSubselectAttribute
public java.lang.String getSubselectAttribute()
Gets the value of the subselectAttribute property.- Specified by:
getSubselectAttributein interfaceTableInformationContainer- Returns:
- possible object is
String
-
setSubselectAttribute
public void setSubselectAttribute(java.lang.String value)
Sets the value of the subselectAttribute property.- Parameters:
value- allowed object isString
-
-