|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.util.TNFixedData
com.wm.app.tn.profile.ProfileFieldMetaData
public class ProfileFieldMetaData
A ProfileFieldMetaData object holds information about a profile field.
The metadata also defines certain constrains about the field, such as whether it is required, it's set of valid values and it's default value.
ExtendedProfileField
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData |
---|
com.wm.app.tn.util.TNFixedData.TreeCursor |
Field Summary | |
---|---|
static java.lang.String |
VALUE_SEP
Separates the values in a list of valid values for an extended field. |
Constructor Summary | |
---|---|
ProfileFieldMetaData()
Creates an empty ProfileFieldMetaData. |
Method Summary | |
---|---|
int |
compare(com.wm.util.sort.Sortable compareTo,
boolean reverse,
int column)
Takes another ProfileFieldMetaData and returns -1 if it is less than this ProfileFieldMetaData 0 if it is equal to this ProfileFieldMetaData 1 if it is greater than this ProfileFieldMetaData |
static com.wm.data.IData |
create()
Creates a ProfileFieldMetaData. |
void |
delete()
Marks the field as deleted. |
java.lang.String |
getColumn()
|
java.lang.String |
getDatatype()
|
java.lang.String |
getDefaultValue()
|
java.lang.String |
getDescription()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getFieldID()
|
java.lang.String |
getFieldName()
|
int |
getGroupID()
|
java.lang.String |
getGroupName()
Internal use only; may be null all the time except during export operation |
int |
getMaxLength()
|
java.lang.String |
getTable()
|
java.util.Enumeration |
getValidValues()
|
java.lang.String |
getValidValueString()
|
boolean |
isDeleted()
Is this field deleted? |
boolean |
isDisplayable()
Is this field displayed in the dictionary? |
boolean |
isExtended()
Is this an extended field? |
boolean |
isRegistration()
Is this a registration field? |
boolean |
isRequired()
Is this a required field? |
boolean |
isStandard()
Is this a standard field? |
boolean |
isValid(java.lang.StringBuffer err)
Determines if the ProfileFieldMetaData is valid. |
void |
setColumn(java.lang.String column)
for internal use only |
void |
setDatatype(java.lang.String datatype)
Sets the extended field's data type. |
void |
setDefaultValue(java.lang.String defVal)
Sets the extended field's default value. |
void |
setDescription(java.lang.String desc)
Sets the field's description. |
void |
setDisplayable(boolean disp)
Sets whether this field is displayable in the profile dictionary. |
void |
setExtended(boolean ext)
for internal use only |
void |
setFieldID(java.lang.String id)
for internal use only |
void |
setFieldName(java.lang.String name)
Sets the field's name. |
void |
setGroupID(short group)
Sets the extended field's group id. |
void |
setGroupName(java.lang.String groupName)
Internal Use only |
void |
setMaxLength(int len)
Sets this field's maximum length. |
void |
setRegistration(boolean reg)
Sets whether this field is to be used for registration (profile exchange). |
void |
setRequired(boolean reqd)
Sets whether this field is required. |
void |
setTable(java.lang.String table)
for internal use only |
void |
setValidValues(java.lang.String validVals)
Sets the extended field's set of valid values. |
void |
setValidValues(java.util.Vector validVals)
Sets the extended field's set of valid values. |
java.lang.String |
toString()
Default toString implementation returns class name followed by contents. |
void |
undelete()
Marks the field as undeleted. |
Methods inherited from class com.wm.app.tn.util.TNFixedData |
---|
clone, dataSize, get, get, getCursor, getHashCursor, getIndexCursor, getKey, getSharedCursor, getTreeCursor, indexOf, merge, set, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VALUE_SEP
Constructor Detail |
---|
public ProfileFieldMetaData()
Method Detail |
---|
public static com.wm.data.IData create()
public final void setRegistration(boolean reg)
public final void setRequired(boolean reqd)
public final void setDisplayable(boolean disp)
public final void setMaxLength(int len)
public final void setDescription(java.lang.String desc)
public final void setGroupID(short group)
java.lang.IllegalArgumentException
- if group is not recognized.public final void setFieldID(java.lang.String id)
public final void setExtended(boolean ext)
public final void setTable(java.lang.String table) throws ProfileStoreException
ProfileStoreException
public final void setColumn(java.lang.String column) throws ProfileStoreException
ProfileStoreException
public final void delete() throws ProfileStoreException
ProfileStoreException
- if this is a standard field.public final void undelete() throws ProfileStoreException
ProfileStoreException
- if this is a standard field.public final void setFieldName(java.lang.String name)
public final void setDatatype(java.lang.String datatype) throws ProfileStoreException
ProfileStoreException
- if this is a standard field.
java.lang.IllegalArgumentException
- if dataype is not recognized.public final void setDefaultValue(java.lang.String defVal) throws ProfileStoreException
ProfileStoreException
- if this is a standard field.public final void setValidValues(java.lang.String validVals) throws ProfileStoreException
validVals
- a list of String values, separated by the defined value separator.
ProfileStoreException
- if this is a standard field.public final void setValidValues(java.util.Vector validVals) throws ProfileStoreException
validVals
- a Vector of Strings - the valid values
ProfileStoreException
- if this is a standard field.public final void setGroupName(java.lang.String groupName)
public final java.lang.String getFieldID()
public final int getGroupID()
public final java.lang.String getDisplayName()
public final java.lang.String getFieldName()
public final int getMaxLength()
public final boolean isExtended()
public final boolean isStandard()
public final boolean isRequired()
public final boolean isRegistration()
public final boolean isDisplayable()
public final boolean isDeleted()
public final java.lang.String getTable()
public final java.lang.String getColumn()
public final java.lang.String getDatatype()
public final java.lang.String getDefaultValue()
public final java.lang.String getValidValueString()
public final java.util.Enumeration getValidValues()
public final java.lang.String getDescription()
public final java.lang.String getGroupName()
public final boolean isValid(java.lang.StringBuffer err)
err
- A StringBuffer that will contain error messages if the metadata is not valid. If valid, the
StringBuffer will be unchanged.
true
if the metadata is valid and can be saved, otherwise false
.public final int compare(com.wm.util.sort.Sortable compareTo, boolean reverse, int column)
compare
in interface com.wm.util.sort.Sortable
compareTo
- the ProfileFieldMetaData to compare againstreverse
- if true, return multiplicative inversecolumn
- IGNORED BY THIS IMPLEMENTATIONpublic final java.lang.String toString()
com.wm.app.tn.util.TNFixedData
toString
in class com.wm.app.tn.util.TNFixedData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |