Commit graph

236 commits

Author SHA1 Message Date
Dave Wetzel
7c14405e1d * EOAccess/EODatabaseContext.m
-initializeObject:withGlobalID:editingContext:
remove exessive checking
-initializeObject:row:entity:editingContext:
reformat, less IMPs, less logs
* EOControl/EOFault.h
+ retainCount
unsigned -> NSUInteger
* EOControl/EOFault.m
+ retainCount
unsigned -> NSUInteger
+ clearFault:
raise if argument is no fault
rewrote retain behaviour
it makes no sense to free objects here and use the pointers
this would mess up the whole memory and crash.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30886 72102866-910b-0410-8b05-ffd578937521
2010-06-29 03:10:35 +00:00
Dave Wetzel
f14aafa3fc * EOAccess/EOEntity.m
- createInstanceWithEditingContext:globalID:zone:
reformat, remove logs
* EOAccess/EODatabaseContext.m
-initializeObject:withGlobalID:editingContext:
rewritten, add exceptions
* EOAccess/EODatabaseChannel.m
-fetchObject
remove logs, add exceptions
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
postgresClientVersion()
use stringWithCString:encoding: not stringWithCString:
* Apps/EOModelEditor/CodeGenerator.m
don't add <NSCoding> to generated code
* EOControl/EOCustomObject.h
* EOControl/EOCustomObject.m
add -encodeWithCoder:
add -initWithCoder:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30875 72102866-910b-0410-8b05-ffd578937521
2010-06-28 09:31:49 +00:00
Dave Wetzel
a5a47b954d * EOAccess/EODatabaseContext.m
-isValidQualifierTypeForAttribute:
reformat, remove useless code
-qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:
reformat
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
-isValidQualifierType:model:
remove logs, format
* Apps/EOModelEditor/Inspectors/AttributeInspector.gsmarkup
* Apps/EOModeler/EOModelExtensions.m
Rename the char into BOOL
You can use BOOL to create code that has BOOL values.
Apple seems to do this in newer code 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30874 72102866-910b-0410-8b05-ffd578937521
2010-06-27 08:34:28 +00:00
Dave Wetzel
4ba46c20a5 * EOAccess/EOAccessFault.m
-unableToFaultObject:databaseContext:
remove self from exception format printing
otherwise we create a loop...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30873 72102866-910b-0410-8b05-ffd578937521
2010-06-27 02:32:15 +00:00
Dave Wetzel
bc73ea3d95 * EOAccess/EOModel.m
add -_writePlist:toFile:
use it in -writeToFile:
this makes writing OPENSTEP plists work on OSX!



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30842 72102866-910b-0410-8b05-ffd578937521
2010-06-24 05:40:42 +00:00
Dave Wetzel
54ec6f178e * EOAccess/EODatabaseContext.m
recordUpdateForObject: changes:
more checks, call coordinator's 
forwardUpdateForObject:changes:
recordInsertForObject:
raise exception on inconsistency
recordDeleteForObject:
raise exception on inconsistency
commitChanges:
remove NSLog 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30722 72102866-910b-0410-8b05-ffd578937521
2010-06-15 03:48:52 +00:00
Dave Wetzel
6294a2b46f * EOAccess/EODatabase.m
* EOAccess/EODatabase.h
add _doesReleaseUnreferencedSnapshots
add dummy for incrementSnapshotCountForGlobalID
add dummy for decrementSnapshotCountForGlobalID
add disableSnapshotRefcounting
* EOAccess/EODatabaseContext.m
retain EOAdaptorChannel created by adaptor
This is documented in WO 4.5.
Otherwise it gets closed after the request's
autorelease pool is drained.
I tested this on OSX with the BookStore example.
added some dummies for future implementation
refactor objectsWithFetchSpecification: editingContext:
refactor commitChanges
* EOAccess/EODatabaseChannel.m
reformat
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m
add include
* EOControl/EOGenericRecord.m
add [self willChange] in setValue:forUndefinedKey:
this will make saving changes possible for EOGenericRecord
otherwise it was just showing them in memory



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30675 72102866-910b-0410-8b05-ffd578937521
2010-06-11 12:17:45 +00:00
Dave Wetzel
4878a85bbe * EOAccess/EOSQLExpression.m
fix include for less warnings on mac
	* EOAccess/EOEntity.m
	fix include for less warnings on mac
	isPrimaryKeyValidInObject: 0 is NOT a valid PK value
	* EOAccess/EOAdaptor.m
	fix include for less warnings on mac
	isDroppedConnectionException
	add comment and remove logs
	* EOAccess/EOSQLQualifier.m
	* EOAccess/EODatabaseDataSource.m
	* EOAccess/EOAdaptorContext.m
	* EOAccess/EORelationship.m
	* EOAccess/EOUtilities.m
	* EOAccess/EOSchemaGeneration.m
	* EOAccess/EOAdaptorChannel.m
	* EOAccess/EODatabaseChannel.m	
	fix include for less warnings on mac
	* EOAccess/EODatabaseContext.h
	add support for shouldHandleDatabaseException (WO 4.5)
	* EOAccess/EODatabaseContext.m
	add support for shouldHandleDatabaseException
	add [newRow addEntriesFromDictionary:objectPK] 
	to merge PKValues into the values of the EO.
	without that it is impossible to work.
	relayPrimaryKey: object: entity:
	Hopefully fixed. 
	add _delegateHandledDatabaseException:
	fixed _primaryKeyForObject: raiseException:
	(we raise always for now)
	* EOAccess/EOAdaptorChannel.h
	add comment
	* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
	fix include for less warnings on mac
	numberOfAffectedRows: search reverse to cover "INSERT 0 1" case.
	The first zero is the OID number
	refactored primaryKeyForNewRowWithEntity:
	* EOAdaptors/PostgreSQLAdaptor/PostgreSQLContext.h/m
	disabled _primaryKeySequenceNameFormat
	* EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m
	fixed formatValue: forAttribute:
	* EOControl/EOEditingContext.m
	* EOControl/EOFaultHandler.m
	* EOControl/EOKeyValueQualifier.m
	* EOControl/EOUndoManager.m
	* EOControl/EOClassDescription.m
	* EOControl/EOQualifier.m
	* EOControl/EOOrQualifier.m
	fix include for less warnings on mac
	* EOControl/EOCustomObject.m
	use getCString:maxLength:encoding instead of getCString
	use setValue: forKey instead of takeValue: forKey:
	change text in exceptions a bit
	* EOControl/EOPrivate.h
	use setValue: forKey instead of takeValue: forKey:	



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30633 72102866-910b-0410-8b05-ffd578937521
2010-06-09 12:48:33 +00:00
Dave Wetzel
d193acd41c * EOAccess/EOEntity.m
Added comment. Please check this! 
	* EOAccess/EODatabaseContext.m
	include NSObject+GNUstepBase.h
	avoid Enumerator exception.
	* EOAccess/EOUtilities.m
	split line into two
	* EOAccess/EOAdaptorChannel.h/m
	unsigned -> NSUInteger
	* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.h
	removed _describeResults
	* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
	include NSObject+GNUstepBase.h
	added numberOfAffectedRows
	attribute naming in raw rows fixed
	updating fixed
	unsigned -> NSUInteger



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30586 72102866-910b-0410-8b05-ffd578937521
2010-06-06 08:52:37 +00:00
Dave Wetzel
689fa01970 * EOAccess/EOAttribute.m
include EOSQLExpression.h
  move methods around to fix warnings

