Methods Summary |
---|
public int | getPersistenceType()Get the persistence type of this field element. return _persistenceType;
|
public boolean | isKey()Determines whether this field element is a key field or not. return _isKey;
|
public boolean | isReadSensitive()Determines whether this field element is read sensitive or not.
This value is only used if getPersistenceType returns
DERIVED
return ((PersistenceFieldElement.DERIVED == getPersistenceType()) ?
((_derivedModifier & READ_SENSITIVE) != 0) : false);
|
public boolean | isWriteSensitive()Determines whether this field element is write sensitive or not.
This value is only used if getPersistenceType returns
DERIVED
return ((PersistenceFieldElement.DERIVED == getPersistenceType()) ?
((_derivedModifier & WRITE_SENSITIVE) != 0) : false);
|
public void | setKey(boolean flag)Set whether this field element is a key field or not.
Boolean old = JavaTypeHelper.valueOf(isKey());
Boolean newFlag = JavaTypeHelper.valueOf(flag);
try
{
fireVetoableChange(PROP_KEY_FIELD, old, newFlag);
_isKey = flag;
firePropertyChange(PROP_KEY_FIELD, old, newFlag);
}
catch (PropertyVetoException e)
{
throw new ModelVetoException(e);
}
|
public void | setPersistenceType(int type)Set the persistence type of this field element.
Integer old = new Integer(getPersistenceType());
Integer newType = new Integer(type);
try
{
fireVetoableChange(PROP_PERSISTENCE, old, newType);
_persistenceType = type;
firePropertyChange(PROP_PERSISTENCE, old, newType);
}
catch (PropertyVetoException e)
{
throw new ModelVetoException(e);
}
|
public void | setReadSensitive(boolean flag)Set whether this field element is read sensitive or not.
Boolean old = JavaTypeHelper.valueOf(isReadSensitive());
Boolean newFlag = JavaTypeHelper.valueOf(flag);
try
{
fireVetoableChange(PROP_SENSITIVITY, old, newFlag);
if (flag)
_derivedModifier |= READ_SENSITIVE;
else
_derivedModifier &= READ_SENSITIVE;
firePropertyChange(PROP_SENSITIVITY, old, newFlag);
}
catch (PropertyVetoException e)
{
throw new ModelVetoException(e);
}
|
public void | setWriteSensitive(boolean flag)Set whether this field element is write sensitive or not.
Boolean old = JavaTypeHelper.valueOf(isWriteSensitive());
Boolean newFlag = JavaTypeHelper.valueOf(flag);
try
{
fireVetoableChange(PROP_SENSITIVITY, old, newFlag);
if (flag)
_derivedModifier |= WRITE_SENSITIVE;
else
_derivedModifier &= WRITE_SENSITIVE;
firePropertyChange(PROP_SENSITIVITY, old, newFlag);
}
catch (PropertyVetoException e)
{
throw new ModelVetoException(e);
}
|