MFC
Class CDaoTableDef
CObject
|
+--CDaoTableDef
in AFXDAO.H
- class CDaoTableDef
- extends CObject
CDaoTableDef - a DAO TableDef
|
Method Summary |
virtual void |
Append()
|
BOOL |
CanUpdate()
|
virtual void |
Close()
|
virtual void |
Create( LPCTSTR lpszName, long lAttributes = 0, LPCTSTR lpszSrcTable = NULL, LPCTSTR lpszConnect = NULL )
|
void |
CreateField( LPCTSTR lpszName, short nType, long lSize, long lAttributes = 0 )
|
void |
CreateField( CDaoFieldInfo& fieldinfo )
|
void |
CreateIndex( CDaoIndexInfo& indexinfo )
|
void |
DeleteField( int nIndex )
|
void |
DeleteField( LPCTSTR lpszName )
|
void |
DeleteIndex( LPCTSTR lpszName )
|
void |
DeleteIndex( int nIndex )
|
long |
GetAttributes()
|
CString |
GetConnect()
|
COleDateTime |
GetDateCreated()
|
COleDateTime |
GetDateLastUpdated()
|
short |
GetFieldCount()
|
void |
GetFieldInfo( int nIndex, CDaoFieldInfo& fieldinfo, DWORD dwInfoOptions = 0x00000001 )
|
void |
GetFieldInfo( LPCTSTR lpszName, CDaoFieldInfo& fieldinfo, DWORD dwInfoOptions = 0x00000001 )
|
short |
GetIndexCount()
|
void |
GetIndexInfo( int nIndex, CDaoIndexInfo& indexinfo, DWORD dwInfoOptions = 0x00000001 )
|
void |
GetIndexInfo( LPCTSTR lpszName, CDaoIndexInfo& indexinfo, DWORD dwInfoOptions = 0x00000001 )
|
CString |
GetName()
|
long |
GetRecordCount()
|
CString |
GetSourceTableName()
|
CString |
GetValidationRule()
|
CString |
GetValidationText()
|
protected void |
InitFieldsCollection()
|
protected void |
InitIndexesCollection()
|
BOOL |
IsOpen() const
|
virtual void |
Open( LPCTSTR lpszName )
|
void |
RefreshLink()
|
void |
SetAttributes( long lAttributes )
|
void |
SetConnect( LPCTSTR lpszConnect )
|
void |
SetName( LPCTSTR lpszName )
|
void |
SetSourceTableName( LPCTSTR lpszSrcTableName )
|
void |
SetValidationRule( LPCTSTR lpszValidationRule )
|
void |
SetValidationText( LPCTSTR lpszValidationText )
|
protected virtual void |
ThrowDaoException( int nError = 0 )
|
m_bNew
protected BOOL m_bNew;
m_bOpen
protected BOOL m_bOpen;
m_pDAOFields
public DAOFields* m_pDAOFields;
m_pDAOIndexes
public DAOIndexes* m_pDAOIndexes;
m_pDAOTableDef
public DAOTableDef* m_pDAOTableDef;
m_pDatabase
public CDaoDatabase* m_pDatabase;
CDaoTableDef
public CDaoTableDef( CDaoDatabase* pDatabase );
~CDaoTableDef
public ~CDaoTableDef();
Append
public virtual void Append();
CanUpdate
public BOOL CanUpdate();
Close
public virtual void Close();
Create
public virtual void Create( LPCTSTR lpszName, long lAttributes = 0, LPCTSTR lpszSrcTable = NULL, LPCTSTR lpszConnect = NULL );
CreateField
public void CreateField( LPCTSTR lpszName, short nType, long lSize, long lAttributes = 0 );
CreateField
public void CreateField( CDaoFieldInfo& fieldinfo );
CreateIndex
public void CreateIndex( CDaoIndexInfo& indexinfo );
DeleteField
public void DeleteField( int nIndex );
DeleteField
public void DeleteField( LPCTSTR lpszName );
DeleteIndex
public void DeleteIndex( LPCTSTR lpszName );
DeleteIndex
public void DeleteIndex( int nIndex );
GetAttributes
public long GetAttributes();
GetConnect
public CString GetConnect();
GetDateCreated
public COleDateTime GetDateCreated();
GetDateLastUpdated
public COleDateTime GetDateLastUpdated();
GetFieldCount
public short GetFieldCount();
GetFieldInfo
public void GetFieldInfo( int nIndex, CDaoFieldInfo& fieldinfo, DWORD dwInfoOptions = 0x00000001 );
GetFieldInfo
public void GetFieldInfo( LPCTSTR lpszName, CDaoFieldInfo& fieldinfo, DWORD dwInfoOptions = 0x00000001 );
GetIndexCount
public short GetIndexCount();
GetIndexInfo
public void GetIndexInfo( int nIndex, CDaoIndexInfo& indexinfo, DWORD dwInfoOptions = 0x00000001 );
GetIndexInfo
public void GetIndexInfo( LPCTSTR lpszName, CDaoIndexInfo& indexinfo, DWORD dwInfoOptions = 0x00000001 );
GetName
public CString GetName();
GetRecordCount
public long GetRecordCount();
GetSourceTableName
public CString GetSourceTableName();
GetValidationRule
public CString GetValidationRule();
GetValidationText
public CString GetValidationText();
InitFieldsCollection
protected void InitFieldsCollection();
InitIndexesCollection
protected void InitIndexesCollection();
IsOpen
public BOOL IsOpen() const;
Open
public virtual void Open( LPCTSTR lpszName );
RefreshLink
public void RefreshLink();
SetAttributes
public void SetAttributes( long lAttributes );
SetConnect
public void SetConnect( LPCTSTR lpszConnect );
SetName
public void SetName( LPCTSTR lpszName );
SetSourceTableName
public void SetSourceTableName( LPCTSTR lpszSrcTableName );
SetValidationRule
public void SetValidationRule( LPCTSTR lpszValidationRule );
SetValidationText
public void SetValidationText( LPCTSTR lpszValidationText );
ThrowDaoException
protected virtual void ThrowDaoException( int nError = 0 );