Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmSimpleIdType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmSimpleIdType
-
- All Implemented Interfaces:
Serializable
,AttributeMapping
,SingularAttributeInfo
,ToolingHintContainer
,TypeContainer
public class JaxbHbmSimpleIdType extends JaxbHbmToolingHintContainer implements Serializable, SingularAttributeInfo, ToolingHintContainer, TypeContainer
Declares the id type, column and generation algorithm for an entity class. If a name attribute is given, the id is exposed to the application through the named property of the class. If not, the id is only exposed to the application via Session.getIdentifier()Java class for SimpleIdType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SimpleIdType"> <complexContent> <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer"> <sequence> <element name="column" type="{http://www.hibernate.org/xsd/orm/hbm}ColumnType" maxOccurs="unbounded" minOccurs="0"/> <element name="type" type="{http://www.hibernate.org/xsd/orm/hbm}TypeSpecificationType" minOccurs="0"/> <element name="generator" type="{http://www.hibernate.org/xsd/orm/hbm}GeneratorSpecificationType" minOccurs="0"/> </sequence> <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="unsaved-value" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
access
protected List<JaxbHbmColumnType>
column
protected String
columnAttribute
protected JaxbHbmGeneratorSpecificationType
generator
protected Integer
length
protected String
name
protected String
node
protected JaxbHbmTypeSpecificationType
type
protected String
typeAttribute
protected String
unsavedValue
-
Fields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints
-
-
Constructor Summary
Constructors Constructor Description JaxbHbmSimpleIdType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccess()
Gets the value of the access property.List<JaxbHbmColumnType>
getColumn()
Gets the value of the column property.String
getColumnAttribute()
Gets the value of the columnAttribute property.JaxbHbmGeneratorSpecificationType
getGenerator()
Gets the value of the generator property.Integer
getLength()
Gets the value of the length property.String
getName()
Gets the value of the name property.String
getNode()
Gets the value of the node property.JaxbHbmTypeSpecificationType
getType()
Gets the value of the type property.String
getTypeAttribute()
Gets the value of the typeAttribute property.String
getUnsavedValue()
Gets the value of the unsavedValue property.void
setAccess(String value)
Sets the value of the access property.void
setColumnAttribute(String value)
Sets the value of the columnAttribute property.void
setGenerator(JaxbHbmGeneratorSpecificationType value)
Sets the value of the generator property.void
setLength(Integer value)
Sets the value of the length property.void
setName(String value)
Sets the value of the name property.void
setNode(String value)
Sets the value of the node property.void
setType(JaxbHbmTypeSpecificationType value)
Sets the value of the type property.void
setTypeAttribute(String value)
Sets the value of the typeAttribute property.void
setUnsavedValue(String value)
Sets the value of the unsavedValue property.-
Methods inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
getToolingHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
-
-
-
Field Detail
-
column
protected List<JaxbHbmColumnType> column
-
type
protected JaxbHbmTypeSpecificationType type
-
generator
protected JaxbHbmGeneratorSpecificationType generator
-
access
protected String access
-
columnAttribute
protected String columnAttribute
-
length
protected Integer length
-
name
protected String name
-
node
protected String node
-
typeAttribute
protected String typeAttribute
-
unsavedValue
protected String unsavedValue
-
-
Method Detail
-
getColumn
public List<JaxbHbmColumnType> getColumn()
Gets the value of the column 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 Jakarta XML Binding object. This is why there is not a
set
method for the column property.For example, to add a new item, do as follows:
getColumn().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmColumnType
- Returns:
- The value of the column property.
-
getType
public JaxbHbmTypeSpecificationType getType()
Gets the value of the type property.- Specified by:
getType
in interfaceTypeContainer
- Returns:
- possible object is
JaxbHbmTypeSpecificationType
-
setType
public void setType(JaxbHbmTypeSpecificationType value)
Sets the value of the type property.- Parameters:
value
- allowed object isJaxbHbmTypeSpecificationType
-
getGenerator
public JaxbHbmGeneratorSpecificationType getGenerator()
Gets the value of the generator property.- Returns:
- possible object is
JaxbHbmGeneratorSpecificationType
-
setGenerator
public void setGenerator(JaxbHbmGeneratorSpecificationType value)
Sets the value of the generator property.- Parameters:
value
- allowed object isJaxbHbmGeneratorSpecificationType
-
getAccess
public String getAccess()
Gets the value of the access property.- Specified by:
getAccess
in interfaceAttributeMapping
- Returns:
- possible object is
String
-
setAccess
public void setAccess(String value)
Sets the value of the access property.- Parameters:
value
- allowed object isString
-
getColumnAttribute
public String getColumnAttribute()
Gets the value of the columnAttribute property.- Returns:
- possible object is
String
-
setColumnAttribute
public void setColumnAttribute(String value)
Sets the value of the columnAttribute property.- Parameters:
value
- allowed object isString
-
getLength
public Integer getLength()
Gets the value of the length property.- Returns:
- possible object is
Integer
-
setLength
public void setLength(Integer value)
Sets the value of the length property.- Parameters:
value
- allowed object isInteger
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getName
in interfaceAttributeMapping
- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
getNode
public String getNode()
Gets the value of the node property.- Returns:
- possible object is
String
-
setNode
public void setNode(String value)
Sets the value of the node property.- Parameters:
value
- allowed object isString
-
getTypeAttribute
public String getTypeAttribute()
Gets the value of the typeAttribute property.- Specified by:
getTypeAttribute
in interfaceTypeContainer
- Returns:
- possible object is
String
-
setTypeAttribute
public void setTypeAttribute(String value)
Sets the value of the typeAttribute property.- Parameters:
value
- allowed object isString
-
getUnsavedValue
public String getUnsavedValue()
Gets the value of the unsavedValue property.- Returns:
- possible object is
String
-
-