Examples of statementsToConvertColumnType()


Examples of com.webobjects.eoaccess.EOSchemaSynchronization.statementsToConvertColumnType()

  @SuppressWarnings("unchecked")
  public void setDataType(int jdbcType, int scale, int precision, int width, NSDictionary options) throws SQLException {
    JDBCAdaptor adaptor = (JDBCAdaptor) _table.database().adaptor();
    String externalType = ERXSQLHelper.newSQLHelper(adaptor).externalTypeForJDBCType(adaptor, jdbcType);
    EOSchemaSynchronization schemaSynchronization = _table.database().synchronizationFactory();
    NSArray<EOSQLExpression> expressions = schemaSynchronization.statementsToConvertColumnType(_name, _table.name(), null, new _ColumnType(externalType, scale, precision, width), options);
    ERXMigrationDatabase._ensureNotEmpty(expressions, "convert column type", true);
    ERXJDBCUtilities.executeUpdateScript(_table.database().adaptorChannel(), ERXMigrationDatabase._stringsForExpressions(expressions));
    _jdbcType = jdbcType;
    _scale = scale;
    _precision = precision;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.