Characteristic
|
What it is
|
How you modify it
|
Allows Null
|
Indicates whether the attribute can have a NULL value.
|
Click in the column to toggle the check on and off. (The column for Allows Null is labeled "A".)
|
Class Property
|
Indicates a property that meets both of these criteria: you want to include it in your class definition, and it can be fetched from the database.
|
Click in the column to toggle class property off and on.
You can also edit this characteristic in diagram view.
|
Client-Side Class Property
|
Declares whether a property is a class property in the entity's client-side class. Only applicable for Java Client applications.
|
Click in the column to toggle locking off and on.
|
Column
|
The database name of the column that corresponds to the attribute.
|
Edit the table cell.
|
Definition
|
The definition for a derived attribute. Note that Column and Definition are mutually exclusive; you can't set both. Setting one clears the other.
|
Edit the table cell.
|
External Type
|
The data type of the attribute as it's understood by the database.
|
Choose a value from the pull-down list
|
Locking
|
Indicates whether an attribute should be used for locking when an update is performed.
|
Click in the column (shown in Figure 19) to toggle locking off and on.
You can also edit this characteristic in diagram view.
|
Name
|
The name your application uses for the attribute. EOModeler supplies default names derived from the name of the corresponding column in the database. You can edit these names if desired.
|
Edit the table cell.
You can also edit this characteristic in diagram view.
|
Precision
|
The number of significant digits.
|
Edit the table cell.
Or use the Attribute Inspector as described in Using the Attribute Inspector.
|
Primary Key
|
Declares whether a property is, or is part of, the primary key for the entity.
|
Click in the column to toggle the primary key off and on.
You can also edit this characteristic in diagram view.
|
Prototype
|
A prototype attribute from which this attribute derives its characteristics.
|
Choose a value from the pull-down list
|
Read Format
|
The format string that's used to format the attribute's value for SELECT statements. In the string, %P is replaced by the attribute's external name. This string is used whenever the attribute is referenced in a select list or qualifier.
|
Edit the table cell.
|
Read Only
|
Indicates whether the attribute is read only.
|
Use the Advanced Attribute Inspector. You can't set this characteristic in the Model Editor.
|
Scale
|
The number of digits to the right of the decimal point. Can be negative.
|
Edit the table cell.
Or use the Attribute Inspector as described in Using the Attribute Inspector.
|
Value Class (Java)
|
If your enterprise object is a Java class, the Java type to which the attribute will be coerced in your application.
|
Edit the table cell.
Or use the Attribute Inspector as described in Using the Attribute Inspector.
|
Value Class (Obj-C)
|
If your enterprise object is an Objective-C class, the Objective-C type to which the attribute will be coerced in your application.
|
Edit the table cell.
Or use the Attribute Inspector as described in Using the Attribute Inspector.
|
Value Type
|
The conversion character (such as "i" or "d") for the data type a NSNumber attribute is converted to and from in your application.
|
Edit the table cell.
Or use the Attribute Inspector as described in Using the Attribute Inspector.
|
Width
|
The maximum width (applies to string and raw data only).
|
Edit the table cell.
Or use the Attribute Inspector as described in Using the Attribute Inspector.
|
Write Format
|
The format string that's used to format the attribute's value for INSERT or UPDATE expressions. In the string, %P is replaced by the attribute's external name.
|
Edit the table cell.
|