Class LocalFieldDesc
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc
-
- com.sun.jdo.spi.persistence.support.sqlstore.model.LocalFieldDesc
-
- All Implemented Interfaces:
Serializable
public class LocalFieldDesc extends FieldDesc
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc
absoluteID, classDesc, concurrencyGroup, fetchGroup, GROUP_DEFAULT, GROUP_NONE, logger, messages, PROP_FOREIGN_KEY_FIELD, PROP_IN_CONCURRENCY_CHECK, PROP_LOG_ON_UPDATE, PROP_PRIMARY_KEY_FIELD, PROP_PRIMARY_TRACKED_FIELD, PROP_READ_ONLY, PROP_RECORD_ON_UPDATE, PROP_REF_INTEGRITY_UPDATES, PROP_SECONDARY_TRACKED_FIELD, PROP_TRACK_RELATIONSHIP_FIELD, PROP_VERSION_FIELD, sqlProperties
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator
getColumnElements()
Returns an iterator on the mapped column elements.org.netbeans.modules.dbschema.ColumnElement
getPrimaryColumn()
Gets theColumnElement
for the primary column of this field.void
incrementValue(StateManager sm)
Increments this field in the instance managed by state managersm
by one.static boolean
isCharLobType(int sqlType)
Determines ifsqltype
passed to this method is to be considered a character LOB type.static boolean
isFixedCharType(int sqlType)
Determines if thesqlType
passed to this method corresponds to a fixed char type.boolean
isMappedToLob()
Determines if this field is mapped to a LOB column type.boolean
isPrimitiveMappedToNullableColumn()
boolean
isVersion()
Returns true if this field is a version field.protected void
setupDesc(Field f)
Calls the superclass method and disables concurrency checking for certain field types.-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc
addTrackedField, convertValue, createSCO, getCharFromString, getComponentType, getDeclaringClass, getEnumType, getName, getTrackedFields, getType, getValue, isForeignKeyField, isKeyField, isRelationshipField, setValue, toString
-
-
-
-
Method Detail
-
isPrimitiveMappedToNullableColumn
public boolean isPrimitiveMappedToNullableColumn()
-
isMappedToLob
public boolean isMappedToLob()
Determines if this field is mapped to a LOB column type. It is assumed that lob fields are mapped to only one columns and UI and model verifications enforce it.- Returns:
true
if field is mapped to LOB column type.false
otherwise.
-
isCharLobType
public static boolean isCharLobType(int sqlType)
Determines ifsqltype
passed to this method is to be considered a character LOB type.- Returns:
true
if field is mapped to character LOB column type.false
otherwise.
-
isFixedCharType
public static boolean isFixedCharType(int sqlType)
Determines if thesqlType
passed to this method corresponds to a fixed char type.- Parameters:
sqlType
- The input sqlType.- Returns:
true
if field is mapped to Types.CHARfalse
otherwise.
-
getPrimaryColumn
public org.netbeans.modules.dbschema.ColumnElement getPrimaryColumn()
Gets theColumnElement
for the primary column of this field.- Returns:
- The
ColumnElement
for the primary column of this field.
-
getColumnElements
public Iterator getColumnElements()
Returns an iterator on the mapped column elements.- Returns:
- An iterator on the mapped column elements.
-
isVersion
public boolean isVersion()
Returns true if this field is a version field.
-
incrementValue
public void incrementValue(StateManager sm)
Increments this field in the instance managed by state managersm
by one.- Parameters:
sm
- State manager to be modified.
-
-