Package org.openquark.util.datadictionary

Examples of org.openquark.util.datadictionary.ValueType


                List<List<?>> tupleList = UnsafeCast.unsafeCast(getListFromCode(code));

                List<FieldInfo> fieldInfoList = new ArrayList<FieldInfo>();
                for (final List<?> tuple : tupleList) {
                    String fieldName = (String) tuple.get(0);
                    ValueType valueType = (ValueType) tuple.get(1);

                    fieldInfoList.add(new FieldInfo(fieldName, valueType));
                }

                return fieldInfoList;
View Full Code Here


            List /*String[3]*/<String[]> fieldCodeItemsList = new ArrayList<String[]>();
            Set<String> recordFieldNamesUsed = new HashSet<String>();

            for (final List<?> tuple : tupleList) {
                String tableFieldName = (String) tuple.get(0);
                ValueType valueType = (ValueType) tuple.get(1);

                // Get the name of the field gem of the appropriate type.
                String makeFieldGemName = getMakeFieldGem(valueType);

                // Leave out any gems of unrecognized types.
                if (makeFieldGemName == null || makeFieldGemName.length() == 0) {
                    System.out.println("DatabaseTableGemGenerator:  skipping field '" + tableFieldName + "' of type " + valueType.toString() + " as this type is not currently supported.");
                    continue;
                }

                // Find a valid (and unique) name for the field with the record.
                String recordFieldName = makeRecordFieldName(tableFieldName, recordFieldNamesUsed);
View Full Code Here

                List<List<?>> tupleList = UnsafeCast.unsafeCast(getListFromCode(code));

                List<FieldInfo> fieldInfoList = new ArrayList<FieldInfo>();
                for (final List<?> tuple : tupleList) {
                    String fieldName = (String) tuple.get(0);
                    ValueType valueType = (ValueType) tuple.get(1);

                    fieldInfoList.add(new FieldInfo(fieldName, valueType));
                }

                return fieldInfoList;
View Full Code Here

TOP

Related Classes of org.openquark.util.datadictionary.ValueType

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.