* EOAccess/EOEntity.m
  include EOFetchSpecification.h to fix warning

* EOAccess/EOAdaptor.m
  fix Mime include

* EOAccess/EOStoredProcedure.m
  fix warning in setExternalName:

* EOAccess/EODatabaseContext.m
  include EOAttributePriv.h and EOSQLExpression.h to fix warning
  entityForGlobalID: cast to EOKeyGlobalID to avoid warning.
  use caching.

  _fetchRawRowKeyPaths: fix warnings by using proper types.
  processSnapshotForDatabaseOperation: set EONull value when needed.
  avoid warnings. 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30569 72102866-910b-0410-8b05-ffd578937521
2010-06-04 05:41:58 +00:00
Dave Wetzel
b50974f473 * EOAccess/EOModel.m
include GNUstepBase/NSObject+GNUstepBase.h
  _removePropertiesReferencingEntity: fix selector name
  removeEntity: add comment, call _removeEntity:
  implemented removeEntityAndReferences:
* EOAccess/EOAttribute.m
  include GNUstepBase/NSObject+GNUstepBase.h
  add comment
* EOAccess/EOModel.h
  add comment
* Apps/EOModelEditor/EOMEDocument.m
  deleting of attributes, arguments (stored procedures) and entities works now
* Apps/EOModelEditor/EOMEDocument.h
  add methods to avoid warnings



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30554 72102866-910b-0410-8b05-ffd578937521
2010-06-03 08:09:25 +00:00
Dave Wetzel
8f66ac4667 * EOAccess/EOModel.m/h
new (still empty) _loadFetchSpecificationDictionaryForEntityNamed:
  added _removePropertiesReferencingProperty:
  added _removePropertiesReferencingEntity:
  loadAllModelObjects: load storedProcedures, call _loadEntity  
  fixed referencesToProperty:
  added referencesProperty:
  
