Methods Summary |
---|
public ConcurrencyGroupElement[] | getConcurrencyGroups()Returns the array of concurrency groups to which this field belongs.
ConcurrencyGroupElement[] groups = getDeclaringClass().
getConcurrencyGroups();
int i, count = ((groups != null) ? groups.length : 0);
ArrayList myGroups = new ArrayList(count);
for (i = 0; i < count; i++)
{
ConcurrencyGroupElement group = groups[i];
if (group.containsField(this))
myGroups.add(group);
}
count = myGroups.size();
return ((ConcurrencyGroupElement[])myGroups.toArray(
new ConcurrencyGroupElement[count]));
|
final com.sun.jdo.api.persistence.model.jdo.PersistenceFieldElement$Impl | getFieldImpl() return (Impl)getImpl();
|
public int | getFieldNumber()Computes the field number of this field element.
// for later - take into account the class
// get/setFieldInheritanceFlag behavior (i.e. might need to climb
// inheritance hierarchy
PersistenceFieldElement[] fields = getDeclaringClass().getFields();
int i, count = ((fields != null) ? fields.length : 0);
for (i = 0; i < count; i++)
if (equals(fields[i]))
return i;
return -1;
|
public int | getPersistenceType()Get the persistence type of this field element.
return getFieldImpl().getPersistenceType();
|
public boolean | isKey()Determines whether this field element is a key field or not. return getFieldImpl().isKey();
|
public boolean | isReadSensitive()Determines whether this field element is read sensitive or not.
This value is only used if getPersistenceType returns
DERIVED
return ((getPersistenceType() == DERIVED) &&
getFieldImpl().isReadSensitive());
|
public boolean | isWriteSensitive()Determines whether this field element is write sensitive or not.
This value is only used if getPersistenceType returns
DERIVED
return ((getPersistenceType() == DERIVED) &&
getFieldImpl().isWriteSensitive());
|
public void | setKey(boolean flag)Set whether this field element is a key field or not.
getFieldImpl().setKey(flag);
|
public void | setPersistenceType(int type)Set the persistence type of this field element.
getFieldImpl().setPersistenceType(type);
|
public void | setReadSensitive(boolean flag)Set whether this field element is read sensitive or not.
getFieldImpl().setReadSensitive(flag);
|
public void | setWriteSensitive(boolean flag)Set whether this field element is write sensitive or not.
getFieldImpl().setWriteSensitive(flag);
|