From 886ee90ca1047fdef2c6bfd52ea28ffc0345aca4 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 28 Oct 2010 20:18:32 +0000 Subject: Tidy up SPTableStructure including moving all the private field type validation methods to their own class, SPTableFieldValidation. --- Source/SPTableStructure.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/SPTableStructure.h') diff --git a/Source/SPTableStructure.h b/Source/SPTableStructure.h index 68225fab..1ae392f4 100644 --- a/Source/SPTableStructure.h +++ b/Source/SPTableStructure.h @@ -25,6 +25,8 @@ #import +@class SPTableFieldValidation; + @interface SPTableStructure : NSObject { IBOutlet id tablesListInstance; @@ -60,6 +62,8 @@ MCPConnection *mySQLConnection; MCPResult *tableSourceResult; MCPResult *indexResult; + + SPTableFieldValidation *fieldValidation; NSString *selectedTable; NSMutableArray *tableFields; @@ -100,7 +104,7 @@ - (BOOL)addRowToDB; - (void)setAutoIncrementTo:(NSString*)valueAsString; -// Getter methods +// Accessors - (NSString *)defaultValueForField:(NSString *)field; - (NSArray *)fieldNames; - (NSDictionary *)enumFields; -- cgit v1.2.3