Commit graph

654 commits

Author SHA1 Message Date
Manuel Guesdon
492886f6a3 * EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
Handle Custom class in newValueForNumberTypeLengthAttribute()


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37823 72102866-910b-0410-8b05-ffd578937521
2014-04-30 19:50:32 +00:00
Manuel Guesdon
04d6bb3aac * EOAccess/EOAdaptorChannel.m
call delegate -adaptorChannel:willPerformOperations:
	* EOAccess/EODatabaseContext.m:
	  propagate delegate to channel
	  fix objectsForSourceGlobalID:relationshipName:editingContext: 
	    isToManyToOne case
	* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m:
	  call delegate methods
	  adding assert to catch bad dates
	  use adaptor -primaryKeySequenceNameFormat
	* EOAccess/EOrelationship.m
	  implement -isParentRelationship
	  verify/clean -isReciprocalToRelationship:
	  implement -qualifierWithSourceRow:
	  small fix on -removeJoin:
	  use batch faulting when -setNumberOfToManyFaultsToBatchFetch:
	  improve -setIsMandatory
	  fix exception message -validateValue:
	  clean -_intermediateAttributes
	  clean -isMultiHop
	  implement -primaryKeyForTargetRowFromSourceDBSnapshot:
	  implement -_setSourceToDestinationKeyMap:
	  implement -qualifierForDBSnapshot:
	  fix/implement -isToManyToOne
	  fix -foreignKeyInDestination
	  implement -isPropagatesPrimaryKeyPossible
	  implement -qualifierOmittingAuxiliaryQualifierWithSourceRow
	  implement -auxiliaryQualifier
	  implement -setAuxiliaryQualifier:
	  clean -_sourceRowToForeignKeyMapping
	  add comment in -_sourceAttributeNames
	  fix -joinForAttribute:
	  fix -_flushCache
	  fix -_stringFromDeleteRule:
	  implement -_rightSideKeyMap
	  implement -_leftSideKeyMap
	  implement -_substitutionRelationshipForRow:
	  fix -isFlattened
	  remove _componentRelationships
	* EOAccess/EORelationship.h
	  remove _componentRelationships
	* EOAccess/EOEntityPriv.[hm]
	  fix _hiddenRelationships return type
	* EOAccess/Entity.m:
	  implement -_mapAttribute:toDestinationAttributeInLastComponentOfRelationshipPath:
	  implement -_inverseRelationshipPathForPath:
	  implement -_relationshipPathHasIdenticalKeys:
	  rewrite & fix -_keyMapForRelationshipPath:
	  rewrite & fix -_keyMapForIdenticalKeyRelationshipPath:
	  implement -valueForSQLExpression:
	  fix -validateObjectForDelete:
	  implement -qualifierForDBSnapshot:
	  fix -_addAttributesToFetchForRelationshipPath:atts:
	  fix -_parsePropertyName:	
	  implement -fetchSpecificationNamed:
	  implement +externalNameForInternalName:separatorString:useAllCaps:
	  implement +nameForExternalName:separatorString:initialCaps:
	  implement -stringByMarkingUpcaseTransitionsWithDelimiter
	  implement -snapshotKeyForAttributeName:
	  implement -_flattenedAttNameToSnapshotKeyMapping
	  fix -_attributesToFetch
	  fix -_attributesToSave
	* EOAccess/Entity.h:
	  fix _inverseRelationshipPathForPath:
	  fix -_relationshipPathHasIdenticalKey:
	  add _flgas.isSingleTableEntity
	* EOAccess/EntityPriv.h:
	  fix -qualifierForDBSnapshot:
	* EOAccess/EOPrivate.[hm]
	  add GDL2_EORelationshipClass
	  add GDL2_EOEntityClass
	* EOAccess/EOModel.m:
	  cache [EOEntity class]
	  add -propertyListForEntity:name: to enable subclassing
	* EOAccess/EOAttribute.m
	  fix -isFlattened
	  implement -targetAttribute
	  implement -relationshipPath
	  fix -_setDefinitionWithoutFlushingCaches:
	  fix -_normalizeDefinition:path:
	  fix -isReadOnly
	  implement -_setOverrideForKeyEnum:
	  implement -_hasAnyOverrides
	  implement -_isKeyEnumOverriden:
	  implement -_prototypeKeys
	  fix -initWithPropertyList:owner:
	  fix -readFormat
	  fix -writeFormat
	  fix -scale
	  fix -precision
	  fix -width
	  fix -allowsNull
	  fix -isReadOnly
	  fix -valueClassName
	  fix -externalType
	  fix -valueType
	  implement -_setValuesFromTargetAttribute
	* EOAccess/EOAttribute.h
	  declare -targetAttribute
	  declare -relationshipPath
	* EOAccess/EOAttributePriv.h
	  declare EOAttributeProtoOverrideBits enum
	  fix method arguments
	  declare  _setValuesFromTargetAttribute()
	* EOAccess/EOExpressionArray.h
	  declare -_isPropertyPath
	* EOAccess/EOExpressionArray.m
	  implement -_isPropertyPath



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37813 72102866-910b-0410-8b05-ffd578937521
2014-04-26 18:23:22 +00:00
Sebastian Reitenbach
97b6302f68 more fixes to format strings and direct isa usage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37738 72102866-910b-0410-8b05-ffd578937521
2014-03-09 08:17:55 +00:00
Sebastian Reitenbach
a3abfc976a * EOControl/EOCheapArray.m
* EOControl/EODebug.m
        * EOControl/EODetailDataSource.m
        * EOControl/EOEditingContext.m
        * EOControl/EOFaultHandler.m
        * EOControl/EOFault.m
        * EOControl/EOGenericRecord.m
        * EOControl/EOKeyComparisonQualifier.m
        * EOControl/EOKeyValueArchiver.m
        * EOControl/EOKeyValueCoding.m
        * EOControl/EOKeyValueQualifier.m
        * EOControl/EOMutableKnownKeyDictionary.m
        * EOControl/EOObjectStoreCoordinator.m
        * EOControl/EOPrivate.m
        * EOControl/EOQualifier.m
        * EOControl/EOSortOrdering.m
        fix format string warnings and do not directly access isa


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37737 72102866-910b-0410-8b05-ffd578937521
2014-03-09 07:24:33 +00:00
Sebastian Reitenbach
05e0d2b424 fixup changelog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37734 72102866-910b-0410-8b05-ffd578937521
2014-03-08 17:27:30 +00:00
Sebastian Reitenbach
701d16f5dc Double initialization is not useful, get rid of one
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37733 72102866-910b-0410-8b05-ffd578937521
2014-03-08 17:09:49 +00:00
Germán Arias
e963f9ca40 Add flag in Tools.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36988 72102866-910b-0410-8b05-ffd578937521
2013-08-19 05:43:27 +00:00
Sebastian Reitenbach
d46c6a8701 * Apps/EOModelEditor/CodeGenerator.m
EOModelEditor: generated ObjC files cause warnings with clang
          see bug 39328

OK david



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36967 72102866-910b-0410-8b05-ffd578937521
2013-08-12 15:25:04 +00:00
Sebastian Reitenbach
53b74901b8 * EOAccess/EOModel.m
separate out the connection dictionary in a separate
          file, bump file version
	patch form Graham Lee, see patch 8087 on savannah


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36746 72102866-910b-0410-8b05-ffd578937521
2013-06-23 07:19:31 +00:00
Sebastian Reitenbach
93a3ba53f5 * Apps/EOModelEditor/EOMEDocument.m
fix saving of new created models and make the Inspector
          work on OSX


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36745 72102866-910b-0410-8b05-ffd578937521
2013-06-23 07:13:47 +00:00
Sebastian Reitenbach
fcc9dffa36 * EOAdaptors/PostgreSQLAdaptor/config.mak.in
remove redundant libraries 
        * EOAccess/EOAdaptor.m
          make error message more comprehensible
	patch from Graham Lee, fixing building on
	on MAC OS X



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36742 72102866-910b-0410-8b05-ffd578937521
2013-06-22 15:29:09 +00:00
Sebastian Reitenbach
5b063e5b74 * EOModeler/EOModelExtensions.m
include the right header on OS X
        * EOModeler/GNUmakefile
        * EOAccess/GNUmakefile
          remove variable
	patch from Graham Lee, fixes of bug 39289
	


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36741 72102866-910b-0410-8b05-ffd578937521
2013-06-22 15:12:37 +00:00
Sebastian Reitenbach
c6645ecbc6 * EOControl/EOEditingContext.[h|m]
switch setLevelsOfUndo to NSUInteger



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36717 72102866-910b-0410-8b05-ffd578937521
2013-06-09 14:18:10 +00:00
Sebastian Reitenbach
291ec858bf * EOAccess/EOEntity.m
remove unused variable
        * EOControl/EOEditingContext.m
          use the object, instead of the EOGlobalID to get the entityName
        * EOControl/EOGenericRecord.m
        * EOInterface/EOColumnAssociation.[h|m]
        * EOInterface/EOTableViewAssociation.m
          some NS(U)Integer conversions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36677 72102866-910b-0410-8b05-ffd578937521