* EOAccess/EOAttribute.m
  fixed valueForSQLExpression:
  changed return type of _definitionArray to EOExpressionArray *

* EOAccess/EOEntity.m
  fixed attributesUsedForLocking
  fixed removeAttribute:
  fixed removeRelationship:
  fixed _fetchSpecificationDictionary
  fixed _loadEntity
  
* EOAccess/EORelationship.m
  verified valueForSQLExpression, removed logs
  fixed referencesProperty:
  
* Apps/EOModelEditor/EOMEDocument.m
  make deleting of attributes work.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30536 72102866-910b-0410-8b05-ffd578937521
2010-06-02 07:55:16 +00:00
Dave Wetzel
981cb4903f * EOAccess/EOAttribute.m: reformat
* EOAccess/EOAdaptor.m
in databaseEncoding: use +[GSMimeDocument encodingFromCharset:]
less logging
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.h: reformat
encoding -> _encoding
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m
Use _encoding now for reading and writing Strings.
less logging
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLCompatibility.h
if 0 for now (please check if that code is still needed!)
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLPrivate.m
fix header
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m
less logging
* Apps/EOModelEditor
* Apps/EOModelEditor/Inspectors
propset  svn:ignore
* Apps/EOModelEditor/GNUmakefile
add -lgnustep-baseadd on non-GNUstep



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30517 72102866-910b-0410-8b05-ffd578937521
2010-06-01 00:29:37 +00:00
Dave Wetzel
1935fd8e22 Remove lots of logging.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30496 72102866-910b-0410-8b05-ffd578937521
2010-05-30 19:25:53 +00:00
Dave Wetzel
021d9c6759 * EOAccess/EOAttribute.m
added attributeWithParent: definition: convenience method
* EOAccess/EOAdaptorContext.m
  _channelDidInit: setDelegate
* EOAccess/EODatabaseContext.m
  availableChannel: call registerChannel
  new method _fetchRawRowKeyPaths:fetchSpecification:entity:editingContext:
