Package com.mysql.clusterj.core.store

Examples of com.mysql.clusterj.core.store.Column


        if (dynamic) {
            // for each column in the database, create a field
            List<String> fieldNameList = new ArrayList<String>();
            for (String columnName: table.getColumnNames()) {
                Column storeColumn = table.getColumn(columnName);
                DomainFieldHandlerImpl domainFieldHandler = null;
                domainFieldHandler =
                    new DomainFieldHandlerImpl(this, table, numberOfFields++, storeColumn);
                String fieldName = domainFieldHandler.getName();
                fieldNameList.add(fieldName);
                fieldNameToNumber.put(domainFieldHandler.getName(), domainFieldHandler.getFieldNumber());
                persistentFieldHandlers.add(domainFieldHandler);
                if (!storeColumn.isPrimaryKey()) {
                    nonPKFieldHandlers.add(domainFieldHandler);
                }
            }
            fieldNames = fieldNameList.toArray(new String[fieldNameList.size()]);
        } else {
View Full Code Here


            indexHandlerImpls.add(imd);
        }

        // Now iterate the columns in the table, creating a DomainFieldHandler for each column
        for (String columnName: columnNames) {
            Column column = table.getColumn(columnName);
            DomainFieldHandler domainFieldHandler = new DomainFieldHandlerImpl(this, table,
                    numberOfFields++, column);
            fieldNameToNumber.put(domainFieldHandler.getName(), domainFieldHandler.getFieldNumber());
            persistentFieldHandlers.add(domainFieldHandler);
            if (!column.isPrimaryKey()) {
                nonPKFieldHandlers.add(domainFieldHandler);
            }
        }
        // Check that all index columnNames have corresponding fields
        // indexes without fields will be unusable for query
View Full Code Here

TOP

Related Classes of com.mysql.clusterj.core.store.Column

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.