Package quickdb.db.dbms.mysql

Examples of quickdb.db.dbms.mysql.DataType


            Object columns[] = this.manager.mappingDefinition(this, object);

            statement = String.format("ALTER TABLE %s ADD %s", table,
                    ((ColumnDefined) columns[pos]).toString());
        } else {
            DataType dataType = new DataType();
            statement = String.format("ALTER TABLE %s ADD %s %s", table,
                    String.valueOf(((Object[]) array.get(pos))[0]),
                    dataType.getDataType(((Object[]) array.get(pos))[1].getClass(),
                    ((Object[]) array.get(pos))[1].toString().length()));
        }

        return this.executeQuery(statement);
    }
View Full Code Here

TOP

Related Classes of quickdb.db.dbms.mysql.DataType

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.