All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.jeddict.jpa.spec.OrderColumn Maven / Gradle / Ivy

Go to download

Jeddict is an open source Jakarta EE application development platform that accelerates developers productivity and simplifies development tasks of creating complex entity relationship models.

There is a newer version: 6.3.1
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.01.21 at 01:52:19 PM IST
//
package io.github.jeddict.jpa.spec;

import io.github.jeddict.source.AnnotationExplorer;
import io.github.jeddict.source.MemberExplorer;
import java.util.Optional;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
import org.eclipse.persistence.internal.jpa.metadata.columns.OrderColumnMetadata;

/**
 *
 *
 * @Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface OrderColumn {
 * String name() default ""; boolean nullable() default true; boolean
 * insertable() default true; boolean updatable() default true; String
 * columnDefinition() default ""; }
 *
 *
 *
 * 

* Java class for order-column complex type. * *

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

 * <complexType name="order-column">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "order-column") public class OrderColumn { @XmlAttribute(name = "n") protected String name; @XmlAttribute(name = "nu") protected Boolean nullable = true; @XmlAttribute(name = "in") protected Boolean insertable = true; @XmlAttribute(name = "up") protected Boolean updatable = true; @XmlAttribute(name = "cd") protected String columnDefinition; public static OrderColumn load(MemberExplorer member) { OrderColumn orderColumn = null; Optional orderColumnOpt = member.getAnnotation(jakarta.persistence.OrderColumn.class); if (orderColumnOpt.isPresent()) { orderColumn = new OrderColumn(); AnnotationExplorer annotation = orderColumnOpt.get(); annotation.getString("name").ifPresent(orderColumn::setName); annotation.getBoolean("nullable").ifPresent(orderColumn::setNullable); annotation.getBoolean("insertable").ifPresent(orderColumn::setInsertable); annotation.getBoolean("updatable").ifPresent(orderColumn::setUpdatable); annotation.getString("columnDefinition").ifPresent(orderColumn::setColumnDefinition); } return orderColumn; } /** * Gets the value of the name property. * * @return possible object is {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value allowed object is {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the nullable property. * * @return possible object is {@link Boolean } * */ public Boolean isNullable() { return nullable; } /** * Sets the value of the nullable property. * * @param value allowed object is {@link Boolean } * */ public void setNullable(Boolean value) { this.nullable = value; } /** * Gets the value of the insertable property. * * @return possible object is {@link Boolean } * */ public Boolean isInsertable() { return insertable; } /** * Sets the value of the insertable property. * * @param value allowed object is {@link Boolean } * */ public void setInsertable(Boolean value) { this.insertable = value; } /** * Gets the value of the updatable property. * * @return possible object is {@link Boolean } * */ public Boolean isUpdatable() { return updatable; } /** * Sets the value of the updatable property. * * @param value allowed object is {@link Boolean } * */ public void setUpdatable(Boolean value) { this.updatable = value; } /** * Gets the value of the columnDefinition property. * * @return possible object is {@link String } * */ public String getColumnDefinition() { return columnDefinition; } /** * Sets the value of the columnDefinition property. * * @param value allowed object is {@link String } * */ public void setColumnDefinition(String value) { this.columnDefinition = value; } public OrderColumnMetadata getAccessor() { OrderColumnMetadata accessor = new OrderColumnMetadata(); accessor.setName(name); accessor.setColumnDefinition(columnDefinition); accessor.setNullable(nullable); accessor.setInsertable(insertable); accessor.setUpdatable(updatable); return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy