/*
 * Copyright 2014 Codenvy, S.A.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.codenvy.ide.ext.datasource.shared;

import com.codenvy.dto.shared.DTO;

@DTO
public interface ColumnDTO extends DatabaseMetadataEntityDTO {

    ColumnDTO withName(String name);

    ColumnDTO withLookupKey(String lookupKey);


    ColumnDTO withColumnDataType(String datatypeName);

    String getColumnDataType();

    void setColumnDataType(String columnDataTypeName);


    ColumnDTO withDefaultValue(String defaultValue);

    void setDefaultValue(String defaultValue);

    String getDefaultValue();


    ColumnDTO withDataSize(int size);

    void setDataSize(int size);

    int getDataSize();


    ColumnDTO withDecimalDigits(int digits);

    void setDecimalDigits(int digits);

    int getDecimalDigits();


    ColumnDTO withNullable(boolean nullable);

    void setNullable(boolean nullable);

    boolean getNullable();
}

@@ -1439,10 +1439,290 @@
 able();%0A
+%0A%0A    ColumnDTO withPartOfForeignKey(boolean partOfFK);%0A%0A    void setPartOfForeignKey(boolean partOfFK);%0A%0A    boolean isPartOfForeignKey();%0A%0A%0A    ColumnDTO withPartOfPrimaryKey(boolean partOfPK);%0A%0A    void setPartOfPrimaryKey(boolean partOfPK);%0A%0A    boolean isPartOfPrimaryKey();%0A
 %7D%0A

Add PK and FK properties on ColumnDTO - #155