Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbBasic

extends Object
implements Serializable, PersistentAttribute
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:basic
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:column, lob, temporal, enumerated, convert
Imports
java.io.Serializable, javax.persistence.AccessType, .EnumType, .FetchType, .TemporalType, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlSchemaType, .XmlType, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter

@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface Basic { FetchType fetch() default EAGER; boolean optional() default true; }

Java class for basic complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="basic">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}column" minOccurs="0"/>
        <choice>
          <element name="lob" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}lob" minOccurs="0"/>
          <element name="temporal" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}temporal" minOccurs="0"/>
          <element name="enumerated" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}enumerated" minOccurs="0"/>
          <element name="convert" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}convert" minOccurs="0"/>
        </choice>
      </sequence>
      <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
      <attribute name="fetch" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}fetch-type" />
      <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" />
      <attribute name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected AccessType
protected JaxbColumn
protected JaxbConvert
protected EnumType
protected FetchType
protected JaxbLob
protected String
protected Boolean
protected TemporalType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessType

Returns:

possible object is String
getAccess
()

Implements org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute.getAccess.

Gets the value of the access property.
public JaxbColumn

Returns:

possible object is JaxbColumn
getColumn
()

Gets the value of the column property.

public JaxbConvert

Returns:

possible object is JaxbConvert
getConvert
()

Gets the value of the convert property.

public EnumType

Returns:

possible object is String
getEnumerated
()

Gets the value of the enumerated property.

public FetchType

Returns:

possible object is String
getFetch
()

Gets the value of the fetch property.

public JaxbLob

Returns:

possible object is JaxbLob
getLob
()

Gets the value of the lob property.

public String

Returns:

possible object is String
getName
()

Implements org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute.getName.

Gets the value of the name property.
public TemporalType

Returns:

possible object is String
getTemporal
()

Gets the value of the temporal property.

public Boolean

Returns:

possible object is Boolean
isOptional
()

Gets the value of the optional property.

public void
setAccess(AccessType
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute.setAccess.

Sets the value of the access property.
public void
setColumn(JaxbColumn
allowed object is JaxbColumn
value
)

Sets the value of the column property.

public void
setConvert(JaxbConvert
allowed object is JaxbConvert
value
)

Sets the value of the convert property.

public void
setEnumerated(EnumType
allowed object is String
value
)

Sets the value of the enumerated property.

public void
setFetch(FetchType
allowed object is String
value
)

Sets the value of the fetch property.

public void
setLob(JaxbLob
allowed object is JaxbLob
value
)

Sets the value of the lob property.

public void
setName(String
allowed object is String
value
)

Sets the value of the name property.

public void
setOptional(Boolean
allowed object is Boolean
value
)

Sets the value of the optional property.

public void
setTemporal(TemporalType
allowed object is String
value
)

Sets the value of the temporal property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessback to summary
protected AccessType access
Annotations
@XmlAttribute
name:access
@XmlJavaTypeAdapter:Adapter1
columnback to summary
protected JaxbColumn column
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
convertback to summary
protected JaxbConvert convert
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
enumeratedback to summary
protected EnumType enumerated
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
type:String
@XmlJavaTypeAdapter:Adapter4
@XmlSchemaType
name:token
fetchback to summary
protected FetchType fetch
Annotations
@XmlAttribute
name:fetch
@XmlJavaTypeAdapter:Adapter5
lobback to summary
protected JaxbLob lob
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
nameback to summary
protected String name
Annotations
@XmlAttribute
name:name
required:true
optionalback to summary
protected Boolean optional
Annotations
@XmlAttribute
name:optional
temporalback to summary
protected TemporalType temporal
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
type:String
@XmlJavaTypeAdapter:Adapter10
@XmlSchemaType
name:token

Constructor Detail

JaxbBasicback to summary
public JaxbBasic()

Method Detail

getAccessback to summary
public AccessType getAccess()

Implements org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute.getAccess.

Gets the value of the access property.

Returns:AccessType

possible object is String

getColumnback to summary
public JaxbColumn getColumn()

Gets the value of the column property.

Returns:JaxbColumn

possible object is JaxbColumn

getConvertback to summary
public JaxbConvert getConvert()

Gets the value of the convert property.

Returns:JaxbConvert

possible object is JaxbConvert

getEnumeratedback to summary
public EnumType getEnumerated()

Gets the value of the enumerated property.

Returns:EnumType

possible object is String

getFetchback to summary
public FetchType getFetch()

Gets the value of the fetch property.

Returns:FetchType

possible object is String

getLobback to summary
public JaxbLob getLob()

Gets the value of the lob property.

Returns:JaxbLob

possible object is JaxbLob

getNameback to summary
public String getName()

Implements org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute.getName.

Gets the value of the name property.

Returns:String

possible object is String

getTemporalback to summary
public TemporalType getTemporal()

Gets the value of the temporal property.

Returns:TemporalType

possible object is String

isOptionalback to summary
public Boolean isOptional()

Gets the value of the optional property.

Returns:Boolean

possible object is Boolean

setAccessback to summary
public void setAccess(AccessType value)

Implements org.hibernate.boot.jaxb.mapping.spi.PersistentAttribute.setAccess.

Sets the value of the access property.

Parameters
value:AccessType

allowed object is String

setColumnback to summary
public void setColumn(JaxbColumn value)

Sets the value of the column property.

Parameters
value:JaxbColumn

allowed object is JaxbColumn

setConvertback to summary
public void setConvert(JaxbConvert value)

Sets the value of the convert property.

Parameters
value:JaxbConvert

allowed object is JaxbConvert

setEnumeratedback to summary
public void setEnumerated(EnumType value)

Sets the value of the enumerated property.

Parameters
value:EnumType

allowed object is String

setFetchback to summary
public void setFetch(FetchType value)

Sets the value of the fetch property.

Parameters
value:FetchType

allowed object is String

setLobback to summary
public void setLob(JaxbLob value)

Sets the value of the lob property.

Parameters
value:JaxbLob

allowed object is JaxbLob

setNameback to summary
public void setName(String value)

Sets the value of the name property.

Parameters
value:String

allowed object is String

setOptionalback to summary
public void setOptional(Boolean value)

Sets the value of the optional property.

Parameters
value:Boolean

allowed object is Boolean

setTemporalback to summary
public void setTemporal(TemporalType value)

Sets the value of the temporal property.

Parameters
value:TemporalType

allowed object is String