WebObjects 5.4.2

com.webobjects.eoaccess.synchronization
Class EOSchemaSynchronizationModelChanges

java.lang.Object
  extended by com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationChanges
      extended by com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationModelChanges
All Implemented Interfaces:
NSKeyValueCoding, NSKeyValueCodingAdditions

public class EOSchemaSynchronizationModelChanges
extends EOSchemaSynchronizationChanges

Encapsulates the changes between the previous eomodel.

Since:
5.4
See Also:
EOSchemaSynchronizationFactory, EOSchemaSynchronization

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Field Summary
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
EOSchemaSynchronizationModelChanges()
           
 
Method Summary
 void addToDeletedTableNames(String value)
          Adds a table name to the list of table to be deleted.
 void addToInsertedTableNames(String value)
          Adds a table name to the list of table to be inserted.
 void addToUpdatedTableNames(String value, EOSchemaSynchronizationTableChanges change)
          Adds a table name to the list of table to be updated.
 EOSchemaSynchronizationTableChanges changesForTableNamed(String value)
          Rerturns the changes for the named table.
 Set deletedTableNames()
          Returns the list of table to be deleted.
 Iterator deletedTableNamesIterator()
          Returns an iterator on the list of table names to be deleted.
 void fieldsToString(StringBuilder aLog)
           
 Set insertedTableNames()
          Returns the list of table to be inserted.
 Iterator insertedTableNamesIterator()
          Returns an iterator on the list of table names to be inserted.
 boolean isEmpty()
          Checks if there is any changes defined by this structrure
 boolean isTableNamedDeleted(String value)
          Checks if a table is to be deleted.
 boolean isTableNamedInserted(String value)
          Checks if a table is to be inserted.
 boolean isTableNamedUpdated(String value)
          Checks if a table is to be updated.
 EOSchemaSynchronizationTableChanges newChangesForTable(String value)
          Returns enewly initialized change object.
 void removeFromDeletedTableNames(String value)
          Removes a table name from the list of table to be deleted.
 void removeFromInsertedTableNames(String value)
          Removes a table name from the list of table to be inserted.
 void removeFromUpdatedTableNames(String value)
          Removes a table name from the list of table to be updated.
 void setDeletedTableNames(Collection value)
          Set the deleted table names.
 void setInsertedTableNames(Collection value)
          Set the inserted table names.
 void setUpdatedTableNames(Map value)
          Set the updated table names and updates descriptions.
 Set updatedTableNames()
          Returns the list of tables to be updated.
 Iterator updatedTableNamesIterator()
          Returns an iterator on the list of table names to be updated.
 
Methods inherited from class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationChanges
takeValueForKey, takeValueForKeyPath, toString, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOSchemaSynchronizationModelChanges

public EOSchemaSynchronizationModelChanges()
Method Detail

isEmpty

public boolean isEmpty()
Checks if there is any changes defined by this structrure

Specified by:
isEmpty in class EOSchemaSynchronizationChanges
Returns:
true if there are changes

newChangesForTable

public EOSchemaSynchronizationTableChanges newChangesForTable(String value)
Returns enewly initialized change object. This object is not inserted in the update list. This is to facilitate subclassing.

Parameters:
value - table name
Returns:
a new change object

updatedTableNames

public Set updatedTableNames()
Returns the list of tables to be updated.

Returns:
table name list

setUpdatedTableNames

public void setUpdatedTableNames(Map value)
Set the updated table names and updates descriptions.

Parameters:
value - table name dictionary

addToUpdatedTableNames

public void addToUpdatedTableNames(String value,
                                   EOSchemaSynchronizationTableChanges change)
Adds a table name to the list of table to be updated.

Parameters:
value - table name
change - change description

removeFromUpdatedTableNames

public void removeFromUpdatedTableNames(String value)
Removes a table name from the list of table to be updated.

Parameters:
value - table name

changesForTableNamed

public EOSchemaSynchronizationTableChanges changesForTableNamed(String value)
Rerturns the changes for the named table. If there are no changes returns an empty Object.

Parameters:
value - table name
Returns:
change object

updatedTableNamesIterator

public Iterator updatedTableNamesIterator()
Returns an iterator on the list of table names to be updated.

Returns:
table iterator

isTableNamedUpdated

public boolean isTableNamedUpdated(String value)
Checks if a table is to be updated.

Parameters:
value - table name
Returns:
true if the table is to be updated

deletedTableNames

public Set deletedTableNames()
Returns the list of table to be deleted.

Returns:
table name list

setDeletedTableNames

public void setDeletedTableNames(Collection value)
Set the deleted table names.

Parameters:
value - table name list

addToDeletedTableNames

public void addToDeletedTableNames(String value)
Adds a table name to the list of table to be deleted.

Parameters:
value - table name

removeFromDeletedTableNames

public void removeFromDeletedTableNames(String value)
Removes a table name from the list of table to be deleted.

Parameters:
value - table name

deletedTableNamesIterator

public Iterator deletedTableNamesIterator()
Returns an iterator on the list of table names to be deleted.

Returns:
table iterator

isTableNamedDeleted

public boolean isTableNamedDeleted(String value)
Checks if a table is to be deleted.

Parameters:
value - table name
Returns:
true if the table is to be deleted

insertedTableNames

public Set insertedTableNames()
Returns the list of table to be inserted.

Returns:
table name list

setInsertedTableNames

public void setInsertedTableNames(Collection value)
Set the inserted table names.

Parameters:
value - table name list

addToInsertedTableNames

public void addToInsertedTableNames(String value)
Adds a table name to the list of table to be inserted.

Parameters:
value - table name

removeFromInsertedTableNames

public void removeFromInsertedTableNames(String value)
Removes a table name from the list of table to be inserted.

Parameters:
value - table name

insertedTableNamesIterator

public Iterator insertedTableNamesIterator()
Returns an iterator on the list of table names to be inserted.

Returns:
table iterator

isTableNamedInserted

public boolean isTableNamedInserted(String value)
Checks if a table is to be inserted.

Parameters:
value - table name
Returns:
true if the table is to be inserted

fieldsToString

public void fieldsToString(StringBuilder aLog)
Overrides:
fieldsToString in class EOSchemaSynchronizationChanges

Last updated June 2008

Copyright © 2000-2008 Apple Inc.