Patrick Linskey
dc797ab923
OPENJPA-160. Non-finalizing implementation is automatically selected when createContainerEntityManagerFactory() is invoked; clarified some method signatures.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513183 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 06:31:50 +00:00
Patrick Linskey
661f673890
OPENJPA-160. Removed BrokerImpl test to make this work properly for subclasses. Since BrokerImpl is cloneable, all subtypes will also be cloneable, so we don't really need to test for anything.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512934 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 19:52:24 +00:00
Patrick Linskey
560f895102
OPENJPA-160
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512906 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 19:20:51 +00:00
A. Abram White
4bf637f074
Improve error checks for mapped-by mappings. Mark deleted instances as
...
eligible for state restore on rollback so they don't always clear. Always
cascade attach to embedded instances.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512350 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:14:45 +00:00
Kevin W. Sutter
5ae6e7594f
These changes are reverting the changes integrated for revisions 510336 and 510281. From the remarks on the dev mailing list, the basic idea is sound, we just need to re-visit the implementation a bit.
...
One "problem" that I couldn't resolve with this revert process was to restore the svn history for the DB2Dictionary.java part. Somehow, the history for this part was lost when revision 510336 was integrated. I have not found a means of restoring that history. But, at least the contents are back to a known state.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512327 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 17:23:27 +00:00
Patrick Linskey
7db81e3d6c
OPENJPA-158 -- reduced log level to TRACE for a variety of enhancement and metadata related messages
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512107 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 01:59:42 +00:00
Srinivasa Segu
2a95f80f44
OPENJPA-151.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@511998 13f79535-47bb-0310-9956-ffa450edef68
2007-02-26 20:46:03 +00:00
Patrick Linskey
e20afb3134
OPENJPA-161
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@511043 13f79535-47bb-0310-9956-ffa450edef68
2007-02-23 18:25:55 +00:00
David J. Wisneski
2d3871b86b
DB2 Optimize for clause enhancement
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510281 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 22:50:04 +00:00
Pinaki Poddar
018cf3278a
Use safe and standard way to print a pc.toString() using Exceptions.toString(Object) when logging messages that may cause infinite loop.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509691 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 18:08:22 +00:00
Pinaki Poddar
e3f8a96205
Prevent access to the pc fields by implictly invoking _pc.toString() as that may cause infinite loop if toString() again tries to access unloaded field(s)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509688 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 17:57:24 +00:00
A. Abram White
1b446958f5
OPENJPA-146 : When copying an OID superclass field for re-mapping, revert type
...
to PC. It will re-resolve to OID on its own when the field's metadata is
resolved, and in the meantime it will ensure we use the same path for
metadata resolution as non-copied fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509632 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 16:33:54 +00:00
Srinivasa Segu
09e7aab777
Capture the version fields into the memento when setting the savepoint and restore the version information into the StateManagerImpl as a part of the rollbackToSavepoint call.
...
Fix addresses OPENJPA-154.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509411 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 02:00:50 +00:00
A. Abram White
8974a09908
Only substantive change is flipping the order of the args in an
...
ImplHelper.isAssignable call in FetchConfigurationImpl. We want to test
whether the type we're traversing to is derived from the type we're traversing
from.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508459 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 16:02:05 +00:00
Kevin W. Sutter
dfc102beba
OPENJPA-141. A few improvements to the performance-related changes done with the previous Issue. Reference OPENJPA-141 for details. Biggest change was moving some of the common caching code to ImplHelper.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508395 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 13:52:08 +00:00
A. Abram White
7a2330ce3b
Compare Configuration instances on their full properties, including defaults.
...
Also serialize the full properties because product derivations aren't re-run
on deserialize, so we need to know the complete defaults, etc. We still track
the user-given properties separately so they can be used in factory pooling.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@507643 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 17:53:13 +00:00
Kevin W. Sutter
e14378f7f3
OPENJPA-138. Some updates to help with performance of OpenJPA in an application server environment. Details can be found in the OPENJPA-138 Issue.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506230 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 02:33:05 +00:00
Marc Prud'hommeaux
195d5ddd6c
Corrected issue with revision 505052 to ensure that isAssignable(from, to) passes if one element is null and the other element is an empty array (which indicates a compatible method signature).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505166 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 04:05:20 +00:00
Kevin W. Sutter
7ea424bf0b
OPENJPA-139. Need to include JavaTypes.CALENDAR in the switch statement when attempting to attach a field of type CALENDAR.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505099 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 00:34:44 +00:00
A. Abram White
0a072b8a50
Fix possible NPE introduced in recent changes to MethodLifecycleCallbacks.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505052 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 22:12:06 +00:00
Kevin W. Sutter
859da3f913
OPENJPA-133. Change the processing of the getMethod() method to properly recognize non-public callback methods, along with validating the parameter types.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504970 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 17:21:19 +00:00
Pinaki Poddar
c13e2baab7
Dynamic implementation class of a subInterface is loaded with the classloader of the dynamic implementaion of the superInterface.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504216 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 17:46:33 +00:00
Kevin W. Sutter
326df83bb2
Use single line commenting style (//) instead of the block commenting style (/*..*/).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@503757 13f79535-47bb-0310-9956-ffa450edef68
2007-02-05 16:18:23 +00:00
Kevin W. Sutter
d826caf711
OPENJPA-119. Needed to allow the EM.clear operation to perform without doing an implicit flush. Introduced a new boolean
...
parameter to indicate whether a flush is desired or not. This allows both the new (correct) behaviour for JPA as well as the
old behaviour for other persistence personalities (JDO, etc). I also introduced a new testcase for this scenario, and updated
a couple of other tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502751 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 21:12:35 +00:00
Marc Prud'hommeaux
9b78cd5441
Changed openjpac task to be called "enhance" instead..
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502699 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 19:39:14 +00:00
Patrick Linskey
84763ce94e
OPENJPA-37: changed kodoc to openjpac
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502394 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 23:04:22 +00:00
Kevin W. Sutter
3c58b8840c
Changes for OPENJPA-115. Removed the explicit lock/unlock invocations when obtaining an EM (broker). Changed
...
_brokers to use ConcurrentReferenceHashSet (with weak references). And, due to the weak references (probable
cause), I had to check for nulls when iterating through the _brokers during the close processing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502392 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 22:53:20 +00:00
Patrick Linskey
0b60936d33
OPENJPA-37
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502374 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 22:03:31 +00:00
A. Abram White
2e0c5d576c
Avoid NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502369 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 21:58:20 +00:00
Pinaki Poddar
a11158d51a
Classloader used to generate dynamic implementaion of managed interface uses interfaces' classloader as parent
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502326 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 19:36:21 +00:00
A. Abram White
11e3835d5f
Clear bytecode Project of ProxyManagerImpl to save memory.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502277 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 16:40:26 +00:00
Marc Prud'hommeaux
2ac1bcccbb
OPENJPA-118: Implemented patch provided by David Ezzio for broken openjpa.AutoDetach behavior
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502022 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 22:27:29 +00:00
A. Abram White
372e899981
Change EntityManagerImpl.assertOpen to EntityManagerImpl.assertNotCloseInvoked
...
to more accurately reflect the purpose of the method. Fix several instances
where we were relying on the method to actually check whether the underlying
broker was open.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501468 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 16:56:13 +00:00
A. Abram White
5f76ea2eaf
Fix documentation on openjpa.LockManager property. Remove some redundant logic
...
from BrokerImpl.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501171 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 20:11:43 +00:00
Marc Prud'hommeaux
2c5377f687
Throw an exception if the user tries to perform an bulk update with a parameter other than a primitive.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499601 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 22:48:23 +00:00
Patrick Linskey
6e079939b5
improved error message. Yes, this message discusses concrete means for configuration that are not really in the purview of openjpa-kernel. But the benefit of directly mentioning the causes of the problem outweigh the coupling to the underlying configuration mechanisms, at least until we decide to move the error message generation to spec-dependent subtypes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499317 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 08:55:26 +00:00
Marc Prud'hommeaux
d1d0ef0260
When performing a bulk update in-memory, also support Literal and Constant parameters, since they might be used in their JDBC implementation when the original query was executed against the database.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499196 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 00:39:18 +00:00
Pinaki Poddar
4a0ea7646b
TCP RemoteCommitProviders deserializes by input streams that are smart in resolving classes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499179 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 23:06:29 +00:00
A. Abram White
81c9a795ca
Use additional contextual classloaders when deserializing lob data.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499137 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 21:10:21 +00:00
Srinivasa Segu
45d90fd282
Fixes to parse and use SqlResultSetMapping, SqlResultSetMappings annotations.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@498850 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 23:33:08 +00:00
Patrick Linskey
a40baca273
reformatted ugly code
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497614 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 22:52:32 +00:00
Patrick Linskey
c7128669c7
fixes for OPENJPA-102 and OPENJPA-104
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497185 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 21:40:37 +00:00
Patrick Linskey
d58ba3b25b
removed unneeded field
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496922 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 03:28:57 +00:00
Patrick Linskey
3edddc6125
improved trace messages
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496914 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 02:00:56 +00:00
A. Abram White
430d90f05f
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495684 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 18:50:53 +00:00
A. Abram White
3dd1c43165
Allow use of reflection to access private id fields of pre-1.5 classes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495650 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 17:25:25 +00:00
Patrick Linskey
6055a34b42
OPENJPA-100: <jar-file> processing bugfix, and logging improvements
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495028 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 23:06:42 +00:00
Patrick Linskey
c6121be583
import cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495017 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 22:42:19 +00:00
Marc Prud'hommeaux
9549416b5f
Don't clear the @Version field when we clear the internal version.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@494551 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 20:08:10 +00:00
Marc Prud'hommeaux
799fc69719
Make sure we keep the entity's @Version field in sync with any changes to the internal version of the instance.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@494298 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 02:00:15 +00:00