public class Basic extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface Basic { FetchType fetch() default EAGER; boolean optional() default true; }
<p>Java class for basic complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected AccessType |
access |
protected Column |
column |
protected Convert |
convert |
protected EnumType |
enumerated |
protected FetchType |
fetch |
protected Lob |
lob |
protected String |
name |
protected Boolean |
optional |
protected TemporalType |
temporal |
| Constructor and Description |
|---|
Basic() |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
Column |
getColumn()
Gets the value of the column property.
|
Convert |
getConvert()
Gets the value of the convert property.
|
EnumType |
getEnumerated()
Gets the value of the enumerated property.
|
FetchType |
getFetch()
Gets the value of the fetch property.
|
Lob |
getLob()
Gets the value of the lob property.
|
String |
getName()
Gets the value of the name property.
|
TemporalType |
getTemporal()
Gets the value of the temporal property.
|
Boolean |
isOptional()
Gets the value of the optional property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setColumn(Column value)
Sets the value of the column property.
|
void |
setConvert(Convert value)
Sets the value of the convert property.
|
void |
setEnumerated(EnumType value)
Sets the value of the enumerated property.
|
void |
setFetch(FetchType value)
Sets the value of the fetch property.
|
void |
setLob(Lob value)
Sets the value of the lob property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setOptional(Boolean value)
Sets the value of the optional property.
|
void |
setTemporal(TemporalType value)
Sets the value of the temporal property.
|
protected Column column
protected Lob lob
protected TemporalType temporal
protected EnumType enumerated
protected Convert convert
protected String name
protected FetchType fetch
protected Boolean optional
protected AccessType access
public Column getColumn()
Gets the value of the column property.
Columnpublic void setColumn(Column value)
Sets the value of the column property.
value - allowed object is
Columnpublic void setLob(Lob value)
Sets the value of the lob property.
value - allowed object is
Lobpublic TemporalType getTemporal()
Gets the value of the temporal property.
TemporalTypepublic void setTemporal(TemporalType value)
Sets the value of the temporal property.
value - allowed object is
TemporalTypepublic EnumType getEnumerated()
Gets the value of the enumerated property.
EnumTypepublic void setEnumerated(EnumType value)
Sets the value of the enumerated property.
value - allowed object is
EnumTypepublic Convert getConvert()
Gets the value of the convert property.
Convertpublic void setConvert(Convert value)
Sets the value of the convert property.
value - allowed object is
Convertpublic String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic FetchType getFetch()
Gets the value of the fetch property.
FetchTypepublic void setFetch(FetchType value)
Sets the value of the fetch property.
value - allowed object is
FetchTypepublic Boolean isOptional()
Gets the value of the optional property.
Booleanpublic void setOptional(Boolean value)
Sets the value of the optional property.
value - allowed object is
Booleanpublic AccessType getAccess()
Gets the value of the access property.
AccessTypepublic void setAccess(AccessType value)
Sets the value of the access property.
value - allowed object is
AccessTypeCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.