2013-05-29 13:24:29 +00:00
Sebastian Reitenbach
a1c3192f7f * Tools/gsdoc-model.m
* EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m     
        * EOAdaptors/SQLiteAdaptor/SQLite3Expression.m     
        * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.m     
        * EOControl/EODataSource.m     
        * EOControl/EOEvent.m     
        * EOControl/EOPrivate.m     
        * EOControl/EOUndoManager.m     
          Fix header inclusion for building on MAC OS X
	  patch from Graham Lee
          see bug #39086
	  



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36671 72102866-910b-0410-8b05-ffd578937521
2013-05-28 15:06:29 +00:00
Sebastian Reitenbach
366670eb69 * EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m
add some more potential table column types
        * EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
          use the table types from the SQLite3Adaptor to
          decide about the valueType, and set the NOT NULL
          correctly


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36452 72102866-910b-0410-8b05-ffd578937521
2013-03-29 15:39:49 +00:00
Sebastian Reitenbach
f6d5154771 * Apps/EOModelEditor/SQLGenerator.m
Add NSEmitTODO to showTables:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36451 72102866-910b-0410-8b05-ffd578937521
2013-03-29 14:43:28 +00:00
Sebastian Reitenbach
8102a99367 * EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
CHAR is NSString, not NSNumber, makes the DataBrowser
          show strings


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36427 72102866-910b-0410-8b05-ffd578937521
2013-03-25 12:27:30 +00:00
Sebastian Reitenbach
e38bd61cb2 * add EOAdaptors/SQLiteAdaptor/SQLite3EOAdaptorInfo.plist
needed to make the EODataBrowser correctly detect that
          the SQLite3Adaptor is a subclass of EOAdaptor
        * EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m
          little tweak


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36418 72102866-910b-0410-8b05-ffd578937521
2013-03-24 16:52:06 +00:00
Sebastian Reitenbach
eabd42b3e2 * Apps/EOModelEditor/EOModelEditorApp.m set the model name
correctly for SQLite3 databases too, use the file name


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36417 72102866-910b-0410-8b05-ffd578937521
2013-03-24 16:13:48 +00:00
Sebastian Reitenbach
8a7a69a6e4 * EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
implement describeModelWithTableNames:, inspired from the
          PostgreSQLChannel.m



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36416 72102866-910b-0410-8b05-ffd578937521
2013-03-24 16:12:32 +00:00
Sebastian Reitenbach
80a25de10d * EOAccess/EOAdaptorChannel.m
the subclasses are responsible for describeModelWithTableNames
          and describeTableNames


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36415 72102866-910b-0410-8b05-ffd578937521
2013-03-24 16:09:51 +00:00
Sebastian Reitenbach
33ad4a881e * EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
make the login panel remember the last used directory



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36361 72102866-910b-0410-8b05-ffd578937521
2013-03-14 15:34:30 +00:00
Sebastian Reitenbach
16ca8db210 * Apps/EOModelEditor/DataBrowser.[h|m]
* make the fetch limit and qualifier fields work



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36343 72102866-910b-0410-8b05-ffd578937521
2013-03-12 15:21:27 +00:00
Sebastian Reitenbach
31f47d1b3c * Apps/EOModelEditor/Resources/EOMEDocument.gsmarkup
give the window a better name than just "Window"


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36333 72102866-910b-0410-8b05-ffd578937521
2013-03-10 18:33:44 +00:00
Sebastian Reitenbach
97d069aa87 Fix some headers, remove unused variables, and use EOMApp
instead of NSApp



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36332 72102866-910b-0410-8b05-ffd578937521
2013-03-10 17:29:05 +00:00
Sebastian Reitenbach
5b5fee3b82 * EOAdaptors/PostgreSQLAdaptor/PostgreSQLEOAdaptorInfo.plist
renamed from Info.plist, and fix NSExecutable in it

actually makes browsing data in a PostgreSQL database possible again \o/



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36331 72102866-910b-0410-8b05-ffd578937521
2013-03-10 17:22:54 +00:00
Sebastian Reitenbach
56737b40a2 * Apps/EOModeler/EOMInspector.m
* Apps/EOModelEditor/Inspectors/AttributeInspector.m
          include missing header


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36328 72102866-910b-0410-8b05-ffd578937521
2013-03-10 13:27:58 +00:00
Sebastian Reitenbach
7043021b7f * EOInterface/EOTextAssociation.m
include right headers



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36327 72102866-910b-0410-8b05-ffd578937521
2013-03-10 13:16:08 +00:00
Sebastian Reitenbach
ac39e74888 * EOInterface/EOColumnAssociation.m
* EOInterface/EOPopUpAssociation.m
        * EOInterface/EORadioMatrixAssociation.m
          NSArray doesn't know about initWithObject:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36326 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:43:34 +00:00
