1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
/* -*-objc-*-
EOSchemaSynchronization.m
Copyright (C) 2007 Free Software Foundation, Inc.
Date: July 2007
This file is part of the GNUstep Database Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <Foundation/Foundation.h>
#include "EOSchemaSynchronization.h"
NSString *EOSchemaSynchronizationForeignKeyConstraintsKey = @"EOSchemaSynchronizationForeignKeyConstraintsKey";
NSString *EOSchemaSynchronizationPrimaryKeyConstraintsKey = @"EOSchemaSynchronizationPrimaryKeyConstraintsKey";
NSString *EOSchemaSynchronizationPrimaryKeySupportKey = @"EOSchemaSynchronizationPrimaryKeySupportKey";
NSString *EOAllowsNullKey = @"allowsNull";
NSString *EOColumnNameKey = @"columnName";
NSString *EOExternalNameKey = @"externalName";
NSString *EOExternalTypeKey = @"externalType";
NSString *EONameKey = @"name";
NSString *EOPrecisionKey = @"precision";
NSString *EORelationshipsKey = @"relationships";
NSString *EOScaleKey = @"scale";
NSString *EOWidthKey = @"width";
@implementation EOAdaptor (EOSchemaSynchronization)
- (NSDictionary *)objectStoreChangesFromAttribute:(EOAttribute *)schemaAttribute
toAttribute:(EOAttribute *)modelAttribute
{
return nil;
}
@end
@implementation EOAdaptorChannel (EOSchemaSynchronization)
- (void)beginSchemaSynchronization
{
}
- (void)endSchemaSynchronization
{
}
@end
@implementation EOSQLExpression (EOSchemaSynchronization)
+ (BOOL)isCaseSensitive
{
return NO;
}
+ (BOOL)isColumnType:(id <EOColumnTypes>)columnType1
equivalentToColumnType:(id <EOColumnTypes>)columnType2
options:(NSDictionary *)options
{
return NO;
}
+ (NSArray *)logicalErrorsInChangeDictionary:(NSDictionary *)changes
forModel:(EOModel *)model
options:(NSDictionary *)options
{
return nil;
}
+ (NSString *)phraseCastingColumnNamed:(NSString *)columnName
fromType:(id <EOColumnTypes>)type
toType:(id <EOColumnTypes>)castType
options:(NSDictionary *)options
{
return nil;
}
+ (id)schemaSynchronizationDelegate
{
return nil;
}
+ (void)setSchemaSynchronizationDelegate:(id)delegate
{
}
+ (NSArray *)statementsToCopyTableNamed:(NSString *)tableName
intoTableForEntityGroup:(NSArray *)entityGroup
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToModifyColumnNamed:(NSString *)columnName
inTableNamed:(NSString *)tableName
toNullRule:(BOOL)allowsNull
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToConvertColumnNamed:(NSString *)columnName
inTableNamed:(NSString *)tableName
fromType:(id <EOColumnTypes>)type
toType:(id <EOColumnTypes>)newType
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToDeleteColumnNamed:(NSString *)columnName
inTableNamed:(NSString *)tableName
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToInsertColumnForAttribute:(EOAttribute *)attribute
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToRenameColumnNamed:(NSString *)columnName
inTableNamed:(NSString *)tableName
newName:(NSString *)newName
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToDropForeignKeyConstraintsOnEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToDropPrimaryKeyConstraintsOnEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToDropPrimaryKeySupportForEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToImplementForeignKeyConstraintsOnEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToImplementPrimaryKeyConstraintsOnEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToImplementPrimaryKeySupportForEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToRenameTableNamed:(NSString *)tableName
newName:(NSString *)newName
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToUpdateObjectStoreForModel:(EOModel *)model
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (NSArray *)statementsToUpdateObjectStoreForEntityGroups:(NSArray *)entityGroups
withChangeDictionary:(NSDictionary *)changes
options:(NSDictionary *)options
{
return nil;
}
+ (BOOL)supportsDirectColumnNullRuleModification
{
return NO;
}
+ (BOOL)supportsDirectColumnCoercion
{
return NO;
}
+ (BOOL)supportsDirectColumnDeletion
{
return NO;
}
+ (BOOL)supportsDirectColumnInsertion
{
return NO;
}
+ (BOOL)supportsDirectColumnRenaming
{
return NO;
}
+ (BOOL)supportsSchemaSynchronization
{
return NO;
}
@end
|