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

org.dbtools.schema.schemafile.SchemaQueryField Maven / Gradle / Ivy

There is a newer version: 11.0.0
Show newest version
package org.dbtools.schema.schemafile;

import org.dbtools.schema.ForeignKeyType;
import org.simpleframework.xml.Root;

import java.util.List;

@Root
public class SchemaQueryField extends SchemaField {
    public SchemaQueryField() {
    }

    public SchemaQueryField(String name, SchemaFieldType jdbcDataType) {
        setName(name);
        setJdbcDataType(jdbcDataType);
    }

    public void validate() {
        if (getForeignKeyType() == ForeignKeyType.ENUM) {
//            setNotNull(true);
        }
    }

    @Override
    public boolean isIncrement() {
        return false;
    }


    @Override
    public boolean isUnique() {
        return false;
    }

    @Override
    public List getEnumValues() {
        return null;
    }

    @Override
    public String getForeignKeyCascadeType() {
        return null;
    }

    @Override
    public String getSequencerName() {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy