コード例 #1
0
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;
}
コード例 #2
0
CuAltLoc::CuAltLoc(LPCTSTR name, BOOL bSpecialItem, int grantType)
: CuGrantee(name, bSpecialItem)
{
  InitialAllocateFlags(NBALTLOC);

  if (!bSpecialItem) {
    ASSERT (grantType);
    m_aFlags[IndexFromFlagType(grantType)] = TRUE;
  }
}
コード例 #3
0
CuSeqGrantee::CuSeqGrantee(LPCTSTR name, BOOL bSpecialItem, int grantType)
: CuGrantee(name, bSpecialItem)
{
  InitialAllocateFlags(NBPROCGRANTEES);

  if (!bSpecialItem) {
    ASSERT (grantType);
    m_aFlags[IndexFromFlagType(grantType)] = TRUE;
  }
}
コード例 #4
0
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;
}