CuStarTblColumn::CuStarTblColumn(LPCTSTR name, LPCTSTR type, BOOL bNullable, BOOL bWithDefault, LPCTSTR ldbColName) : CuMultFlag(name, FALSE) { InitialAllocateFlags(NBTBLCOLCOLUMNS); m_csType = type; m_csLdbName = ldbColName; // Immediate update of several flags if (bNullable) m_aFlags[IndexFromFlagType(FLAG_COL_NULLABLE)] = TRUE; if (bWithDefault) m_aFlags[IndexFromFlagType(FLAG_COL_WITHDEFAULT)] = TRUE; }
CuAltLoc::CuAltLoc(LPCTSTR name, BOOL bSpecialItem, int grantType) : CuGrantee(name, bSpecialItem) { InitialAllocateFlags(NBALTLOC); if (!bSpecialItem) { ASSERT (grantType); m_aFlags[IndexFromFlagType(grantType)] = TRUE; } }
CuSeqGrantee::CuSeqGrantee(LPCTSTR name, BOOL bSpecialItem, int grantType) : CuGrantee(name, bSpecialItem) { InitialAllocateFlags(NBPROCGRANTEES); if (!bSpecialItem) { ASSERT (grantType); m_aFlags[IndexFromFlagType(grantType)] = TRUE; } }
CuTblColumn::CuTblColumn(LPCTSTR name, LPCTSTR type, int primKeyRank, BOOL bNullable, BOOL bWithDefault, LPCTSTR defSpec,LPCTSTR ColComment) : CuMultFlag(name, FALSE) { InitialAllocateFlags(NBTBLCOLCOLUMNS); m_csType = type; m_primKeyRank = primKeyRank; if (bWithDefault) { ASSERT(defSpec); m_csDefSpec = defSpec; } else m_csDefSpec = ""; m_csColumnComment = ColComment; // Immediate update of several flags if (bNullable) m_aFlags[IndexFromFlagType(FLAG_COL_NULLABLE)] = TRUE; if (bWithDefault) m_aFlags[IndexFromFlagType(FLAG_COL_WITHDEFAULT)] = TRUE; }