* EOAccess/EODatabaseChannel.m
  raise NSInvalidArgumentException in init.
  initWithDatabaseContext: more checks
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLContext.m
  beginTransaction: more checks, raise NSInternalInconsistencyException



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30494 72102866-910b-0410-8b05-ffd578937521
2010-05-30 18:24:14 +00:00
Dave Wetzel
fb061e0a13 added support for stored procedures
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30461 72102866-910b-0410-8b05-ffd578937521
2010-05-27 06:50:25 +00:00
Dave Wetzel
6b69c88f62 * EOAccess/EOStoredProcedure.m
setName: added loadAllModelObjects and checks
setExternalName: add checks
* EOAccess/EORelationship.m
encodeIntoPropertyList:
added code for ownsDestination and propagatesPrimaryKey from Sergey Golovin.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30430 72102866-910b-0410-8b05-ffd578937521
2010-05-19 17:00:10 +00:00
Dave Wetzel
b6d3915786 * EOAccess/EOModel.m:
entities: make sure we use a mutable array. Destroy _entities cache when adding a new one.
(We run into wrong sorted arrays otherwise)
* EOAccess/EOEntity.m:
make setName: work
* EOAccess/EORelationship.m
add support for KVObserving.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30397 72102866-910b-0410-8b05-ffd578937521
2010-05-16 08:14:49 +00:00
Dave Wetzel
9ef3e0ff2a added + _joinSemanticForName:
added + _nameForJoinSemantic:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30289 72102866-910b-0410-8b05-ffd578937521
2010-05-03 22:41:57 +00:00
Dave Wetzel
ff63a21003 * EOAccess/EOAttribute.m: Add comment
* EOControl/EOEditingContext.m: Do not raise on inserting bad objects for now
(Non-EOCustomObject subclasses)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30285 72102866-910b-0410-8b05-ffd578937521
2010-05-03 09:38:59 +00:00
Dave Wetzel
e92812fdff * EOAccess/EODatabaseContext.m
implemented _assertValidStateWithSelector:
fixed leaks
* EOAccess/Makefile.preamble: added -Werror-implicit-function-declaration
* EOAccess/*: ported to new runtime and OS X



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30242 72102866-910b-0410-8b05-ffd578937521
2010-04-26 21:52:42 +00:00
David Ayers
7d7f63a828 * EOAccess/EODatabaseContext.m
(prepareForSaveWithCoordinator:editingContext:): Correct logic
	for primary key generation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30219 72102866-910b-0410-8b05-ffd578937521
2010-04-22 09:38:07 +00:00
Dave Wetzel
a8f69ea595 globalIDForRow: isFinal: - create EOKeyGlobalID ouside loop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30201 72102866-910b-0410-8b05-ffd578937521
2010-04-20 06:14:21 +00:00
Dave Wetzel
4b25a97b64 start transaction in
objectsWithFetchSpecification: editingContext:
if none was in place before.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30200 72102866-910b-0410-8b05-ffd578937521
2010-04-20 06:11:53 +00:00
Fred Kiefer
ce2d3fb811 Fix a few compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30199 72102866-910b-0410-8b05-ffd578937521
2010-04-19 18:00:53 +00:00
David Ayers
6b8476b76b * EOAccess/EODatabaseContext.m
(qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:)
	Revert rewrite.  Adapt to NSUInteger.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30194 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:45:08 +00:00
David Ayers
234e98ea68 revert EODatabaseContext rewrite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30193 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:32:31 +00:00
Dave Wetzel
0a68de0f7c rewrote qualifierForLockingAttributes:primaryKeyAttributes:entity:snapshot:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30191 72102866-910b-0410-8b05-ffd578937521
2010-04-19 07:15:05 +00:00
David Ayers
2960b436cf * EOInterface/EODisplayGroup.m (_qualifierForKey:value:defaultOperator:):
* EOAccess/EOUtilities.m (-rawRowsWithStoredProcedureNamed:arguments:):
	* EOAccess/EOSQLExpression.m (addInsertListAttribute:value:):
	* GDL2Palette/ConnectionInspector.m (_keysFromClassDescription:):
	* DBModeler/Inspectors/AttributeInspector.m (setValueType:):
	Initialize variables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30114 72102866-910b-0410-8b05-ffd578937521
2010-04-09 10:43:59 +00:00
David Ayers
5107816c46 * EOAccess/EORelationship.m (-[isToManyToOne]): Correct index
used to retrieved second relationship.
	Bug #29369


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30080 72102866-910b-0410-8b05-ffd578937521
2010-03-30 09:38:12 +00:00
David Ayers
648ce9193b * EOAccess/EOExpressionArray.m (-[valueForSQLExpression:):
Use _infix instead of @"." and skip if _infix is not set.
	* EOAccess/EOSQLExpression
	([EOSQLExpression-prepareSelectExpressionWithAttributes:]):
	Set listString for "flattened attributes" for aggregate definitions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28408 72102866-910b-0410-8b05-ffd578937521
2009-07-24 17:11:50 +00:00
David Ayers
57ca86ebd6 * EOAccess/EOSQLQualifier.m
(-[initWithEntity:qualifierFormat:]): Implement.
	(-[schemaBasedQualifierWithRootEntity:]): Ditto.
	(-[sqlStringForSQLExpression:]): Ditto.
	(-[dealloc]): Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28407 72102866-910b-0410-8b05-ffd578937521
2009-07-24 16:43:07 +00:00
David Ayers
2883b0b21c 2009-06-24 Georg Fleischmann <g.fleischmann@vhf.de>
2009-06-24  David Ayers  <ayers@fsfe.org>

	* EOAccess/EOPrivate.h (EOQualifier <EOQualifierSQLGeneration>):
	Declare.
	* EOAccess/EOSQLQualifier.m
	([EOQualifier schemaBasedQualifierWithRootEntity:]),
	([EOQualifier sqlStringForSQLExpression:]): Add preliminary dummy
	implementations.
	([EONotQualifier schemaBasedQualifierWithRootEntity:]): Implement.
	


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28406 72102866-910b-0410-8b05-ffd578937521
2009-07-24 16:20:27 +00:00
David Ayers
8eda0f3a98 * EOControl/EOAndQualifier.m
* EOControl/EOKeyComparisonQualifier.m
	* EOControl/EONotQualifier.m
	* EOControl/EOOrQualifier.m
	* EOControl/EOQualifier.m
	* EOAccess/EOSQLQualifier.m: Include NSArray.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28315 72102866-910b-0410-8b05-ffd578937521
2009-06-01 11:51:06 +00:00
David Ayers
97bdca0839 * EOAccess/EODatabase.m (setUpdateStrategy:): Count the snapshots
to determine if we actually already have fetched them.
	Reported by: Thierry Delhaise <befree_fr@mac.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28085 72102866-910b-0410-8b05-ffd578937521
2009-03-16 08:26:00 +00:00
Matt Rice
ad8dedbf6c * EOAccess/EORelationship.m (-referencesProperty:): Check if property
is the relationships destination entity.
* EOModeler/EOModelerDocument (-delete:): Call referencesToProperty:
on all model objects.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@28011 72102866-910b-0410-8b05-ffd578937521
2009-03-01 10:08:12 +00:00
David Ayers
677ebbfda3 * EOControl/gdl2.EOControl.make,
* EOAccess/gdl2.EOAccess.make,
	* EOInterface/gdl2.EOInterface.make: Remove convenience 
	make file fragements.
	* EOControl/Makefile.postamble,
	* EOAccess/Makefile.postamble,
	* EOInterface/Makefile.postamble: Remove references to
	convenience make file fragements.

	* README: Add documentation on usage of GDL2 components.
	Update versions of dependencies.  Add documentation for some missing
	components.  Remove obsolete documentation.  Refer to TODO file for
	missing features.
	* TODO: Update.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27924 72102866-910b-0410-8b05-ffd578937521
2009-02-20 07:25:48 +00:00
David Ayers
68f788d944 * EOAccess/EOGenericRecord.h/m ([-entity]): New category.
* EOAccess/GNUmakefile (EOGenericRecord): Build and install new
	category.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27922 72102866-910b-0410-8b05-ffd578937521
2009-02-19 11:15:22 +00:00
Matt Rice
25a2598847 * GNUmakefile.in: Add Trading subproject.
* EOAccess/EORelationship.m (-_joinsChanged:): Set the destination to
the first object.
(-destinationEntity): Call _joinsChanged if the destination is nil.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27916 72102866-910b-0410-8b05-ffd578937521
2009-02-18 14:47:26 +00:00
David Ayers
c1a1ad155e * EOAccess/EOEntity.m (-dealloc): Invalidate class description
cache.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27910 72102866-910b-0410-8b05-ffd578937521
2009-02-18 05:52:42 +00:00
David Ayers
0cba21bb90 * EOControl/Makefile.postamble
* EOAccess/Makefile.postamble
	* EOInterface/Makefile.postamble
	(after-uninstall::) Remove make file fragments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27909 72102866-910b-0410-8b05-ffd578937521
2009-02-18 05:09:35 +00:00
Matt Rice
f7ceba56ed * EOAccess/EOEntityPriv.h: Remove GDL2DestinationEntitiesAddRelationship, and
GDL2DestinationEntitiesRemoveRelationship.
* EOAccess/EOEntity.m (+initialize, -dealloc): Remove usage and
implementations of the above functions.
* EOAccess/EORelationship.m (-initWithPropertyList:owner:):
(-setDefinition:): Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27908 72102866-910b-0410-8b05-ffd578937521
2009-02-18 05:05:21 +00:00
David Ayers
2cad6cba47 * EOControl/gdl2.EOControl.make
* EOAccess/gdl2.EOAccess.make
	* EOInterface/gdl2.EOInterface.make
	* EOControl/Makefile.postamble
	* EOAccess/Makefile.postamble
	* EOInterface/Makefile.postamble
	Install makefile fragments for each 'core' library which adds
	linker flags.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27904 72102866-910b-0410-8b05-ffd578937521
2009-02-17 16:33:17 +00:00
Matt Rice
f4498d2a98 *EOControl/EODefines.h: switch BUILD_libgnustep-db2control_DLL define
to BUILD_libEOControl_DLL.
        * EOControl/EOGlobalID.m: include limits.h.
        * EOControl/EOPrivate.m: implement -copyWithZone: and
        -mutableCopyWithZone: in GDL2NonRetainingArray.
        * EOAccess/EODefines.h: switch BUILD_libgnustep-db2_DLL define to
        BUILD_libEOAccess_DLL. 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27724 72102866-910b-0410-8b05-ffd578937521
2009-01-29 22:34:41 +00:00
David Ayers
23b00c21c7 * EOAccess/EOJoin.h: Update memory mangement comments.
* EOAccess/EOJoin.m (dealloc): Implement.
	* EOAccess/EORelationship.m (dealloc,_flushCahce): Fix memory leaks.
	* EOAccess/EOAttribute.h: Update some signatures.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@27695 72102866-910b-0410-8b05-ffd578937521
2009-01-26 12:05:29 +00:00
Matt Rice
4c6a55e3fd * EOControl/EOPrivate.m (GDL2_PrivateInit):
* EOAccess/EOPrivate.m (GDL2_AccessPrivateInit): Set initialized to YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26601 72102866-910b-0410-8b05-ffd578937521
2008-06-06 22:54:24 +00:00
David Ayers
5c84e40422 * EOAccess/EOAttribute.m (-setDefinition:): Clear _columnName before
calling _setIsEdited on the parent.  Document.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26597 72102866-910b-0410-8b05-ffd578937521
2008-06-06 09:26:14 +00:00
David Ayers
35ea180bdc * EOAccess/EORelationship.h/m (-setInverseRelationship:): Rename to...
(-_setInverseRelationship:): ... and move to local privat method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26596 72102866-910b-0410-8b05-ffd578937521
2008-06-06 09:21:35 +00:00
Matt Rice
a6415d024a EOAccess/EOEntity.m (performSelectorOnArrayWithEachObjectOfClass()):
Perform the selectors on a copy of the array.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26595 72102866-910b-0410-8b05-ffd578937521
2008-06-05 23:18:39 +00:00
Matt Rice
80a2657f4a * EOAccess/EOModel.m (-setName:, -setAdaptorName:, -setDocComment):
* EOAccess/EORelationship.m (-setName:, -setDocComment:):
* EOAccess/EOStoredProcedure.m (-setName:, -setExternalName:):
* EOAccess/EOAttribute.m (-setAdaptorValueConversionMethodName:)
(-setName, -setColumnName:, -setExternalType:, -setValueType:):
(-setValueClassName:, -setWriteFormat:, -setReadFormat:):
(-setDocComment:, -setValueFactoryMethodName:):
(-setAdaptorValueConversionMethodName:): Use ASSIGNCOPY instead of
ASSIGN.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26594 72102866-910b-0410-8b05-ffd578937521
2008-06-05 23:14:14 +00:00