Package com.webobjects.eoaccess.synchronization

Examples of com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationColumnChanges.valueForKey()


      return NSArray.EmptyArray;
    }
   
    public EOSchemaSynchronizationColumnChanges objectStoreChangesFromAttributeToAttribute(EOAttribute schemaAttribute, EOAttribute modelAttribute) {
      EOSchemaSynchronizationColumnChanges objectStoreChanges = super.objectStoreChangesFromAttributeToAttribute(schemaAttribute, modelAttribute);
      if(objectStoreChanges.valueForKey("precision") != null || objectStoreChanges.valueForKey("scale") != null) {
        objectStoreChanges.clearPrecision();
        objectStoreChanges.clearScale();
      }
      if( ! modelAttribute.externalType().equals(schemaAttribute.externalType()) ) {
        if(modelAttribute.externalType().equals("varchar") && schemaAttribute.externalType().equals("char"))
View Full Code Here


      return NSArray.EmptyArray;
    }
   
    public EOSchemaSynchronizationColumnChanges objectStoreChangesFromAttributeToAttribute(EOAttribute schemaAttribute, EOAttribute modelAttribute) {
      EOSchemaSynchronizationColumnChanges objectStoreChanges = super.objectStoreChangesFromAttributeToAttribute(schemaAttribute, modelAttribute);
      if(objectStoreChanges.valueForKey("precision") != null || objectStoreChanges.valueForKey("scale") != null) {
        objectStoreChanges.clearPrecision();
        objectStoreChanges.clearScale();
      }
      if( ! modelAttribute.externalType().equals(schemaAttribute.externalType()) ) {
        if(modelAttribute.externalType().equals("varchar") && schemaAttribute.externalType().equals("char"))
View Full Code Here

      }
      if( ! modelAttribute.externalType().equals(schemaAttribute.externalType()) ) {
        if(modelAttribute.externalType().equals("varchar") && schemaAttribute.externalType().equals("char"))
          objectStoreChanges.clearExternalType();
      } else {
        if(schemaAttribute.externalType().equals("object") && objectStoreChanges.valueForKey("width") != null)
          objectStoreChanges.clearWidth();
      }
      if((modelAttribute.externalType().equals("char") || modelAttribute.externalType().equals("varchar")) && modelAttribute.width() == 1024 && schemaAttribute.width() == 1023)
        objectStoreChanges.clearWidth();
     
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.