Package com.alibaba.wasp

Examples of com.alibaba.wasp.FieldKeyWord


    return particularFields;
  }

  private Field parse(SQLTableElement tableElement) throws UnsupportedException {
    Field field = null;
    FieldKeyWord keyWord = null;
    if (tableElement instanceof WaspSqlColumnDefinition) {
      WaspSqlColumnDefinition column = (WaspSqlColumnDefinition) tableElement;
      if (column.getColumnConstraint() == FieldKeyWord.REQUIRED) {
        keyWord = FieldKeyWord.REQUIRED;
      } else if (column.getColumnConstraint() == FieldKeyWord.OPTIONAL) {
View Full Code Here


    family = field.getFamily();
    dataType = field.getType();
    columnName = field.getName();
    precision = Long.MAX_VALUE;
    scale = Integer.MAX_VALUE;
    FieldKeyWord keyWord = field.getKeyWord();
    switch (keyWord) {
      case REQUIRED : nullable = 1; break;
      default: nullable = 0;
    }
  }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.FieldKeyWord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.