Exemplo n.º 1
0
 /**
  * Changes the "allows null" state of this column.
  *
  * @param allowsNull if true, this column allows nulls
  * @throws SQLException if the change fails
  */
 @SuppressWarnings("unchecked")
 public void setAllowsNull(boolean allowsNull) throws SQLException {
   EOSchemaSynchronization schemaSynchronization = _table.database().synchronizationFactory();
   NSArray<EOSQLExpression> expressions =
       schemaSynchronization.statementsToModifyColumnNullRule(
           name(),
           _table.name(),
           allowsNull,
           (NSDictionary<String, String>) NSDictionary.EmptyDictionary);
   ERXMigrationDatabase._ensureNotEmpty(expressions, "modify allows null", true);
   ERXJDBCUtilities.executeUpdateScript(
       _table.database().adaptorChannel(),
       ERXMigrationDatabase._stringsForExpressions(expressions));
 }