WebObjects 5.4

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<T>, 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<String> deletedTableNames()
          Returns the list of table to be deleted.
 Iterator<String> deletedTableNamesIterator()
          Returns an iterator on the list of table names to be deleted.
 void fieldsToString(StringBuilder aLog)
           
 Set<String> insertedTableNames()
          Returns the list of table to be inserted.
 Iterator<String> 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<String> value)
          Set the deleted table names.
 void setInsertedTableNames(Collection<String> value)
          Set the inserted table names.
 void setUpdatedTableNames(Map<String,? extends EOSchemaSynchronizationTableChanges> value)
          Set the updated table names and updates descriptions.
 Set<String> updatedTableNames()
          Returns the list of tables to be updated.
 Iterator<String> 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<String> updatedTableNames()
Returns the list of tables to be updated.

Returns:
table name list

setUpdatedTableNames

public void setUpdatedTableNames(Map<String,? extends EOSchemaSynchronizationTableChanges> 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<String> 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<String> deletedTableNames()
Returns the list of table to be deleted.

Returns:
table name list

setDeletedTableNames

public void setDeletedTableNames(Collection<String> 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<String> 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<String> insertedTableNames()
Returns the list of table to be inserted.

Returns:
table name list

setInsertedTableNames

public void setInsertedTableNames(Collection<String> 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<String> 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 Tuesday, October 9, 2007 08:58 PDT

Copyright © 2000-2007 Apple Inc.