|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface will eventually have the same public functionality as
DBField. It is just used as "Interface"e; glue right
now. It will be fleshed out significantly in future versions.
| Method Summary | |
boolean |
allowsNull()
Does this field allow nulls? |
Set |
getAllAttributes()
Retrieve a list of all attribute names in the field |
Object |
getAttribute(String attribName)
Returns an attribute keyed by name. |
Iterator |
getAttributesIterator()
Returns a copy of all attributes associated with this field. |
String |
getDefaultValue()
Retrieve the default value of the field. |
String |
getDescription()
Return the description of this field. |
int |
getLengthInt()
Return the length of this field as an integer |
String |
getLookupDefinition()
Future versions of Expresso will rely more on objects that are shown as unique by a combination of their classname and their definition names. |
String |
getLookupField()
When you get a lookup object, to perform a complete mapping between the two, you need to know what field name in the remote object maps to this field. |
String |
getLookupObject()
Return the value for the lookupObject for this field |
org.apache.oro.text.regex.Pattern |
getMask()
Get the compiled regular expression for this field. |
String |
getName()
Return the name of the field |
int |
getPrecision()
Return the precision of this field as an integer |
String |
getTypeString()
Return the database type of the field as specified with a string in the DBObject itself |
boolean |
isAutoIncremented()
Is this field an auto-incremented field? |
boolean |
isBinaryObjectType()
Is it a BLOB? |
boolean |
isBooleanType()
is the field a boolean? |
boolean |
isCharacterLongObjectType()
Is this field fall into the classification of a long character object? |
boolean |
isDateOnlyType()
is the field a date or time field? |
boolean |
isDateTimeType()
is the field a date or time field? |
boolean |
isDateType()
is the field a date or time field? |
boolean |
isEncrypted()
Return the field's hashed status |
boolean |
isFloatingPointType()
|
boolean |
isHashed()
Return the field's hashed status |
boolean |
isKey()
Is this field a key field? |
boolean |
isLongBinaryType()
Is it a BLOB? |
boolean |
isLongCharacterType()
Is it a BLOB? |
boolean |
isLongObjectType()
Does this field fall into a class of BLOB object data types? |
boolean |
isMasked()
Return boolean if the field has a mask set |
boolean |
isMultiValued()
Is this field multi-valued? |
boolean |
isNumericType()
is the field a numeric field? |
boolean |
isQuotedTextType()
is the field a quoted text field? |
boolean |
isReadOnly()
Return the field's read-only |
boolean |
isSecret()
Return the field's secret status |
boolean |
isTimeType()
is the field a date or time field? |
boolean |
isVirtual()
Is this field a virtual field? |
void |
removeAttribute(String attribName)
Removes an attribute from this Field object. |
void |
setAttribute(String attribName,
Object attribValue)
Sets an attribute for this particular field. |
void |
setDefaultValue(String newValue)
Sets the new default value as a string for the field. |
void |
setEncrypted(boolean newValue)
Set the field's encrypted status |
void |
setHashed(boolean newValue)
Set the field's hashed status. |
void |
setKey(boolean newKey)
Set this field as a key field (or not) |
void |
setLookupObject(String objectName)
Set the value for the "lookup object" for this field. |
void |
setMask(org.apache.oro.text.regex.Pattern newMask)
Set a regular expression "mask" for this field that specifies it's valid values. |
void |
setMultiValued(boolean newMulti)
Set this field to be "multi-valued". |
void |
setReadOnly()
Set the field as a read-only field. |
void |
setSecret()
Set the field as a 'secret' field. |
void |
setVirtual(boolean newVirtual)
Set this field as a virtual field. |
| Method Detail |
public boolean allowsNull()
public String getDefaultValue()
public String getDescription()
public int getLengthInt()
public String getLookupObject()
public String getLookupField()
IllegalArgumentException - if the field name does not existpublic String getLookupDefinition()
public String getName()
public int getPrecision()
public String getTypeString()
public boolean isKey()
public boolean isMultiValued()
public boolean isReadOnly()
public boolean isBooleanType()
public boolean isCharacterLongObjectType()
public boolean isLongObjectType()
public boolean isBinaryObjectType()
public boolean isLongBinaryType()
public boolean isLongCharacterType()
public boolean isQuotedTextType()
public boolean isNumericType()
public boolean isDateType()
public boolean isDateOnlyType()
public boolean isFloatingPointType()
public boolean isTimeType()
public boolean isDateTimeType()
public boolean isSecret()
public boolean isHashed()
public boolean isEncrypted()
public boolean isVirtual()
public boolean isMasked()
public void setKey(boolean newKey)
newKey - Is this field a key?public void setLookupObject(String objectName)
objectName - the classname of the lookup objectpublic void setMultiValued(boolean newMulti)
newMulti - True if the field is multi-valued, false if it is notpublic void setHashed(boolean newValue)
newValue - true if you want this field hashed.public void setEncrypted(boolean newValue)
newValue - new value if you want an encrypted fieldpublic void setDefaultValue(String newValue)
newValue - Stringpublic void setReadOnly()
public boolean isAutoIncremented()
public void setSecret()
public void setVirtual(boolean newVirtual)
newVirtual - True to make this object virtual, false if it is notpublic void setMask(org.apache.oro.text.regex.Pattern newMask)
newMask - The compiled regular expression maskpublic org.apache.oro.text.regex.Pattern getMask()
public void removeAttribute(String attribName)
attribName - The name of the attribute to remove from this field.
public void setAttribute(String attribName,
Object attribValue)
attribName - the name of the attributeattribValue - the value of the attribute by this namepublic Object getAttribute(String attribName)
attribName - the name of the attribute to get
public Set getAllAttributes()
public Iterator getAttributesIterator()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||