---- Swallowmemo0
1. Utilize stored procedures and functions to implement some functions in oql.
2. Use global object version to pin a history point, instead of time.
3. Define interface iversionable to make elements have unified versions.
4. Use serialized XML string to store queries.
5. Use temporary tables to store the query results and then provide functionality of further query on the results.
6. Each time you begin a transaction, all the unsaved data shocould be saved into database.
7. Use 'rowversion' column to mark the version of table records.
---- Swallowmemo1
8. Enable the functionality of Schema history.
9. Maybe swallow cocould upgrade lidate some process logics into automatically generated code, and then use the compiler to build them into binary instructions.
This will avoid runtime constructions and greatly improve the performance.
10. Object pools can be divided into sub pools. Each sub pools holds the objects from a specific ing.
11. defined some special guids for system preserved objects, like schema objects.
12. introduce the concept of 'module/package' to group the persistent types and global variables.
13. Treat arrays as collections with fixed size. And allow multi-dimensioned arrays.
---- Swallowmemo2
14. Scopes shocould essential be implemented and handled at the mapping layer. And, in the upper Object layer, each reference field can be restricted to
Specific Scope of a class.
15. Create reference views for those reference fields, and this will make reference checking much more convenient.
16. from the bottom to the top swallow can be divided into four components. They are laser. toolkit, Laser. Swallow. virtualdatabase,
Laser. Swallow. objectserializer, and laser. Swallow. objectdatabase. Laser. Toolkit is a reusable component which contains several useful classes including
Stringoperator, objectreflector, resourcer and logger.
17. Add a virtual property isdatarecord to class pobject.
---- Swallowmemo3
18. schemacenter can be used to publish and synchronize schema definitions for all interdow/swallow sites on the web. The client can choose wether to import
Those schema objects defined on the schemacenter, but can not modify them. And, once the definitions has been modified on the center, all the counter-parts
On the clients shocould be updated automatically. However, if you like, you can make some modifications based on a published schema object and save it
Another local one.
19. Make persistent objects independent from objectbases.
20. Define a collection class to hold the query results of a specific xrelation. Actually this class uses the cache Mechenism to accelerit the speed.
---- Swallowmemo4
21. Collection class for xrelation is dedicated for implementing collection property of persistent types. It can avoid requery each time the program access
The property, and provide a method named refresh to allow requery on demand.
22. Attach a history link table to each entry of the hashed Object pool. This data structure can provide convenience for retrieving historical objects.
---- Swallowmemo5
23. native code generation: supports generating code directly in multiple kinds of native programming languages. This feature can automatically generate
Applications that can run on their respective platform without swallow. NET and interdow. native code will run faster, but of course loose the functionality
Of Schema operations and some other functionalities provided by swallow. However, still an attractive and unimaginable feature!
24. applies Singleton pattern on each database provider class.
25. Use the base type name prefix to address the overriden members in a persistent type.
26. Introduce type indicators in the select list in oql to allow explicit type casting.
---- Swallowmemo6
27. Swallow may support both concret tables and extended tables to implement type inheritances.
28. interdow shocould be able to separate into several reusable functional blocks. For example, organization & Rights Management. Document Management, workflow
Management, and web presentation system.
29. Implement a querydesigner to conform ally generate query conditions.
---- Swallowmemo7
30. 'uniobject' provides the features of glues (global, localizable, unique, encryptable, serializable). By uniobjects, all the resource data all over
World can be uniied and uniformed for the purpose of data exchange. pobject in Swallow derives from uniobject.
31. Mapping parts consists of two parts, the hierarchy path delimited by backward slash and the structure path delimited by forward slash. In swallow, there
Are three kinds of mappings, root mapping, branch mapping, and leaf mapping. One root mapping can span multiple tables.
32. mapping information is necessary for each swallow data sources or data media, it cocould be used to locate structured properties or distributed objects.
---- Swallowmemo8
33. Mapping ID can be changed when moving or copying a persistent object from one data source to another, but not the instance id. And the oId shocould refers
To the instance/Record ID, the mapping/region will be involved when the full ID is required.
34. The data structure of a swallow Persistent object can be describled or rendered using the cylinder model. The kernel is the current neutral object,
Vertical axis represents the historical time line, and the peripheral surface consists of localized resource objects for multiple cultures.
---- Swallowmemo9
35. Just as the. NET Framework did, swallow allows a persistent object to be associated with several attributes. An Attribute itself is also a persistent
Object. And, furthure more, user can define their own customized attributes, all the attributes must derive from class pattriature. This feature is very
Useful and powerful. For example, you specify another column data type for a primitive type field. There is another utilization of attributes in interdow
Textual field can be distiguished among plain text, HTML, XML, or other markup texts, with the help of attributes.
36. Swallow allows customized value converters when maps properties of. Net types to those of persistent types.
---- Swallowmemo10
37. pointers in Swallow are global pointers, that is a pointer may not only point to a native object in the same database, but also a remote one stored in
Another database/datasource. Thus, a swallow pointer is composed of three parts, they are sequentially objectid, regionid, and sourceid. The last one is
Sourceid, it has the least significance, and may be omitted. If it is omitted, the pointer will point to the local copy of the remote object in the same
Database, which has the same objectid. An integrated global pointer also contains the version number and the culture info.
38. Fields of reference types must keep the same and get synchronized for all the cultures.
---- Swallowmemo11
39. There are three kinds of modes to open a swallow Data source: readonly, lockschema, fullfunctioned. And there are three lock modes when connecting to
Swallow datasource, they are exclusive, shareread, deny all.
40. A swallow datasource can be schema read-only by nature. In this case the schema will be unchangable whatever the connection mode is.
---- Swallowmemo12
41. Fields of a persistent type can be set to three States to the outside client: invisible, readonly, modifiable. In normal cases, a field shoshould be
Modifiable, but some special cases swallow want to make the field invisible or readonly to the outside, and the value of this special field will be mantained
By the swallow or some system from the inside. futhure more, types cocould also be invisible, readonly, modifiable. The state can be changed when it is not
Systempreserved. With the feature introduced above, mapping in Swallow cocould be treated as a systempreserved invisible type, its fields wocould also be
Invisible.
---- Swallowmemo13
42. There are two pools/caches in a swallow datasource, The datapool and the objectpool. The datapool is somewhat a copy of database tables cached in
Memory. It is composed of a set of 2-dimen=tables and all the primitive data are stored in the cells of those table. However, it is specialized in
Providing the convenience to access data cells by instanceid and mappingid. In order to save the memory, the hierarchied fields collections are prepared on
Tables of the datapool. All pobject instances that are referring to the same record will point to the same hierarchied collection in datapool, sharing
Same copy of data. The objectpool caches ever built-up pobjects or. NET persistable objects.
---- Swallowmemo14
43. If a table has subtables then all the version numbers in subtables shoshould be counted into the master table. And the reference count on subtables shoshould
Also be aggregated to the master table.
44. Recursive composition of valuetypes (includes array, which is treated as a valuetype) must prohibited. For example, valuetype A can not contain a as its
Field. And it is also not permitted if a contains B, and then B contains a again. It is in this case a will contain itself indirectly.
45. uniqueid/object, instanceid, recordid, mappingid.
---- Swallowmemo15
46. Swallow will provide the security funcitonality at the database level, but it is optional considering the on execution performance. Users can decide
Wether turn on the security checking when they access swallow database. By the way, the user will also be recorded into the history table.
47. It is stronugly recommended that the outside Application Reuse the built-in security system as their own security system. So the security system must be
Designed to be open and extendable. That is users can extend the system with the customized functionalities. For example, it allows user defined operations
On data, and allows applying rules on filtering users (Database accounts) or data (persistent objects ).
---- Swallowmemo16
48. In order to popularize the use of swallow, Develop ASP. NET Web controls and Windows controls to conveniently display swallow objects on the web pages and
Windows Forms.
49. Swallow shocould support connecting remote databases accessing ss the internet.
50. defines access level on each field of a persistent type. Then Security Settings cocould be set on one level instead of each field.
---- Swallowmemo17
51. Allows caculations on fields/properties of selected objects. Special syntax is introduced for this functionality, that is object {field: expression ,...}.
52. dataslots are utilized by pobjects to store the actual data. Different pobjects can share the same dataslot so that their data will be synchronized
Automatically.
53. unique constraints can be checked on the scope of all the concret tables of a class.
54. Not only types and fields have access modifiers, but also each object instance can have. This feature can flexiblly divides the access permissions of any
Part of data into several kinds of permission levels. e.g. Public, internal, Private. Outside users can access public data by default.
---- Swallowmemo18
55. Design a cache/pool sweeping strategy that allows customization on the priorities/precedences of objects being swept.
56. There may be data centers, registration centers, and authentication centers on the Internet, using swallow databases to provide services of data sharing,
Site registration and account authentication or user identification.
57. Persistent Object locator can be an address pointer, a named variable, or even a function call which returns a temporary object.
---- Swallowmemo19
58. virtual database supports both dialect SQL and interpreted portable SQL.
59. Copying A Persistent object can be shadow copy or deep copy, and referring a remote object can be direct reference or cached reference.
60. Define a standard, named GOI (Global object identifier) for locating an object in the global. It wocould also be able to locate and leverage the old legacy
Data, by implementing some special object locator on specific data source and providing the same interface that conforms to GOI.
---- Swallowmemo20
61. Persistent type can have calculated fields defined. These are actually query fields as their values are derived by doing some calculations on the other
Fields. These fields are not updatable, they are dedicated for convenient queries.
62. Uni-Object/uuobject represents that the object is uniformed and unique.
---- Swallowmemo21
63. A Persistent object can be systempreserved, applicationpreserved, synchronized or local.
64. A persistent pointer can be nullpointer, invalidpointer, and validpointer.
65. pvariable is somehow like static pfield, counter t its declaring type is null. So, maybe in Swallow, all static fields are treated as variables. That is
Static fields will be represented using pvariable in Swallow.
66. If a reference typed object occurred in the select list, return the address (objectid) together with the version number.
67. Swallow may provide the automatic incremental service for user to get a unique integer as an ID.
---- Swallowmemo22
68. Two manners to synchronize remote objects: Real time synchronization, delayed or scheduled synchronization (more exactly, this is an asynchronized mode ).
As there must be a local copy of the remote object, we also call the local one 'shadow object '.
69. U = uniied/unique/uniformed.
70. glues = Global + localizable + uniied + encryptable + serializable.