Commit graph

1560 commits

Author SHA1 Message Date
hns
d0c7012318 Slightly improved error message when DBSource could not be loaded
(include possibility that driver couldn't be loaded)
2003-11-28 13:09:05 +00:00
hns
a79dfbde18 Rename pushStringBuffer() and popStringBuffer() to push() and pop().
Keeping old versions for backwards-compatibility for the time being.
2003-11-26 13:45:30 +00:00
hns
5647d2bfdc Unwrap arguments to Java objects in addPart(). Also, if the part is a java.io.File,
set the part's file name if no explicit file name is given.
2003-11-26 11:57:56 +00:00
hns
6da249a73d Rethrow wrapped ConcurrencyExceptions. Also updated code to
rethrow wrapped TimeoutExceptions.
2003-11-26 11:38:36 +00:00
hns
846ff46e1e Add leading space in " WHERE " when composing select statements.
Fixes bug http://www.helma.org/bugs/show_bug.cgi?id=313
2003-11-21 16:13:19 +00:00
hns
babe14b16f Reverse sequence of <get-from-nodemgr> and <get-from-propmap> in
getProperty(). This may return old cached properties from the propmap when it
shouldn't, but it fixes the much worse bug where embedded-db-collections are
created from scratch again and again.
2003-11-21 10:59:10 +00:00
hns
76abbbdddc minor formatting fix 2003-11-21 10:56:27 +00:00
hns
88b2d41536 Remove code that was commented out and isn't coming back 2003-11-19 15:10:11 +00:00
hns
a8da2b48bd Re-add check if Relation is PRIMITIVE or REFERENCE when creating properties in createNode
(was removed yesterday, not sure it's really needed)
Remove code that was commented out and isn't coming back
2003-11-19 15:09:54 +00:00
hns
615c9c65d1 Set initial TypeInfo.lastUpdate to -1 so a Prototype with no files (lastUpdate == 0)
will be evaluated at least once. This fixes a bug with empty prototypes not having their
prototype set (i.e. get(), list(), href() etc were unavailable).
2003-11-19 14:43:22 +00:00
hns
37436236df Add an intermediate step when fetching properties from result sets in createNode() so that
we can be sure to use the proper DbMapping for column-to-property mappings (which may change
according to the object's prototype column)
This should fix bug 310. http://helma.org/bugs/show_bug.cgi?id=310
2003-11-18 17:39:22 +00:00
hns
c37d1670d5 Implement protected setName() method to set the property's name 2003-11-18 17:36:46 +00:00
hns
6453f53bd9 Always return our own DbColumns[]. This is needed in order to add/change mappings
in extended prototypes.
2003-11-18 17:36:13 +00:00
hns
b97ba99e22 Reworked Mail object contstuctor code:
* Do not set smtp host unless it is explicitely set in the properties
 * Set message encoding as defined in mail.charset property, defaults to ISO8859-15
 * Cache Mail session in Mail object prototype
 * Store app properties as Java fields in prototype rather than as JS property in constructor
2003-11-18 15:23:09 +00:00
hns
0ea547488b Use Session.getInstance() rather than Session.getDefaultInstance(). This creates a new Session for
each Mail() object, creating an additional overhead of ~10millis, but it picks up changes in the
properties files, fixing bug 308.
http://www.helma.org/bugs/show_bug.cgi?id=308
2003-11-18 12:29:41 +00:00
hns
7040da5438 Update to JavaMail 1.3.1 FCS 2003-11-18 10:32:14 +00:00
hns
10540b83e3 Remove unused imports 2003-11-14 13:40:01 +00:00
hns
e486bbb9b0 Added experimental res.forward() to forward a request to a local (static) resource.
The base resource must be mounted as <app>.protectedStatic in the apps.properties file.
Currently no Content-Type is set on the response.
2003-11-14 13:14:07 +00:00
hns
ea32bc9da4 Added experimental res.forward() to forward a request to a local (static) resource.
The base resource must be mounted as <app>.protectedStatic in the apps.properties file.
2003-11-14 13:13:20 +00:00
hns
0c6d25e038 Added two options for apps.properties for directory indices and index pages:
<app>.staticIndex = true
<app>.staticHome = index.html, default.htm
Default values are (false) for directory listings and "index.html, index.htm" for index pages.
2003-11-14 13:11:25 +00:00
hns
6f213b481c Implement query hints as suggested by bug 306
http://helma.org/bugs/show_bug.cgi?id=306
2003-11-12 12:47:19 +00:00
hns
ae56944420 Clean up Java-Object JS-constructor mess: get the right
constructor and invoke it instead of trying them all.
2003-11-10 16:30:24 +00:00
hns
49b08cc5a7 Update version date 2003-11-06 15:31:08 +00:00
hns
0655b03c60 Simplify property access to only use node or nodeless methods, not both
Fix bug in getById() reported by Juerg Lehni
Throw EvaluatorException instead of JavaScript exception
Remove catched exception not anymore thrown by new rhino snapshot
2003-11-06 14:36:18 +00:00
hns
286d522f0d Adapt to new TokenStream constructor signature from rhino CVS snaphost.
Remove unused imports.
2003-11-06 14:33:21 +00:00
hns
e6cd999687 Remove unused import statements 2003-11-06 14:32:42 +00:00
hns
2d23806586 Update to rhino CVS snapshot from 2003/11/04 2003-11-06 14:31:40 +00:00
hns
2c44477ede Update to Jetty 4.2.14 2003-11-06 14:30:38 +00:00
hns
646ef8f495 Do not wrap primitive property values as objects when retrieving them - as objects
they are unusable for many purpuses, e.g. testing for equality via ==.
2003-11-06 12:00:28 +00:00
hns
16621735c6 Cleanup import statements. 2003-11-05 11:56:19 +00:00
hns
87aca52907 Make return values more "JavaScript compatible" (long->double, String[]-> Object)
to make them work with recent rhino snapshots.
2003-11-05 11:55:45 +00:00
hns
1e75ca9b90 Cleanup import statements 2003-11-05 11:52:22 +00:00
hns
3a61763cbc * Cleanup imports
* Disable ContentEncoding for compatibility with Jetty 4.2
2003-11-05 11:51:47 +00:00
hns
7b97a1314d By default use system class path in helma class loader, but allow for
-Dhelma.exludeSystemClasses=true switch to exclude it.
2003-11-05 11:50:48 +00:00
hns
b8914ce0fd Added separate constructor that allows for a parent class loader argument.
Use the standard parent class loader in the old (single argument) constructor.
2003-11-05 11:48:57 +00:00
hns
2b3b10e1e1 Remove leading underscore from JOIN_PREFIX since Oracle doesn't like it. 2003-10-29 15:38:16 +00:00
hns
45d32cc2da Added a comment that tries to make clear the difference between isVirtual() and isCollection() 2003-10-24 15:35:31 +00:00
hns
9e8f04aa4a Fix bug where collection properties on transient nodes are created over and over again.
Use Relation.isVirtual() rather than Relation.isCollection() to find out if a relation is a collection property.
2003-10-24 15:34:56 +00:00
hns
e8fcab410a Updated version string to 1.3.2-pre1 2003-10-24 12:20:58 +00:00
hns
39d8683b84 Use Relation's additionalTables option when building queries.
This activates the additionalTables feature contributed by Juerg Lehni.
2003-10-23 14:35:02 +00:00
hns
e45ef47dee Commit parsed filter feature contributed by Juerg Lehni. 2003-10-23 14:33:59 +00:00
hns
f08e350367 Renamed invoke methods to make their use clearer. Some minor code cleanup. 2003-10-23 12:53:43 +00:00
hns
c0830be336 DbMapping: Changed most fields visibility to private
DbMapping:   Change getPropertyRelation visibility to private, always use
             getSubnodeRelation from outside instead.
Node:        Rewrote getProperty(String) to be simpler and easier to understand.
             furthermore, getProperty(String) now also returns child objects (subnodes)
             making it unnecessary for calling code to also use getChildElement()
             or getSubnode()
Node:        Fixed NullPointerException in getElementName() for transient nodes
Node:        Use DbMapping.getSubnodeRelation() instead of DbMapping.getPropertyRelation()
NodeManager: Fixes in getNode() methods, which now invoke each other depending on
             key/query type
Relation:    Removed unused arguments from constructor
Relation:    Fixed NullPointerException in createOnDemand()
HopObject:   Do not use getChildElement() in jsFunction_get() (see change in
             Node.getProperty())
HopObject:   Handle case where jsFunction_get() and jsFunction_set() are called with
             non-strings that should be handled as string, e.g.
             org.mozilla.javascript.NativeString

cosmetic cleanup everywhere (imports, unneeded casts, unused fields etc.)
2003-10-23 12:00:35 +00:00
hns
ccf197aeac throw EvaluatorException instead of RuntimeException to prevent Rhino exception wrapping 2003-10-23 11:44:58 +00:00
hns
72e12535f6 Cosmetic cleanup: imports, unused code. 2003-10-23 11:44:36 +00:00
hns
0f5abe0028 throw EvaluatorException instead of RuntimeException to prevent Rhino exception wrapping,
change to new DatabaseObject constructor signature.
2003-10-23 11:44:13 +00:00
hns
010fef5ee4 Minor cosmetic fixes, changed constructor signature 2003-10-23 11:43:28 +00:00
hns
2efb42922d Fix import statements and javadoc comments 2003-10-23 11:04:37 +00:00
hns
dac8f7d54c Fix import statements 2003-10-22 16:53:40 +00:00
hns
33175a07c8 Remove unused import statements.
Changed TypeInfo variable name from "info" to "type"
2003-10-22 16:37:03 +00:00