|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eoaccess.synchronization.EOSchemaSynchronizationChanges
com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationTableChanges
public class EOSchemaSynchronizationTableChanges
Encapsulates the changes between the previous schema including table names, indexes, columns and constraints.
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 | |
---|---|
EOSchemaSynchronizationTableChanges(String name)
|
Method Summary | |
---|---|
void |
addToDeletedColumnNames(String value)
Adds a column name to the list of column to be deleted. |
void |
addToDeletedForeignKeyConstrainNames(String value)
Adds a foreign key constraint name to the list of foreign key constraint to be deleted. |
void |
addToDeletedIndexNames(String value)
Adds a index name to the list of index to be deleted. |
void |
addToInsertedColumnNames(String value)
Adds a column name to the list of column to be inserted. |
void |
addToInsertedForeignKeyConstrainNames(String value)
Adds a foreign key constraint name to the list of foreign key constraint to be inserted. |
void |
addToInsertedIndexNames(String value)
Adds a index name to the list of index to be inserted. |
void |
addToUpdatedColumnNames(String value,
EOSchemaSynchronizationColumnChanges change)
Adds a column name to the list of column to be updated. |
EOSchemaSynchronizationColumnChanges |
changesForColumnNamed(String value)
Returns the changes for the named column. |
Set |
deletedColumnNames()
Returns the list of column to be deleted. |
Iterator |
deletedColumnNamesIterator()
Returns an iterator on the list of column names to be deleted. |
Set |
deletedForeignKeyConstrainNames()
Returns the list of foreign key constraint to be deleted. |
Iterator |
deletedForeignKeyConstrainNamesIterator()
Returns an iterator on the list of foreign key constraint names to be deleted. |
Set |
deletedIndexNames()
Returns the list of index to be deleted. |
Iterator |
deletedIndexNamesIterator()
Returns an iterator on the list of index names to be deleted. |
void |
fieldsToString(StringBuilder aLog)
|
boolean |
hasColunmDeleted()
Checks if there are deleted columns. |
boolean |
hasColunmInserted()
Checks if there are inserted columns. |
boolean |
hasColunmUpdated()
Checks if there are updated columns. |
boolean |
hasForeignKeyConstrainsDeleted()
Checks if there are deleted foreign key constraint. |
boolean |
hasForeignKeyConstrainsInserted()
Checks if there are foreign key constraint indexes. |
boolean |
hasIndexesDeleted()
Checks if there are deleted indexes. |
boolean |
hasIndexesInserted()
Checks if there are inserted indexes. |
Set |
insertedColumnNames()
Returns the list of column to be inserted. |
Iterator |
insertedColumnNamesIterator()
Returns an iterator on the list of column names to be inserted. |
Set |
insertedForeignKeyConstrainNames()
Returns the list of foreign key constraint to be inserted. |
Iterator |
insertedForeignKeyConstrainNamesIterator()
Returns an iterator on the list of foreign key constraint names to be inserted. |
Set |
insertedIndexNames()
Returns the list of index to be inserted. |
Iterator |
insertedIndexNamesIterator()
Returns an iterator on the list of index names to be inserted. |
boolean |
isColumnNamedDeleted(String value)
Checks if a column is to be deleted. |
boolean |
isColumnNamedInserted(String value)
Checks if a column is to be inserted. |
boolean |
isColumnNamedUpdated(String value)
Checks if a column is to be updated. |
boolean |
isEmpty()
Checks if there is any changes defined by this structrure |
boolean |
isForeignKeyConstrainNamedDeleted(String value)
Checks if a foreign key constraint is to be deleted. |
boolean |
isForeignKeyConstrainNamedInserted(String value)
Checks if a foreign key constraint is to be inserted. |
boolean |
isIndexNamedDeleted(String value)
Checks if a index is to be deleted. |
boolean |
isIndexNamedInserted(String value)
Checks if a index is to be inserted. |
boolean |
isOnlyForeignKeyRelated()
Checks if there is the changes defined by this structrure are only foreign key related |
boolean |
isRename()
Checks if this is a table rename |
String |
name()
|
EOSchemaSynchronizationColumnChanges |
newChangesForColumn(String value)
Returns the newly initialized change object. |
String |
oldName()
Returns the old name of the table |
void |
removeFromDeletedColumnNames(String value)
Removes a column name from the list of column to be deleted. |
void |
removeFromDeletedForeignKeyConstrainNames(String value)
Removes a foreign key constraint name from the list of foreign key constraint to be deleted. |
void |
removeFromDeletedIndexNames(String value)
Removes a index name from the list of index to be deleted. |
void |
removeFromInsertedColumnNames(String value)
Removes a column name from the list of column to be inserted. |
void |
removeFromInsertedForeignKeyConstrainNames(String value)
Removes a foreign key constraint name from the list of foreign key constraint to be inserted. |
void |
removeFromInsertedIndexNames(String value)
Removes a index name from the list of index to be inserted. |
void |
removeFromUpdatedColumnNames(String value)
Removes a column name from the list of column to be updated. |
void |
setDeletedColumnNames(Collection value)
Set the deleted column names. |
void |
setDeletedForeignKeyConstrainNames(Collection value)
Set the deleted foreign key constraint names. |
void |
setDeletedIndexNames(Collection value)
Set the deleted index names. |
void |
setInsertedColumnNames(Collection value)
Set the inserted column names. |
void |
setInsertedForeignKeyConstrainNames(Collection value)
Set the inserted foreign key constraint names. |
void |
setInsertedIndexNames(Collection value)
Set the inserted index names. |
void |
setOldName(String value)
Sets the old name of the table |
void |
setUpdatedColumnNames(Map value)
Set the updated column names and updates descriptions. |
Set |
updatedColumnNames()
Returns the list of columns to be updated. |
Iterator |
updatedColumnNamesIterator()
Returns an iterator on the list of column 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 |
---|
public EOSchemaSynchronizationTableChanges(String name)
Method Detail |
---|
public String name()
public boolean isEmpty()
isEmpty
in class EOSchemaSynchronizationChanges
public boolean isOnlyForeignKeyRelated()
public String oldName()
public void setOldName(String value)
value
- the oldName to setpublic boolean isRename()
public EOSchemaSynchronizationColumnChanges newChangesForColumn(String value)
value
- column name
public Set updatedColumnNames()
public void setUpdatedColumnNames(Map value)
value
- column name dictionarypublic void addToUpdatedColumnNames(String value, EOSchemaSynchronizationColumnChanges change)
value
- column namechange
- change descriptionpublic void removeFromUpdatedColumnNames(String value)
value
- column namepublic EOSchemaSynchronizationColumnChanges changesForColumnNamed(String value)
value
- column name
public Iterator updatedColumnNamesIterator()
public boolean isColumnNamedUpdated(String value)
column
- name
public boolean hasColunmUpdated()
public Set deletedColumnNames()
public void setDeletedColumnNames(Collection value)
value
- column name listpublic void addToDeletedColumnNames(String value)
column
- namepublic void removeFromDeletedColumnNames(String value)
column
- namepublic Iterator deletedColumnNamesIterator()
public boolean isColumnNamedDeleted(String value)
column
- name
public boolean hasColunmDeleted()
public Set insertedColumnNames()
public void setInsertedColumnNames(Collection value)
column
- name listpublic void addToInsertedColumnNames(String value)
column
- namepublic void removeFromInsertedColumnNames(String value)
column
- namepublic Iterator insertedColumnNamesIterator()
public boolean isColumnNamedInserted(String value)
column
- name
public boolean hasColunmInserted()
public Set deletedIndexNames()
public void setDeletedIndexNames(Collection value)
list
- of index names to be deletedpublic void addToDeletedIndexNames(String value)
value
- index name to deletepublic void removeFromDeletedIndexNames(String value)
value
- index name to remove from deletion listpublic Iterator deletedIndexNamesIterator()
public boolean isIndexNamedDeleted(String value)
value
- index name
public boolean hasIndexesDeleted()
public Set insertedIndexNames()
public void setInsertedIndexNames(Collection value)
list
- of inserted index namespublic void addToInsertedIndexNames(String value)
name
- of index to add to insertion listpublic void removeFromInsertedIndexNames(String value)
name
- of index to remove from listpublic Iterator insertedIndexNamesIterator()
public boolean isIndexNamedInserted(String value)
name
- of index
public boolean hasIndexesInserted()
public Set deletedForeignKeyConstrainNames()
public void setDeletedForeignKeyConstrainNames(Collection value)
foreign
- key constraint name listpublic void addToDeletedForeignKeyConstrainNames(String value)
foreign
- key constraint namepublic void removeFromDeletedForeignKeyConstrainNames(String value)
foreign
- key constraint namepublic Iterator deletedForeignKeyConstrainNamesIterator()
public boolean isForeignKeyConstrainNamedDeleted(String value)
foreign
- key constraint name
public boolean hasForeignKeyConstrainsDeleted()
public Set insertedForeignKeyConstrainNames()
public void setInsertedForeignKeyConstrainNames(Collection value)
value
- foreign key constraint name listpublic void addToInsertedForeignKeyConstrainNames(String value)
value
- foreign key constraint namepublic void removeFromInsertedForeignKeyConstrainNames(String value)
value
- foreign key constraint namepublic Iterator insertedForeignKeyConstrainNamesIterator()
public boolean isForeignKeyConstrainNamedInserted(String value)
value
- foreign key constraint name
public boolean hasForeignKeyConstrainsInserted()
public void fieldsToString(StringBuilder aLog)
fieldsToString
in class EOSchemaSynchronizationChanges
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |