buzzdee
70ff29d9ec
* nearly every file
...
get rid of RCSID/RCS_ID
as shortly discussed with David and Manuel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@37928 72102866-910b-0410-8b05-ffd578937521
2014-05-30 17:37:46 +00:00
mguesdon
c959f7c14c
* 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
buzzdee
857c934072
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
buzzdee
55aca26e97
* 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
buzzdee
203890e0c3
* 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
dwetzel
80fd4d289c
* EOAccess/EOModel.m
...
-_deleteTrashAtPath:
.cvs -> .CVS
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30930 72102866-910b-0410-8b05-ffd578937521
2010-07-06 06:03:01 +00:00
dwetzel
7b64c1681a
* EOAccess/EOModel.m
...
add - _deleteTrashAtPath:
avoid keeping unused files in the wrapper directory.
basically, .svn/.cvs/.git
as this does not change that often I am not moving this to an
external plist at the moment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30929 72102866-910b-0410-8b05-ffd578937521
2010-07-05 19:56:10 +00:00
dwetzel
c28f350cb7
* EOAccess/EOModel.m
...
-writeToFile:
Don't copy or move directories
create an dir only if we have none
* Apps/EOModelEditor/EOMEDocument.m
copy old wrapper dir to new tmp path/URL
The model overwrites our own files then.
Trash like .svn stays intact this way :-)
Only OSX at the moment.
see
http://savannah.gnu.org/bugs/index.php?30348
(#ifdef'd)
-keepBackupFile
return YES
* Apps/EOModelEditor/CodeGenerator.m
don't write code for EOGenericRecord or EOCustomObject
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30922 72102866-910b-0410-8b05-ffd578937521
2010-07-05 01:58:11 +00:00
dwetzel
a37bb65ce8
* EOAccess/EOModel.m
...
-addEntity:
change error checks to be in sync with reference
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30897 72102866-910b-0410-8b05-ffd578937521
2010-06-29 22:28:51 +00:00
dwetzel
cf46680fa1
* 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
dwetzel
682383c008
* 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
dwetzel
c7dd0c4077
* 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
dwetzel
118333b97e
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
dwetzel
87137f176c
* 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
dwetzel
9d524177e5
* 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
ratmice
dd5de326a0
* 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
ratmice
86f1337534
* EOAccess/EOModel.m (-addEntity:): Reword assertion message.
...
(-_setEntity:forEntityName:className:): Add assertion.
* EOAccess/EOAttribute.m (-initWithPropertyList:owner:): Validate the
name.
* EOAccess/EORelationship.m (-initWithPropertyList:owner:): Ditto.
* EOAccess/EOEntity.m (-initWithPropertyList:owner:): Ditto.
(-attributes): Remove checks for duplicate names.
(-relationships): Remove checks for duplicate names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26275 72102866-910b-0410-8b05-ffd578937521
2008-03-11 19:43:57 +00:00
ratmice
c14e5cee6f
* DBModeler/Modeler.m,
...
* EOAccess/EOEntityPriv.h,
* EOAccess/EOModel.h/m,
* EOAccess/EOEntity.h/m,
* EOAccess/EORelationship.h/m: Remove setCreateMutableObjects: and
createsMutableObjects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26227 72102866-910b-0410-8b05-ffd578937521
2008-03-06 16:28:22 +00:00
ayers
5df3ba435a
* EOControl/EOAndQualifier.m,
...
* EOControl/EOFault.m,
* EOControl/EOFaultHandler.m,
* EOControl/EOKeyComparisonQualifier.m,
* EOControl/EOKeyValueArchiver.m,
* EOControl/EOKeyValueCoding.m,
* EOControl/EOKeyValueCodingBase.m,
* EOControl/EOMutableKnownKeyDictionary.h,
* EOControl/EONotQualifier.m,
* EOControl/EOOrQualifier.m,
* EOControl/EOQualifier.m,
* EOAccess/EOAdaptor.m,
* EOAccess/EOAdaptorContext.m,
* EOAccess/EOAttribute.m,
* EOAccess/EODatabase.m,
* EOAccess/EODatabaseContext.m,
* EOAccess/EOExpressionArray.m,
* EOAccess/EOJoin.m,
* EOAccess/EOModel.m,
* EOAccess/EOModelGroup.m,
* EOAccess/EORelationship.m,
* EOAccess/EOSQLExpression.m,
* EOAccess/EOSQLQualifier.m,
* EOAccess/EOSchemaGeneration.m,
* EOAccess/EOStoredProcedure.m,
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLAdaptor.m,
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLChannel.m,
* EOAdaptors/PostgreSQLAdaptor/PostgreSQLExpression.m,
* EOAdaptors/SQLiteAdaptor/SQLite3Adaptor.m,
* EOAdaptors/SQLiteAdaptor/SQLite3Channel.m,
* EOInterface/EOTableViewAssociation.m,
* EOModeler/EOModelExtensions.m,
* EOModeler/EOModelerApp.m,
* DBModeler/ModelerAttributeEditor.m,
* DBModeler/ModelerEntityEditor.m: Remove references to NSUtilities.h.
Add includes for missing header references.
* DBModeler/Modeler.m (-[showEditor:]): Add cast to avoid compiler
warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@25994 72102866-910b-0410-8b05-ffd578937521
2008-01-22 13:57:07 +00:00
ayers
5f0e695609
* COPYING.LIB: Update to LGPL 3.
...
* DB2Modeler/COPYING: Update to GPL 3.
* *.*: Update copyright notices.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@25326 72102866-910b-0410-8b05-ffd578937521
2007-07-12 06:39:22 +00:00
ayers
4c056a14f2
* EOAccess/EOAccessFault.h/m: Minor cleanups for autogsdoc.
...
* EOAccess/EOAdaptor.m: Ditto.
* EOAccess/EOAdaptorChannel.h/m: Ditto.
* EOAccess/EOAdaptorContext.h: Ditto.
* EOAccess/EODatabase.h/m: Ditto.
* EOAccess/EODatabaseChannel.m: Ditto.
* EOAccess/EODatabaseContext.h/m: Ditto.
* EOAccess/EODatabaseDataSource.h: Ditto.
* EOAccess/EODatabaseOperation.h: Ditto.
* EOAccess/EOEntity.h/m: Ditto.
* EOAccess/EOModel.h/m: Ditto.
* EOAccess/EORelationship.h: Ditto.
* EOAccess/EOSchemaGeneration.h: Ditto.
* EOAccess/EOUtilities.h/m: Ditto.
* EOAccess/EOSQLExpression.h/m: Minor cleanups for autogsdoc.
(EOSchemaGeneration): Move implementation from here to ...
* EOAccess/EOSchemaGeneration.m: ... new file for autogsdoc.
* EOAccess/GNUmakefile: Add EOSchemaGeneration.m.
* EOAccess/EOUtilities.m (EOObjectStoreCoordinator EOModelGroup):
Move implementation from here to ...
* EOAccess/EOModelGroup.m: ... to here for autogsdoc.
* common.make: (GDL2_AGSDOC_FLAGS): Add extern declarations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24302 72102866-910b-0410-8b05-ffd578937521
2007-01-01 11:52:38 +00:00
ratmice
e2efb0de61
* EOAccess/EOModel.m (-dealloc): Set entities model to nil.
...
* EOAccess/EOEntityPriv.h: Add functions for maintining list of
relationships and their destination entities.
* EOAccess/EOEntity.m: Implement new functions.
(-dealloc:): Set attributes entities, and relationships source
and destinations entities to nil.
(+initialize:): Initialize static map table.
* EOAccess/EORelationship.m: Call functions to maintain
destination entities.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23954 72102866-910b-0410-8b05-ffd578937521
2006-10-23 15:29:27 +00:00
ratmice
483e2a09d8
* EOAccess: Revert previous changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23949 72102866-910b-0410-8b05-ffd578937521
2006-10-23 11:39:48 +00:00
ratmice
fe19aa4096
* EOAccess/EOPrivate.h: Add notification constants.
...
* EOAccess/EOAttribute.m: Observe EOEntity's notification.
* EOAccess/EORelationship.m: Observe EOEntity's notification.
* EOAccess/EOModel.m: Post notification when deallocating.
* EOAccess/EOEntity.m: Post notification when deallocating, and
observe EOModels notification.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23946 72102866-910b-0410-8b05-ffd578937521
2006-10-22 20:16:31 +00:00
ratmice
76628971bb
* EOAccess/EOAttribute.m: Remove usage of GCObject, and its
...
subclasses.
* EOAccess/EOModelGroup.h: Ditto.
* EOAccess/EOStoredProcedure.m: Ditto.
* EOAccess/EOModelGroup.m: Ditto.
* EOAccess/EOExpressionArray.h: Ditto.
* EOAccess/EORelationship.h: Ditto.
* EOAccess/EOExpressionArray.m: Ditto.
* EOAccess/EOEntity.h: Ditto.
* EOAccess/EOEntity.m: Ditto.
* EOAccess/EOJoin.h: Ditto.
* EOAccess/EOModel.h: Ditto.
* EOAccess/EOAttribute.h: Ditto.
* EOAccess/EOAttributePriv.h: Ditto.
* EOAccess/EOJoin.m: Ditto.
* EOAccess/EORelationship.m: Ditto, and don't retain source and
* EOAccess/EOStoredProcedure.h: Ditto, and don't retain model.
* EOAccess/EOModel.m: Ditto.
(-addStoredProcedure:): Fix error when using non-mutable objects.
(-dealloc): Add missing ivars.
destination entities.
* EOAccess/GNUmakefile: Remove slash on last header file.
* EOControl/EOPrivate.m: Update comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23874 72102866-910b-0410-8b05-ffd578937521
2006-10-15 12:23:42 +00:00
ratmice
00f8f89379
* EOAccess/EOEntity.m (-awakeWithPropertyList:): Setup the
...
connection to the parent entity.
(-encodeIntoPropertyList:): Encode the parent entity name.
(-init): Initialize the _subEntities ivar.
(-addSubEntity:): Pass correct argument.
* EOAccess/EOModel.m (-encodeTableOfContentsIntoPropertyList:):
encode the parent entity name.
(-_addEntityWithPropertyList): Call -awakeWithPropertyList:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23740 72102866-910b-0410-8b05-ffd578937521
2006-10-03 15:19:33 +00:00
ratmice
c26d68af05
* EOAccess/EOModel.m (writeToFile:): Use the default permissions
...
on .eomodeld files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23537 72102866-910b-0410-8b05-ffd578937521
2006-09-16 21:34:10 +00:00
ayers
9a013cca64
* EOAdaptors/Postgres95/GNUmakefile.in:
...
Install into GNUSTEP_SYSTEM_ROOT by default.
* * Update email addresses for Mirko Viviani and David Ayers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@23510 72102866-910b-0410-8b05-ffd578937521
2006-09-14 16:06:21 +00:00
ratmice
cd7124760e
* EOControl/EODetailDataSource.m (-editingContext): Return the master
...
data sources editing context.
* EOControl/EOGlobalID.m (-description): Correct conversion specification.
* EOAccess/EOModel.m (-referencesToProperty:): Implement.
* EOAccess/EORelationship.m (-referencesProperty:): Fix bug in or when
sending messages to nil.
(-validateName:): Return nil if the name is the properties current name.
* EOAccess/EOModel.m (-validateName:): Ditto.
* EOAccess/EOEntity.m (-validateName:): Ditto.
(-relationships): Handle partially converted relationships array.
(-addAttribute:): Remove unnecessary cast.
(-addRelationship:): Ditto.
(-removeAttribute): Remove property from the class properties and
primary key attributes arrays.
(-removeRelationship:): Remove property from the class properties
array.
(-_setIsEdited:): Rebuild _relationshipsByName.
* EOAdaptors/Postgres95/Postgres95SQLExpression.m: Fix warning.
* EOAdaptors/Postgres95/Postgres95Values.m: Remove c99 usage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@22681 72102866-910b-0410-8b05-ffd578937521
2006-03-19 18:03:50 +00:00
ayers
6c7bbf590a
* COPYING.LIB: Update to LGPL 2.1.
...
* configure: Regenerate.
* Update FSF Address and Copyright years.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21645 72102866-910b-0410-8b05-ffd578937521
2005-08-17 08:07:57 +00:00
ratmice
cd233218bc
* dev-apps/test/Testsuite/gdl2/GDL2Testing.h: Include ObjectTesting.h instead of stuff.h.
...
* dev-apps/test/Testsuite/gdl2/EOModel/test05.m: New test for -removeEntity:.
* dev-libs/gdl2/EOAccess/EOEntity.m (-_setModel:): Accept nil argument, comment.
* dev-libs/gdl2/EOAccess/EOModel.m (-removeEntity:): Comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@21321 72102866-910b-0410-8b05-ffd578937521
2005-06-17 14:46:37 +00:00
ayers
fa30929bd4
* EOAccess/EOModel.m (setName:): Remove from group before
...
changing name and readd afterwards.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20831 72102866-910b-0410-8b05-ffd578937521
2005-03-02 15:34:57 +00:00
ratmice
007a79ae4e
Call -willChange: to support EOObserving in EOModel, EOEntity, EOAttribute,
...
EORelationship, EOStoredProcedure.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20745 72102866-910b-0410-8b05-ffd578937521
2005-02-18 16:46:38 +00:00
ayers
8c15cfdf3c
* EOAccess/EOModel.m (writeToFile:): Clairfy documentation
...
about setting receivers name and path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20708 72102866-910b-0410-8b05-ffd578937521
2005-02-14 12:11:49 +00:00
ayers
2f8e7ef959
* EOAccess/EOModel.m (-writeToFile:): Make sure all objects
...
are loaded before making backup.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20678 72102866-910b-0410-8b05-ffd578937521
2005-02-09 13:26:08 +00:00
ayers
eb433e2fa2
* EOAccess/EOModel.m (-init): Initialize _storedProcedures.
...
(-storedProcedureNames): Simplify.
(-storedProcedureNamed:): Reimplement.
(-storedProcedures): Simplify.
(-writeToFile:): Call _setPath: after preliminary testing.
Write stored procedures.
(-initWithTableOfContentsPropertyList:path:): Reimplement
stored procedure handling.
(-encodeTableOfContentsIntoPropertyList:): Handle stored
procedures.
(-encodeIntoPropertyList:): Fix encoding title for stored
procedures.
(-addStoredProcedure:, -removeStoredProcedure:) Make more
thread safe.
(-loadAllModelObjects): Implement.
* EOAccess/EOStoredProcedure.m (-initWithPropertyList:): Call
awakeWithPropertyList: to finish initialization.
(-encodeIntoPropertyList:): Implement.
(-description): Implement.
(-_setIsEdited): Implement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20676 72102866-910b-0410-8b05-ffd578937521
2005-02-09 11:39:42 +00:00
ayers
16130d644b
* EOAccess/EOModelGroup.m ([+globalModelGroup]): Search for
...
.eomodel files as well and call -addModelWithFile: with full
path.
* EOAccess/EOModel.m ([-initWithContentsOfFile:]): Add assert
if file could not be read.
* EOControl/EOKeyGlobalID.m ([-hash]): Improve quality of hash
values.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20294 72102866-910b-0410-8b05-ffd578937521
2004-11-04 11:08:10 +00:00
ayers
77c1bef3ee
* EOAccess/EOAttribute.m (-[copyWithZone:]): Override
...
implementation of GCObject as it isn't safe to copy
EOAttributes.
* EOAccess/EOEntity.m (-[addAttribute:]); Use NSAsserts to check
integrity of parameters. Insure that attribute is not used by
other entity or stored procedure.
(-[_setModel:]): Rename from -setModel:. Assert that entity
is not used by another model.
* EOAccess/EOEntityPriv.h (-[_setModel:]): Rename from
-setModel:.
* EOAccess/EOModel.m (-[_addEntity:]): Use -_setModel: instead
of -setModel:.
(-[removeEntity:]): Ditto.
(-[addEntity:)): Use NSAssert to insure that entity name is
unique and that the entity is not being used by other mode. Use
-_setModel: instead of -setModel:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20032 72102866-910b-0410-8b05-ffd578937521
2004-09-08 13:05:25 +00:00
ayers
f91bdc5723
* EOAccess/EOModel.m: Include EOKeyValueCoding.h.
...
(-[_addEntity:]): Set model via public API.
* EOAccess/EOEntityPriv.h (-[_setModel:]): Remove.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20027 72102866-910b-0410-8b05-ffd578937521
2004-09-07 17:20:29 +00:00
ayers
a65e5d5f94
* EOAccess/EOModel.m (-[_updateCache]): New method.
...
* EOAccess/EOEntity.m
(-[EOModel _updateCache]): Declare private EOModel method.
(-[setName:]): Insure model updates its cache.
(-[setModel]): Set instance variable directly without
retaining it.
(-[_setModel]): Remove.
(-[gcDecrementRefCountOfContainedObjects]): Do not decrement
backward reference to owning model.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20023 72102866-910b-0410-8b05-ffd578937521
2004-09-07 16:14:23 +00:00
ayers
47b9e3fe47
* EOAccess/EOAccessFault.m: Include privat headers locally.
...
* EOAccess/EOAdaptor.m: Ditto.
* EOAccess/EOAdaptorChannel.m: Ditto.
* EOAccess/EOAdaptorContext.m: Ditto.
* EOAccess/EOAttribute.m: Ditto.
* EOAccess/EODatabaseChannel.m: Ditto.
* EOAccess/EODatabaseContext.m: Ditto.
* EOAccess/EODatabaseOperation.m: Ditto.
* EOAccess/EOModel.m: Ditto.
* EOAccess/EORelationship.m: Ditto.
* EOAccess/EOSQLExpression.m: Ditto.
* EOAccess/EOSQLQualifier.m: Ditto.
* EOAccess/EOEntity.h: Remove declarations of privat methods.
Reorder declaraions.
(+[entity], +[entityWithPropertyList:owner:]): Deprecate.
(-[sharedObjectFetchSpecificationNames]): New method.
(-[setSharedObjectFetchSpecificationsByName:]: Ditto.
(-[addSharedObjectFetchSpecificationByName:]: Ditto.
(-[removeSharedObjectFetchSpecificationByName:]: Ditto.
* EOAccess/EOEntityPriv.h: Add declarations of privat methods.
Reorder declarations.
* EOAccess/EOEntity.m: Reorder implementations according to
headers. Include privat headers locally.
(+[entity], +[entityWithPropertyList:owner:]): Deprecate.
(-[sharedObjectFetchSpecificationNames]): New method.
(-[setSharedObjectFetchSpecificationsByName:]: Ditto.
(-[addSharedObjectFetchSpecificationByName:]: Ditto.
(-[removeSharedObjectFetchSpecificationByName:]: Ditto.
* EOAccess/EOEntity.m: Adapt usage of deprecated -[entity...]
and privat methods.
* EOAccess/EOModel.m: Ditto.
* EOAdaptors/Postgres95/Postgres95SQLExpression.m: Ditto.
* TODO: Add comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@19772 72102866-910b-0410-8b05-ffd578937521
2004-07-23 18:33:29 +00:00
ayers
fd17b0d48e
* EOAccess/EOModel.m ([EOModel entityNamed:]): Fix typo.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@19286 72102866-910b-0410-8b05-ffd578937521
2004-05-12 09:18:21 +00:00
ayers
dd15f889e0
* EOAccess/EOModel.m ([EOModel writeToFile:]) Set path (and
...
name implicitly) of the receiver. Create backup file when
necessary after removing the potentially existing backup file.
Raise NSInvalidArgumentExceptions upon failures. Add support
for .eomodel files. Document.
([EOModel _verifyBuiltEntityObject:named:]): Add support for
.eomodel files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@19129 72102866-910b-0410-8b05-ffd578937521
2004-04-16 13:10:43 +00:00
ayers
e6fab07914
* *.[hm] Use GNUSTEP in favor of NeXT_Foundation_LIBRARY
...
as requested by Marcus Mueller <znek@mulle-kybernetik.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18856 72102866-910b-0410-8b05-ffd578937521
2004-03-19 16:41:21 +00:00
ayers
2174e99e8a
EOAccess/EOModel.m ([EOModel beautifyNames]): Remove log and
...
reformat comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18657 72102866-910b-0410-8b05-ffd578937521
2004-02-25 12:01:09 +00:00
ayers
1c3803114f
* EOAccess/EOAdaptor.m: Include GNUstep-specific headers for
...
non-GNUstep systems.
* EOAccess/EOAdaptorChannel.m: Ditto.
* EOAccess/EOAdaptorContext.m: Ditto.
* EOAccess/EOAttribute.m: Ditto.
* EOAccess/EODatabaseChannel.m: Ditto.
* EOAccess/EODatabaseDataSource.m: Ditto.
* EOAccess/EOEntity.m: Ditto.
* EOAccess/EOModel.m: Ditto.
* EOAccess/EOModelGroup.m: Ditto.
* EOAccess/EORelationship.m: Ditto.
* EOAccess/EOSQLQualifier.m: Ditto.
* EOAccess/EOUtilities.m: Ditto.
* EOControl/EOAndQualifier.m: Ditto.
* EOControl/EOClassDescription.m: Ditto.
* EOControl/EODataSource.m: Ditto.
* EOControl/EOEditingContext.m: Ditto.
* EOControl/EOFault.m: Ditto.
* EOControl/EOFaultHandler.m: Ditto.
* EOControl/EOFetchSpecification.m: Ditto.
* EOControl/EOKeyValueArchiver.m: Ditto.
* EOControl/EOKeyValueQualifier.m: Ditto.
* EOControl/EOMutableKnownKeyDictionary.m: Ditto.
* EOControl/EONSAddOns.m: Ditto.
* EOControl/EOObjectStore.m: Ditto.
* EOControl/EOObjectStoreCoordinator.m: Ditto.
* EOControl/EOObserver.m: Ditto.
* EOControl/EOOrQualifier.m: Ditto.
* EOControl/EOQualifier.m: Ditto.
* EOControl/EOUndoManager.m: Ditto.
* EOModeler/EOModelExtensions.m: Ditto.
* EOAccess/EOModel.h/m (+/-[EOModel version]) Remove.
([EOModel init]): Handle version internally.
([EOModel encodeTableOfContentsIntoPropertyList:]): Ditto.
([EOModel encodeIntoPropertyList:]): Ditto.
* EOAccess/EODatabaseContext.m ([EODatabaseContext dealloc]):
Use NSCountHashTable instead of NSCountMapTable on hash table.
* EOAccess/EOAttribute.m ([EOAttribute
newValueForBytes:length:]):
Added casts to avoid warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18500 72102866-910b-0410-8b05-ffd578937521
2004-01-29 13:23:22 +00:00
ayers
067b41a0e3
* EOAccess/EOEntity.m/.h:
...
o added _instanceDictionaryInitializer.
Permit to have a restricted dictionary initializer
(i.e. propertyDictionaryInitializer minus instance
object ivars).
o added NSObject
+_instanceDictionaryInitializerExcludedPropertyNames
o more information in log/exception in _parseRelationshipPath
o added -_instanceDictionaryInitializer
o added - _dictionaryForInstanceProperties
o added -_classForInstances
* EOAccess/EOModel.m:
o added asserts
o clean warnings
* EOAccess/EORelationship.m:
o asserts
o fix in -isReciprocalToRelationship:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18224 72102866-910b-0410-8b05-ffd578937521
2003-11-28 22:47:32 +00:00
ayers
37d9f90bb1
* *.h/m: Updated to new header layout.
...
* Tools/eoutil.m: Added missing include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@17539 72102866-910b-0410-8b05-ffd578937521
2003-08-25 20:01:59 +00:00
ayers
a639ce5fb3
* *.m: Include GNUstep.h if GNUSTEP is not defined for OS X.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@17191 72102866-910b-0410-8b05-ffd578937521
2003-07-11 19:04:05 +00:00
mirko
5984007466
* EOAccess/EOAttribute.m ([EOAttribute -awakeWithPropertyList:]): set
...
the prototype.
([EOAttribute -encodeIntoPropertyList:]): likewise.
([EOAttribute -serverTimeZone]): return the value from the prototype.
([EOAttribute -columnName]): likewise.
([EOAttribute -readFormat]): likewise.
([EOAttribute -writeFormat]): likewise.
([EOAttribute -scale]): likewise.
([EOAttribute -precision]): likewise.
([EOAttribute -width]): likewise.
([EOAttribute -allowsNull]): likewise.
([EOAttribute -isReadOnly]): likewise.
([EOAttribute -valueClassName]): likewise.
([EOAttribute -externalType]): likewise.
([EOAttribute -valueType]): likewise.
* EOAccess/EOAttribute.h: removed ivar _prototypeName.
* EOAccess/EOModel.m ([EOModel -prototypeAttributeNamed:]): implemented.
* EOAccess/EOAdaptor.m|.h ([EOAdaptor -prototypeAttributes]): renamed
from +prototypes and implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@16483 72102866-910b-0410-8b05-ffd578937521
2003-04-18 19:01:06 +00:00