-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename plugins for H2 and Derby so correct prototypes can be found
- Loading branch information
Showing
6 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
Frameworks/PlugIns/DerbyPlugIn/Sources/er/derby/ERDerbyPlugInPrincipal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package er.derby; | ||
|
||
import com.webobjects.jdbcadaptor.ERDerbyPlugIn; | ||
import com.webobjects.jdbcadaptor._DerbyPlugIn; | ||
import com.webobjects.jdbcadaptor.JDBCPlugIn; | ||
|
||
/** | ||
* 5.4 declares the same class name for the DerbyPlugIn. If your classpath isn't | ||
* exactly right, they'll win, so we pushed the real code into ERDerbyPlugIn and | ||
* we set a custom principal class that registers the ER variant that is | ||
* exactly right, they'll win, so we pushed the real code into _DerbyPlugIn and | ||
* we set a custom principal class that registers the _ variant that is | ||
* "guaranteed" to not have collisions as the plugin for the "derby" | ||
* subprotocol. | ||
* | ||
* @author hprange guided by mschrag | ||
*/ | ||
public class ERDerbyPlugInPrincipal { | ||
static { | ||
JDBCPlugIn.setPlugInNameForSubprotocol(ERDerbyPlugIn.class.getName(), "derby"); | ||
JDBCPlugIn.setPlugInNameForSubprotocol(_DerbyPlugIn.class.getName(), "derby"); | ||
} | ||
} |
12 changes: 7 additions & 5 deletions
12
Frameworks/PlugIns/H2PlugIn/Sources/com/webobjects/jdbcadaptor/H2PlugIn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package com.webobjects.jdbcadaptor; | ||
|
||
import er.h2.jdbcadaptor.ERH2PlugIn; | ||
|
||
/** | ||
* This is a default plugIn for the H2 database protocol. | ||
* | ||
* 5.4 declares the same class name for the H2PlugIn. If your classpath isn't | ||
* exactly right, they'll win, so we pushed the real code into _H2PlugIn and | ||
* we set a custom principal class that registers the _ variant that is | ||
* "guaranteed" to not have collisions as the plugin for the "h2" | ||
* subprotocol. | ||
* | ||
* @author ldeck | ||
*/ | ||
public class H2PlugIn extends ERH2PlugIn { | ||
|
||
public class H2PlugIn extends _H2PlugIn { | ||
public H2PlugIn(final JDBCAdaptor adaptor) { | ||
super(adaptor); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
Frameworks/PlugIns/H2PlugIn/Sources/er/h2/ERH2PlugInPrincipal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
package er.h2; | ||
|
||
import er.h2.jdbcadaptor.ERH2PlugIn; | ||
import com.webobjects.jdbcadaptor._H2PlugIn; | ||
import com.webobjects.jdbcadaptor.JDBCPlugIn; | ||
|
||
/** | ||
* This principal class registers the ERH2PlugIn class as the PlugIn | ||
* for the "h2" database for the "h2" subprotocol. | ||
* This principal class registers the _H2PlugIn class as the PlugIn | ||
* for the H2 database for the "h2" subprotocol. | ||
* | ||
* 5.4 declares the same class name for the H2PlugIn. If your classpath isn't | ||
* exactly right, they'll win, so we pushed the real code into _H2PlugIn and | ||
* we set a custom principal class that registers the _ variant that is | ||
* "guaranteed" to not have collisions as the plugin for the "h2" | ||
* subprotocol. | ||
* | ||
* @author ldeck | ||
*/ | ||
public class ERH2PlugInPrincipal { | ||
static { | ||
JDBCPlugIn.setPlugInNameForSubprotocol(ERH2PlugIn.class.getName(), "h2"); | ||
JDBCPlugIn.setPlugInNameForSubprotocol(_H2PlugIn.class.getName(), "h2"); | ||
} | ||
} |