Sebastian Reitenbach
05f5dbcb4c * EOAdaptors/SQLiteAdaptor/LoginPanel/SQLite3LoginPanel.m
use NSOpenPanel when opening a file


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36325 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:29:24 +00:00
Sebastian Reitenbach
872f349c2c * Apps/EOModelEditor/Inspectors/EntityInspector.m
add warning about method not implemented


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36324 72102866-910b-0410-8b05-ffd578937521
2013-03-10 12:18:33 +00:00
Sebastian Reitenbach
60270fd8d9 * Apps/EOModelEditor/EOMEDocument.h
make the header match the implementation, fixing
          warning about incomplete implementation of class


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36303 72102866-910b-0410-8b05-ffd578937521
2013-03-08 08:48:25 +00:00
Sebastian Reitenbach
c05fc2a335 * GDL2Palette/ResourceManager.m
include missing header
        * GDL2Palette/Palette.[h|m]
          use NSString instead of NSConstantString



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36297 72102866-910b-0410-8b05-ffd578937521
2013-03-07 15:06:13 +00:00
Sebastian Reitenbach
60460b7b45 * EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m
get rid of stray ; to make the loop work


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36296 72102866-910b-0410-8b05-ffd578937521
2013-03-07 13:11:34 +00:00
Sebastian Reitenbach
245b9ac076 * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.h
class conforms to NSTextFieldDelegate



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36295 72102866-910b-0410-8b05-ffd578937521
2013-03-07 13:10:44 +00:00
Sebastian Reitenbach
61e4d448e7 * EOControl/EODebug.m
ivar_getTypeEncoding returns const char *



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36294 72102866-910b-0410-8b05-ffd578937521
2013-03-07 12:57:30 +00:00
Sebastian Reitenbach
d780afad2a * EOControl/EOPrivate.h
do not access the isa directly, use object_getClass



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36293 72102866-910b-0410-8b05-ffd578937521
2013-03-07 10:29:19 +00:00
Sebastian Reitenbach
6b884fb4bb add -std=gnu89 to allow compile with clang and -O0
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36292 72102866-910b-0410-8b05-ffd578937521
2013-03-07 10:23:22 +00:00
Sebastian Reitenbach
b58bebdc1b missed int -> NSInteger transition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36243 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:56:51 +00:00
Sebastian Reitenbach
262e620575 * EOAccess/EOAdaptor.m
* EOAccess/EORelationship.m
        * EOControl/EONSAddOns.m
          get rid of some warnings about tautological compares


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36242 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:48:29 +00:00
Sebastian Reitenbach
829a02e46a * Apps/EOModelEditor/AdaptorsPanel.m
* Apps/EOModelEditor/Preferences.m
        * EOAccess/EOAttribute.m
        * EOAccess/EOExpressionArray.m
        * EOAccess/EORelationship.m
        * EOAdaptors/PostgreSQLAdaptor/LoginPanel/PostgreSQLLoginPanel.m
        * EOAdaptors/SQLiteAdaptor/SQLite3Channel.m
        * EOControl/EOCheapArray.m
        * EOControl/EOMutableKnownKeyDictionary.m
        * EOControl/EOPrivate.h
        * EOControl/EOPrivate.m
        * EOControl/Makefile.preamble
        * GDL2Palette/ConnectionInspector.m
        * GDL2Palette/DisplayGroupInspector.m
          Fix warnings about conflicting return types or paramters


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36241 72102866-910b-0410-8b05-ffd578937521
2013-03-02 18:20:35 +00:00
Sebastian Reitenbach
a6e98220c2 fix warnings related to format strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36234 72102866-910b-0410-8b05-ffd578937521
2013-03-02 15:28:25 +00:00
Sebastian Reitenbach
353c3d4c35 mark EOFault and GDL2KVCNSObject classes as root classes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36233 72102866-910b-0410-8b05-ffd578937521
2013-03-02 14:37:25 +00:00
Sebastian Reitenbach
bc990481e7 * GDL2Palette/DisplayGroupInspector.m
some NS(U)Integer transitions to fix warnings about
          comparisons against NSNotFound



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36232 72102866-910b-0410-8b05-ffd578937521
2013-03-02 14:14:21 +00:00
Sebastian Reitenbach
de5c0311d1 * shutup all clang warnings of type:
equality comparison with extraneous parentheses
          all harmless, but in EOEntity.m it actually was wrong



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36231 72102866-910b-0410-8b05-ffd578937521
2013-03-02 13:59:48 +00:00
Sebastian Reitenbach
b2b2b838f3 * EOControl/EODebug.m
do not use redundant stringWithString


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@36229 72102866-910b-0410-8b05-ffd578937521
2013-03-01 18:35:34 +00:00
Germán Arias
8e7b0621cb Add flags
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@35397 72102866-910b-0410-8b05-ffd578937521
2012-08-11 03:55:19 +00:00
Germán Arias
ebdb1f7c90 Fix memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34954 72102866-910b-0410-8b05-ffd578937521
2012-03-20 05:55:21 +00:00
Germán Arias
0215e55df9 Added SQLite logo in login panel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34953 72102866-910b-0410-8b05-ffd578937521
2012-03-20 05:47:28 +00:00