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

org.kuali.common.impex.model.Table Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
package org.kuali.common.impex.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * This interface provides an implementation-independent API to access database table model information
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
public class Table implements NamedElement {

    protected String name;
    protected List columns;
    protected List uniqueConstraints;
    protected List indices;
    protected String description;

    public Table() {
        this(null);
    }

    public Table(String n) {
        name = n;
        columns = new ArrayList();
        uniqueConstraints = new ArrayList();
        indices = new ArrayList();
    }

    @XmlElement(name = "column")
    public List getColumns() {
        return columns;
    }

    @XmlElement(name = "uniqueConstraint")
    public List getUniqueConstraints() {
        return uniqueConstraints;
    }

    @XmlAttribute
    public String getName() {
        return name;
    }

    public void setColumns(List columns) {
        this.columns = columns;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    @XmlAttribute
    public void setDescription(String description) {
        this.description = description;
    }

    public List getIndices() {
        return indices;
    }

    public void setIndices(List indices) {
        this.indices = indices;
    }

    public void setUniqueConstraints(List uniqueConstraints) {
        this.uniqueConstraints = uniqueConstraints;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy