WebObjects 5.4.2

com.webobjects.eoaccess.synchronization
Class EOSchemaColumnDescription

java.lang.Object
  extended by com.webobjects.eoaccess.synchronization.EOSchemaPropertyDescription
      extended by com.webobjects.eoaccess.synchronization.EOSchemaColumnDescription
All Implemented Interfaces:
NSKeyValueCoding, NSKeyValueCodingAdditions
Direct Known Subclasses:
FrontbasePlugIn.FrontbaseSynchronizationFactory.FrontbaseColumnDescription, OpenBasePlugIn.OpenBaseSynchronizationFactory.OpenBaseColumnDescription

public class EOSchemaColumnDescription
extends EOSchemaPropertyDescription

A wrapper object for relational database column information used for schema synchronization.

Since:
5.4
See Also:
EOSchemaTableDescription, EOSchemaSynchronizationFactory

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
static EOSchemaColumnDescription EmptyDescription
           
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
protected EOSchemaColumnDescription()
           
 
Method Summary
 Boolean allowsNull()
          Allows null as specified by the eomodel
 String dataType()
          External data type as specified in the eomodel
protected  void fieldsToString(StringBuilder aLog)
          Adds the fields for each subclass.
 Object internalDataType()
          Returns the internal data type of the column as specified in the eomodel
 boolean isEmpty()
          Returns true is the property description is empty
 Number scale()
          Scale as defined by the eomodel
protected  void setAllowsNull(Boolean value)
           
protected  void setDataType(String value)
           
protected  void setInternalDataType(Object value)
           
protected  void setScale(Number value)
           
protected  void setWidth(Number value)
           
 Number width()
          Width as defined by the eomodel
 
Methods inherited from class com.webobjects.eoaccess.synchronization.EOSchemaPropertyDescription
name, setName, takeValueForKey, takeValueForKeyPath, toString, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EmptyDescription

public static final EOSchemaColumnDescription EmptyDescription
Constructor Detail

EOSchemaColumnDescription

protected EOSchemaColumnDescription()
Method Detail

isEmpty

public boolean isEmpty()
Description copied from class: EOSchemaPropertyDescription
Returns true is the property description is empty

Specified by:
isEmpty in class EOSchemaPropertyDescription
Returns:
true if empty

dataType

public String dataType()
External data type as specified in the eomodel

Returns:
External data type as specified in the eomodel

setDataType

protected void setDataType(String value)

internalDataType

public Object internalDataType()
Returns the internal data type of the column as specified in the eomodel

Returns:
internal type

setInternalDataType

protected void setInternalDataType(Object value)

width

public Number width()
Width as defined by the eomodel

Returns:
width or 0 if not specified

setWidth

protected void setWidth(Number value)

scale

public Number scale()
Scale as defined by the eomodel

Returns:
scale or 0 if not specified

setScale

protected void setScale(Number value)

allowsNull

public Boolean allowsNull()
Allows null as specified by the eomodel

Returns:
true if not specfied

setAllowsNull

protected void setAllowsNull(Boolean value)

fieldsToString

protected void fieldsToString(StringBuilder aLog)
Description copied from class: EOSchemaPropertyDescription
Adds the fields for each subclass. Subclasses must override this method and call super first if they have specific fields to display.

Overrides:
fieldsToString in class EOSchemaPropertyDescription
Parameters:
aLog - log statement being built

Last updated June 2008

Copyright © 2000-2008 Apple Inc.