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 IteratorgetColumnElements()Returns an iterator on the mapped column elements.org.netbeans.modules.dbschema.ColumnElementgetPrimaryColumn()Gets theColumnElementfor the primary column of this field.voidincrementValue(StateManager sm)Increments this field in the instance managed by state managersmby one.static booleanisCharLobType(int sqlType)Determines ifsqltypepassed to this method is to be considered a character LOB type.static booleanisFixedCharType(int sqlType)Determines if thesqlTypepassed to this method corresponds to a fixed char type.booleanisMappedToLob()Determines if this field is mapped to a LOB column type.booleanisPrimitiveMappedToNullableColumn()booleanisVersion()Returns true if this field is a version field.protected voidsetupDesc(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:
trueif field is mapped to LOB column type.falseotherwise.
-
isCharLobType
public static boolean isCharLobType(int sqlType)
Determines ifsqltypepassed to this method is to be considered a character LOB type.- Returns:
trueif field is mapped to character LOB column type.falseotherwise.
-
isFixedCharType
public static boolean isFixedCharType(int sqlType)
Determines if thesqlTypepassed to this method corresponds to a fixed char type.- Parameters:
sqlType- The input sqlType.- Returns:
trueif field is mapped to Types.CHARfalseotherwise.
-
getPrimaryColumn
public org.netbeans.modules.dbschema.ColumnElement getPrimaryColumn()
Gets theColumnElementfor the primary column of this field.- Returns:
- The
ColumnElementfor 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 managersmby one.- Parameters:
sm- State manager to be modified.
-
-