WebObjects 5.4.2

com.webobjects.eoaccess.synchronization
Class EOSchemaSynchronizationColumnChanges

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

public class EOSchemaSynchronizationColumnChanges
extends EOSchemaSynchronizationChanges

Encapsulates column changes.

Since:
5.4
See Also:
EOSchemaSynchronizationTableChanges, 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
EOSchemaSynchronizationColumnChanges(String name)
           
 
Method Summary
 boolean allowNull()
           
 void clearAllowNull()
          Resets the allow null parameter
 void clearExternalType()
          Resets the External Type parameter
 void clearPrecision()
          Resets the Precision parameter
 void clearScale()
          Resets the scale parameter
 void clearWidth()
          Resets the width parameter
 EOSchemaSynchronizationColumnChanges clone()
           
 String defaultExternalType()
          Returns the default precision for the column if not set.
 Number defaultPrecision()
          Returns the default precision for the column if not set.
 Number defaultScale()
          Returns the default scale for the column if not set.
 Number defaultWidth()
          Returns the default width for the column if not set.
 String externalType()
           
 void fieldsToString(StringBuilder aLog)
           
 boolean isAllowNullDefined()
          Check if allow null have been defined
 boolean isEmpty()
          Checks if there is any changes defined by this structrure
 boolean isExternalTypeDefined()
          Check if External Type have been defined
 boolean isPrecisionDefined()
          Check if Precision have been defined
 boolean isRename()
          Checks if this is a column rename
 boolean isScaleDefined()
          Check if Scale have been defined
 boolean isWidthDefined()
          Check if Width have been defined
 String name()
           
 String oldName()
          Returns the old name of the column
 int precision()
           
 int scale()
           
 void setAllowNull(boolean value)
           
 void setExternalType(String value)
           
 void setOldName(String value)
          Sets the old name of the column
 void setPrecision(int value)
           
 void setScale(int scale)
           
 void setWidth(int value)
           
 int width()
           
 
Methods inherited from class com.webobjects.eoaccess.synchronization.EOSchemaSynchronizationChanges
takeValueForKey, takeValueForKeyPath, toString, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOSchemaSynchronizationColumnChanges

public EOSchemaSynchronizationColumnChanges(String name)
Method Detail

name

public String name()

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

oldName

public String oldName()
Returns the old name of the column

Returns:
the oldName

setOldName

public void setOldName(String value)
Sets the old name of the column

Parameters:
value - the oldName to set

isRename

public boolean isRename()
Checks if this is a column rename

Returns:
true is this is a rename

isAllowNullDefined

public boolean isAllowNullDefined()
Check if allow null have been defined

Returns:
true if the parmeter is defined

clearAllowNull

public void clearAllowNull()
Resets the allow null parameter


allowNull

public boolean allowNull()
Returns:
the allowNull

setAllowNull

public void setAllowNull(boolean value)
Parameters:
value - the allowNull to set

isExternalTypeDefined

public boolean isExternalTypeDefined()
Check if External Type have been defined

Returns:
true if the parmeter is defined

clearExternalType

public void clearExternalType()
Resets the External Type parameter


defaultExternalType

public String defaultExternalType()
Returns the default precision for the column if not set.

Returns:
default precision

externalType

public String externalType()
Returns:
the externalType

setExternalType

public void setExternalType(String value)
Parameters:
value - the externalType to set

isPrecisionDefined

public boolean isPrecisionDefined()
Check if Precision have been defined

Returns:
true if the parmeter is defined

clearPrecision

public void clearPrecision()
Resets the Precision parameter


defaultPrecision

public Number defaultPrecision()
Returns the default precision for the column if not set.

Returns:
default precision

precision

public int precision()
Returns:
the precision

setPrecision

public void setPrecision(int value)
Parameters:
precision - the precision to set

isWidthDefined

public boolean isWidthDefined()
Check if Width have been defined

Returns:
true if the parmeter is defined

clearWidth

public void clearWidth()
Resets the width parameter


defaultWidth

public Number defaultWidth()
Returns the default width for the column if not set.

Returns:
default width

width

public int width()
Returns:
the width

setWidth

public void setWidth(int value)
Parameters:
width - the width to set

isScaleDefined

public boolean isScaleDefined()
Check if Scale have been defined

Returns:
true if the parmeter is defined

clearScale

public void clearScale()
Resets the scale parameter


defaultScale

public Number defaultScale()
Returns the default scale for the column if not set.

Returns:
default scale

scale

public int scale()
Returns:
the scale

setScale

public void setScale(int scale)
Parameters:
scale - the scale to set

clone

public EOSchemaSynchronizationColumnChanges clone()
Overrides:
clone in class Object

fieldsToString

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

Last updated June 2008

Copyright © 2000-2008 Apple Inc.