com.triactive.jdo.model
Class FieldMetaData

java.lang.Object
  extended bycom.triactive.jdo.model.MetaData
      extended bycom.triactive.jdo.model.FieldMetaData
All Implemented Interfaces:
ColumnOptions, java.lang.Comparable

public class FieldMetaData
extends MetaData
implements java.lang.Comparable, ColumnOptions


Field Summary
protected  ArrayMetaData arrayMetaData
           
protected  CollectionMetaData collectionMetaData
           
protected  boolean defaultFetchGroup
           
protected  boolean embedded
           
protected  java.lang.reflect.Field field
           
protected  MapMetaData mapMetaData
           
static int NULL_VALUE_DEFAULT
           
static int NULL_VALUE_EXCEPTION
           
static int NULL_VALUE_NONE
           
protected  int nullValue
           
protected  ClassMetaData owner
           
static int PERSISTENCE_MODIFIER_NONE
           
static int PERSISTENCE_MODIFIER_PERSISTENT
           
static int PERSISTENCE_MODIFIER_TRANSACTIONAL
           
protected  int persistenceModifier
           
protected  boolean primaryKey
           
protected  java.lang.Class type
           
 
Fields inherited from class com.triactive.jdo.model.MetaData
MY_VENDOR, vendorExtensions
 
Constructor Summary
FieldMetaData(ClassMetaData owner, org.w3c.dom.Element fldElement)
           
FieldMetaData(ClassMetaData owner, java.lang.reflect.Field field)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
static FieldMetaData forField(java.lang.Class clazz, java.lang.String fieldName)
           
 ArrayMetaData getArrayMetaData()
           
 ClassMetaData getClassMetaData()
           
 CollectionMetaData getCollectionMetaData()
           
 java.lang.reflect.Field getField()
           
 java.lang.String getJavaName()
           
 java.lang.String getLength()
           
 MapMetaData getMapMetaData()
           
 java.lang.String getName()
           
 int getNullValueHandling()
           
 FieldMetaData getOwnedByCollection()
           
 FieldMetaData getOwnedByMap()
           
 int getPersistenceModifier()
           
 java.lang.String getPrecision()
           
 java.lang.String getScale()
           
 java.lang.Class getType()
           
 boolean isEmbedded()
           
 boolean isInDefaultFetchGroup()
           
 boolean isPrimaryKeyPart()
           
 void setDefaultFetchGroup(boolean defaultFetchGroup)
           
 java.lang.String toString()
           
 
Methods inherited from class com.triactive.jdo.model.MetaData
addVendorExtensions, getReferencedType, getVendorExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERSISTENCE_MODIFIER_NONE

public static final int PERSISTENCE_MODIFIER_NONE
See Also:
Constant Field Values

PERSISTENCE_MODIFIER_PERSISTENT

public static final int PERSISTENCE_MODIFIER_PERSISTENT
See Also:
Constant Field Values

PERSISTENCE_MODIFIER_TRANSACTIONAL

public static final int PERSISTENCE_MODIFIER_TRANSACTIONAL
See Also:
Constant Field Values

NULL_VALUE_NONE

public static final int NULL_VALUE_NONE
See Also:
Constant Field Values

NULL_VALUE_DEFAULT

public static final int NULL_VALUE_DEFAULT
See Also:
Constant Field Values

NULL_VALUE_EXCEPTION

public static final int NULL_VALUE_EXCEPTION
See Also:
Constant Field Values

owner

protected final ClassMetaData owner

field

protected final java.lang.reflect.Field field

type

protected final java.lang.Class type

embedded

protected final boolean embedded

persistenceModifier

protected final int persistenceModifier

primaryKey

protected final boolean primaryKey

nullValue

protected final int nullValue

defaultFetchGroup

protected boolean defaultFetchGroup

arrayMetaData

protected final ArrayMetaData arrayMetaData

collectionMetaData

protected final CollectionMetaData collectionMetaData

mapMetaData

protected final MapMetaData mapMetaData
Constructor Detail

FieldMetaData

public FieldMetaData(ClassMetaData owner,
                     org.w3c.dom.Element fldElement)

FieldMetaData

public FieldMetaData(ClassMetaData owner,
                     java.lang.reflect.Field field)
Method Detail

forField

public static FieldMetaData forField(java.lang.Class clazz,
                                     java.lang.String fieldName)

getType

public java.lang.Class getType()

isEmbedded

public boolean isEmbedded()

getJavaName

public java.lang.String getJavaName()
Specified by:
getJavaName in class MetaData

getClassMetaData

public ClassMetaData getClassMetaData()

getName

public java.lang.String getName()

getField

public java.lang.reflect.Field getField()

getPersistenceModifier

public int getPersistenceModifier()

isPrimaryKeyPart

public boolean isPrimaryKeyPart()

getNullValueHandling

public int getNullValueHandling()

isInDefaultFetchGroup

public boolean isInDefaultFetchGroup()

setDefaultFetchGroup

public void setDefaultFetchGroup(boolean defaultFetchGroup)

getLength

public java.lang.String getLength()
Specified by:
getLength in interface ColumnOptions

getPrecision

public java.lang.String getPrecision()
Specified by:
getPrecision in interface ColumnOptions

getScale

public java.lang.String getScale()
Specified by:
getScale in interface ColumnOptions

getArrayMetaData

public ArrayMetaData getArrayMetaData()

getCollectionMetaData

public CollectionMetaData getCollectionMetaData()

getMapMetaData

public MapMetaData getMapMetaData()

getOwnedByCollection

public FieldMetaData getOwnedByCollection()

getOwnedByMap

public FieldMetaData getOwnedByMap()

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()


Copyright 2001-2007 The TJDO Project All Rights Reserved.