Commit graph

1683 commits

Author SHA1 Message Date
hns
a49b59190c Updated version to 1.4.0-rc1 2004-02-11 16:20:55 +00:00
hns
e1b65bdc8b Implement/fix aggressive property loading for Oracle when loading through
manually set subnodeRelation.
2004-02-11 16:13:44 +00:00
hns
cecd13f7d2 Adjust @throws clause (but be careful not to add any information ;-) 2004-02-11 15:07:14 +00:00
hns
f6b9841947 Print out a warning if a collection specified in a _parent descriptor does not exist. 2004-02-11 15:06:23 +00:00
hns
82c0524e00 Update to Jetty 4.2.17 2004-02-10 23:01:15 +00:00
hns
8bccddd447 Register skin file map with lower case prototype name in addition to the
ordinary name in app.skinfiles.
2004-02-10 15:27:32 +00:00
hns
5a58a5ba8a Use "Root" rather than "root" as prototype when creating a root object in the
embedded database.
2004-02-10 15:13:51 +00:00
hns
a556621554 - Fully reload properties whenever one of its ingredients is changed
(main file or additional props from zip file).
- Remove deprecated constructor
2004-02-10 14:43:55 +00:00
p3k
0def62ee5a fixed script to support JAVA_HOME with spaces 2004-02-10 13:48:45 +00:00
hns
736df12ef5 Make GlobalObject extend Rhino's ImporterTopLevel so we have
the importClass() and importPackage() functions.
2004-02-10 12:46:17 +00:00
hns
81d0a86897 Committing Stefan's patch for getUser()
http://helma.org/bugs/show_bug.cgi?id=331
2004-02-09 19:25:49 +00:00
hns
f6cf3b758a Fixes and improvements for formatting, especially for paragraph formatting mode
and when entering a "semiblock" (e.g. table) in normal mode.
2004-02-07 12:30:18 +00:00
hns
67f3ccea47 Make property name from which skin text is taken settable. 2004-02-05 18:32:57 +00:00
hns
229236b25c Do not treat hop:parent element as property when reading XML-encoded HopObject.
Fixes bug 281: http://helma.org/bugs/show_bug.cgi?id=281
2004-02-05 10:37:23 +00:00
hns
b9646ab20d Set DbMapping on group nodes stored in embedded DB. Otherwise, child
nodes are not reachable by name after the application is restarted.
2004-02-04 17:34:58 +00:00
hns
c6e5dcbc95 Node.getNonVirtualParent doesn't work correctly for transient nodes, so add
a try-catch when setting the back-reference in Relation.setConstraints() since
it may fail.
2004-02-04 16:32:04 +00:00
hns
3101e32ad3 * Do not try to get child nodes from NodeManager if self is transient
* Throw an exception when trying to get a group-subnode from a
   transient node (it doesn't work, so better be clear about it)
* Do not set "name" property in groupby nodes, just stick with "groupname"
* Always set node properties in propMap if self is transient
2004-02-04 16:30:31 +00:00
hns
e3cbb5a732 Implement caching of string buffers. Throw a runtime exception if res.pop() is
called in an invalid state (no buffer or no stack).
2004-02-04 16:25:22 +00:00
hns
e64aa2780e Allow properties to start with underscores, apart from internal HopObject props. 2004-02-03 16:51:15 +00:00
hns
d8e86948db Committing Daniel's proposed fix for bug 295:
http://helma.org/bugs/show_bug.cgi?id=295
2004-02-02 17:34:18 +00:00
hns
f2ad5ea065 Fix bug in getExactPropertyMapping() where we returned the type of the collection
contents rather than the type of the collection itself. Fixes bug 330.
http://helma.org/bugs/show_bug.cgi?id=330
2004-01-30 12:35:43 +00:00
hns
b379b9050e Updating to new CVS snapshot which fixes bug 245:
http://www.helma.org/bugs/show_bug.cgi?id=245
2004-01-29 17:54:24 +00:00
hns
13a9f914be Re-establish old behaviour in addNode() that if an existing child element is present
with the given name it is deleted. Do not wrap addGroupbyNode-code in try/catch.
2004-01-28 15:56:53 +00:00
hns
2f2b0ae051 More fixes for groupby-support in embedded db. 2004-01-28 15:05:10 +00:00
hns
969ef70c93 Several smallish fixes:
* Check for group-by option in parent's child relation in getElementName().
  This is necessary for embedded group nodes to operate as named objects.
* Use specialized get code in getChildElement() if child relation is group-by.
  This is necessary to get group nodes after the change above.
* Fix NullPointerException when name is null in setName()
* Use the groupname as node name and also set an explicit "name" property in
  getGroupbySubnode().
2004-01-27 14:54:59 +00:00
hns
4ec134c41f Check for null child objects in HopObject.list() 2004-01-27 14:22:14 +00:00
hns
c17acaf3a8 Do not consult prototype when getting a JS property via Scritable.get().
This isn't necessary anymore since property and child object getters have been
separated, and we're no more risking to trigger a db select with the get.
2004-01-26 15:01:41 +00:00
hns
bb0bc89fee Add a comment 2004-01-26 14:58:04 +00:00
hns
b0d1f7f5fa Add linebreaks to long comments 2004-01-26 14:57:08 +00:00
hns
f36e390caa Make log level in helma.util.Logging configurable, and make it derault to INFO. 2004-01-23 16:33:45 +00:00
hns
d170d73565 Implement aggressive object reference loading for Oracle pre-9.
See http://helma.org/bugs/show_bug.cgi?id=300
2004-01-22 18:08:50 +00:00
hns
bb9152d2d1 Rhino CompilerEnvirons doesn't need the ErrorReporter anymore. 2004-01-22 16:02:50 +00:00
hns
529a6e7e8c Updated to current CVS snapshot 2004-01-22 16:01:49 +00:00
hns
d88c8c50d6 Updated version date 2004-01-22 16:01:21 +00:00
hns
d62f95e941 * Implement ordered prototype updating in updatePrototypes():
global code is updated first, and parent prototypes are updated before
   their descendants. The purpose is to respect inter-prototype dependencies,
   i.e. HopObject code using global and parent prototype code.
* Marked some private methods as private.
* Use toString() rather than getMessage() on EcmaErrors, otherwise the
   error file/line number is missing from the message.
2004-01-21 16:56:04 +00:00
hns
67e4f11fdb Return an unmodifiable collection in getPrototypes() to prevent major damage 2004-01-21 16:53:06 +00:00
hns
609a8700c9 add two little comments. 2004-01-21 16:52:34 +00:00
hns
e596a60f64 Improved error reporting:
* Track and report errors in parent prototypes
* Fix bug where global error was wrongly reset
2004-01-20 18:48:59 +00:00
hns
908f8134cb Added DynamicGlobalObject. Currently, this just falls back to the
per-thread scope when a get() returns NOT_FOUND on the shared
global scope, fixing http://helma.org/bugs/show_bug.cgi?id=322
(kind of hackish, but ok performance-wise).

Potentially this might also be the place to add compile-once script
modules to the global object using a mixin-style approach.
2004-01-20 17:57:35 +00:00
hns
8236ff3e18 Use core.getScope() rather than using core.global directly. 2004-01-20 17:52:20 +00:00
hns
df57e51235 Rhino doesn't like a null ErrorReporter so we implement a dummy one. 2004-01-16 17:40:11 +00:00
hns
1b08ced5c5 Adapt to new signature of TokenStream constructor again *sigh* 2004-01-16 15:50:39 +00:00
hns
ebb39d0d9e Updating to Rhino snapshot from 2004/01/15. 2004-01-16 14:51:57 +00:00
hns
3e6f4392c7 Add a separate removeChild() function to remove a child object.
Add safety check to remove() to prevent accidental use of the old version.
2004-01-15 18:20:09 +00:00
hns
6f39e2109c Use getChildElement() rather than getNode() to resolve Node based skins. 2004-01-14 16:59:33 +00:00
hns
6a1466b0bc - Rewrote remove() and removeNode(): removeNode() just releases the
child node, but *never* deletes it from the database. remove()
    actually deletes the node from the database and also releases it
    from its parent.
    This affects HopObject.remove() and HopObject.remove(HopObject),
    which use these methods. From now on, the only way to delete a
    HopObject from db is to use the remove() function without arguments.
    HopObject.remove(HopObject) should be used to
       - remove a child object from an embedded db collection without
         deleting it
       - removing a hopobject from a relational db collection with
         cachemode = aggressive if the collection does not belong to the
         child object's parent.
- Do not return on-demand nodes (groupby, accessname) in getProperty().
- Avoid creating loops in parent chain when creating cyclic references
    on transient objects before committing them to db
- Removed unused links vector and code
- Rename Enumerations because enum is a reserved word in Java 1.5
2004-01-14 16:58:38 +00:00
hns
237b785fa9 Remove unregisterNode() because it is doing silly things, like deleting
nodes when it shouldn't.
2004-01-14 16:52:54 +00:00
hns
5b9fe8fbfc Remove funny println() 2004-01-14 16:52:04 +00:00
hns
9e3d057aa8 Do not try to get JavaScript properties in jsFunction_get().
Renamed Enumeration because enum is a reserved word in Java 1.5
2004-01-14 16:35:27 +00:00
hns
a70cf2feaf Reformatting. 2004-01-14 16:34:03 +00:00