Class Basic

  • All Implemented Interfaces:
    Field, Keyable

    public class Basic
    extends Object
    implements Field
    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://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/>
             <choice>
               <element name="lob" type="{http://java.sun.com/xml/ns/persistence/orm}lob" minOccurs="0"/>
               <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/>
               <element name="enumerated" type="{http://java.sun.com/xml/ns/persistence/orm}enumerated" minOccurs="0"/>
             </choice>
           </sequence>
           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="fetch" type="{http://java.sun.com/xml/ns/persistence/orm}fetch-type" />
           <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Basic

        public Basic()
      • Basic

        public Basic​(String name)
    • Method Detail

      • getColumn

        public Column getColumn()
        Gets the value of the column property.
        Specified by:
        getColumn in interface Field
        Returns:
        possible object is Column
      • setColumn

        public void setColumn​(Column value)
        Sets the value of the column property.
        Specified by:
        setColumn in interface Field
        Parameters:
        value - allowed object is Column
      • getLob

        public Lob getLob()
        Gets the value of the lob property.
        Returns:
        possible object is Lob
      • setLob

        public void setLob​(Lob value)
        Sets the value of the lob property.
        Parameters:
        value - allowed object is Lob
      • getTemporal

        public TemporalType getTemporal()
        Gets the value of the temporal property.
        Returns:
        possible object is TemporalType
      • setTemporal

        public void setTemporal​(TemporalType value)
        Sets the value of the temporal property.
        Parameters:
        value - allowed object is TemporalType
      • getEnumerated

        public EnumType getEnumerated()
        Gets the value of the enumerated property.
        Returns:
        possible object is EnumType
      • setEnumerated

        public void setEnumerated​(EnumType value)
        Sets the value of the enumerated property.
        Parameters:
        value - allowed object is EnumType
      • getName

        public String getName()
        Gets the value of the name property.
        Specified by:
        getName in interface Field
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Sets the value of the name property.
        Specified by:
        setName in interface Field
        Parameters:
        value - allowed object is String
      • getFetch

        public FetchType getFetch()
        Gets the value of the fetch property.
        Returns:
        possible object is FetchType
      • setFetch

        public void setFetch​(FetchType value)
        Sets the value of the fetch property.
        Parameters:
        value - allowed object is FetchType
      • isOptional

        public Boolean isOptional()
        Gets the value of the optional property.
        Returns:
        possible object is Boolean
      • setOptional

        public void setOptional​(Boolean value)
        Sets the value of the optional property.
        Parameters:
        value - allowed object is Boolean
      • getAccess

        public AccessType getAccess()
        Gets the value of the access property.
        Returns:
        possible object is AccessType
      • setAccess

        public void setAccess​(AccessType value)
        Sets the value of the access property.
        Parameters:
        value - allowed object is AccessType
      • getKey

        public Object getKey()
        Description copied from interface: Keyable
        Gets the immutable key for this object.
        Specified by:
        getKey in interface Keyable
        Returns:
        gets the immutable key for this object