#include <oof4.h>
Inheritance diagram for dbNumericField:


Provides extra search and bases for common numeric operators.
Public Types | |
| enum | FieldIsStandaloneT { eFieldIsStandalone } |
| enum | { kKeyLengthAutoCalculated = USHRT_MAX } |
Public Member Functions | |
| virtual unsigned long | fieldMinWrapWidth () const |
| const oofString & | formatMask () const |
| void | formatMask (const char *) |
| virtual void | clear () |
| dbQueryBinary | operator== (long) const |
| dbQueryBinary | operator< (long) const |
| dbQueryBinary | operator<= (long) const |
| dbQueryBinary | operator>= (long) const |
| dbQueryBinary | operator> (long) const |
| dbQueryBinary | operator!= (long) const |
| dbQueryBinary | equal (long) const |
| dbQueryBinary | lessThan (long) const |
| dbQueryBinary | lessThanOrEqual (long) const |
| dbQueryBinary | greaterThanOrEqual (long) const |
| dbQueryBinary | greaterThan (long) const |
| dbQueryBinary | notEqual (long) const |
| dbQueryTrinary | between (long, long) const |
| dbQueryTrinary | outside (long, long) const |
| void | operator+= (long) |
| void | operator-= (long) |
| void | operator *= (long) |
| void | operator/= (long) |
| void | operator+= (double) |
| void | operator-= (double) |
| void | operator *= (double) |
| void | operator/= (double) |
| virtual dbQueryLiteral * | makeQueryLiteral (long) const |
| virtual dbField * | clone () const=0 |
| virtual void | postCloneTableCleanup () |
| virtual oofString | name () const |
| void | index (const OOF_IndexOptions=kIndexed) |
| void | indexPartialKeyLen (unsigned short) |
| void | setName (const char *name) |
| bool | hasDefaultCalculator () const |
| void | useCalculatorOnlyForDefaults () |
| bool | storesCalculatedValues () const |
| void | storeCalculatedValues () |
| bool | usingCalculator () const |
| const char * | tableName () const |
| bool | fieldIsStandalone () const |
| virtual bool | fieldIsSameTypeAs (const dbField *) const |
| virtual void | describe (std::ostream &) const |
| Provide human-readable information about object. | |
| virtual OOF_fieldTypes | fieldType () const=0 |
| virtual OOF_fieldTypes | nativeType () const |
| virtual unsigned long | fieldStorageLen () const=0 |
| virtual unsigned long | fieldUsualWrapWidth () const |
| dbTable * | fieldTable () const |
| unsigned long | fieldDataLen () const |
| virtual bool | isEmpty () const |
| bool | isDirty () const |
| fieldNumT | fieldNumber () const |
| virtual const oofString & | fieldName () const |
| OOF_IndexOptions | fieldIndexOptions () const |
| bool | fieldIndexIgnoresNulls () const |
| bool | fieldIndexIsCompressLeading () const |
| bool | fieldIndexIsCompressPadding () const |
| virtual bool | fieldIsIndexed () const |
| bool | fieldIsPartiallyIndexed () const |
| virtual bool | fieldIsKeywordIndexed () const |
| virtual bool | fieldIsUniqueIndexed () const |
| unsigned short | fieldNumIndexes () const |
| unsigned short | fieldKeyLen () const |
| bool | caseSensitive () const |
| virtual bool | fieldIsBlob () const |
| virtual bool | fieldIsBinary () const |
| virtual bool | fieldIsVirtual () const |
| dbField * | equivalentFieldFromTable (dbTable *) const |
| bool | valueIsDuplicate () const |
| virtual dbQueryClause * | valueAsQueryLiteral () const |
| bool | fieldIsJoinKey () const |
| Checks if any relationships in field's table use field as join key. | |
| virtual void | setString (const char *) |
| virtual void | setNumber (long) |
| virtual oofString | copyString () const |
| virtual void | getChars (char *ioBuff, unsigned long &outLen) const |
| virtual const char * | asChars () const |
| virtual void | extract (std::ostream &) const |
| virtual bool | insert (std::istream &, char fieldSep, char recSep) |
| virtual void | copyValueFrom (const dbField *) |
| virtual void | copyValueIfDifferent (const dbField *) |
| virtual bool | validateContents () |
| virtual oofWordParser * | words () const |
| void | saveDefaultCalculatedValue () |
| void | saveStoredCalculatedValue () |
| virtual void | generateTestData (bool, unsigned long) |
| bool | hidden () const |
| void | hide (bool hideIt=true) |
Static Public Member Functions | |
| TOKEN | get_token (const char **s, const OOF_TOKENTYPE *m, unsigned int len) |
| void | parseMask (const char *s, TOKEN *r, const OOF_TOKENTYPE *map, unsigned int len) |
Public Attributes | |
| OOF_String | mFormatMask |
Protected Member Functions | |
| dbNumericField (const OOF_IndexOptions) | |
| dbNumericField (const char *fieldName=0) | |
| dbNumericField (const char *fieldName, const OOF_IndexOptions) | |
| dbNumericField (dbField::FieldIsStandaloneT k) | |
| virtual | ~dbNumericField () |
| void | CalculateWith (dbCalculator *adoptedCalculator, bool useOnlyForDefaults) |
| virtual void | CopyCalculatedValueToBuffer () |
Static Protected Member Functions | |
| void | CheckRange (double d, long minL, long maxL, const char *file, int line) |
| void | CheckRange (long l, long minL, long maxL, const char *file, int line) |
| void | CheckRange (unsigned long l, unsigned long max, const char *file, int line) |
Protected Attributes | |
| OOF_tableBackend * | mBackend |
| dbTable * | mTable |
| fieldNumT | mFieldNumber |
| dbCalculator * | mCalculator |
| bool | mHidden |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
|
Reimplemented from dbField. |
|
|
Implemented in dbChar, dbBLOB, dbText, dbFixedBinary, dbCompoundField, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, dbDateTime, oofChar, oofText, oofBLOB, oofDate, oofLong, oofUlong, oofShort, oofUshort, oofReal, oofBool, oofTime, oofDateTime, and dbRelRefBase. |
|
|
Reimplemented in dbChar, dbText, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, and dbDateTime. |
|
|
|
|
|
Reimplemented in dbChar, dbText, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, and dbDateTime. |
|
|
Reimplemented in dbChar, dbText, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, and dbDateTime. |
|
|
Provide human-readable information about object. Overriden to provide much more detail particularly for dbTable::describe() which provides full schema. Reimplemented from OOF_PublicBase. Reimplemented in dbChar, dbFixedBinary, and dbRelRefBase. |
|
|
|
|
|
|
|
|
Reimplemented in dbChar, dbBLOB, dbText, dbFixedBinary, dbCompoundField, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, dbDateTime, and dbRelRefBase. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in dbBLOB. |
|
|
|
|
|
Checks if any relationships in field's table use field as join key. Relatively expensive because it's iterating over all fields but all the function calls below are inline queries so will compile down well in release mode. WARNING Doesn't fan out - if any other tables use this field as a join key then they are doing really weird stuff and the application programmer must add their own checks. This feature originally added to support OOF_repEditSetupVisitor::VisitViewBandBody |
|
|
|
|
|
|
|
|
Reimplemented in dbChar, dbFixedBinary, dbCompoundField, and dbRelRefBase. |
|
|
|
|
|
|
|
|
Reimplemented in dbCompoundField, and dbRelRefBase. |
|
|
|
|
|
Reimplemented from dbField. |
|
|
Reimplemented in dbRelRefBase. |
|
|
|
|
|
|
|
|
Implemented in dbChar, dbBLOB, dbFixedBinary, dbCompoundField, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, dbDateTime, and dbRelRefBase. |
|
|
|
|
|
Implemented in dbChar, dbBLOB, dbText, dbFixedBinary, dbCompoundField, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, dbDateTime, and dbRelRefBase. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Reimplemented in dbChar, dbBLOB, dbText, dbFixedBinary, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, and dbDateTime. |
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Reimplemented in dbChar, dbText, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, and dbDateTime. |
|
|
Reimplemented in dbBLOB. |
|
|
Reimplemented in dbChar, dbBLOB, dbDate, and dbDateTime. |
|
|
|
|
|
|
|
|
Reimplemented in dbShort, dbUshort, dbBool, dbUlong, and dbReal. |
|
|
Reimplemented from OOF_PublicBase. |
|
|
Reimplemented in dbText, dbBool, dbDate, dbTime, dbDateTime, and dbRelRefBase. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in dbDate, dbTime, and dbDateTime. |
|
|
|
|
|
Reimplemented in dbDate, dbTime, and dbDateTime. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
Reimplemented in dbRelRefBase. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in dbChar, dbText, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, and dbDateTime. |
|
|
Reimplemented in dbChar, dbText, dbFixedBinary, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, and dbDateTime. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in dbChar, dbText, dbShort, dbUshort, dbBool, dbLong, dbUlong, dbReal, dbDate, dbTime, and dbDateTime. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.5