-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull DBConnection into tosa-runtime, and include an explicit RuntimeB…
…ridge class
- Loading branch information
1 parent
f003080
commit 888c4d4
Showing
12 changed files
with
39 additions
and
81 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
tosa-loader/.idea/libraries/Maven__com_h2database_h2_1_3_146.xml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tosa-loader/.idea/libraries/Maven__commons_dbcp_commons_dbcp_1_4.xml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tosa-loader/.idea/libraries/Maven__commons_pool_commons_pool_1_5_4.xml
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tosa-loader/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_14.xml
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package tosa.impl; | ||
|
||
import gw.lang.reflect.ReflectUtil; | ||
import gw.lang.reflect.module.IModule; | ||
import tosa.api.IDBConnection; | ||
import tosa.api.IDBObject; | ||
import tosa.loader.DBTypeInfoDelegate; | ||
import tosa.loader.IDBType; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: akeefer | ||
* Date: 2/9/12 | ||
* Time: 11:11 AM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
public class RuntimeBridge { | ||
|
||
public static IDBConnection createConnection(String jdbcUrl, IModule module) { | ||
return ReflectUtil.construct("tosa.DBConnection", jdbcUrl, module); | ||
} | ||
|
||
// TODO - AHK - Ideally we'd completely kill the need for this in tosa-loader | ||
public static IDBObject createDBObject(IDBType type, boolean isNew) { | ||
return ReflectUtil.construct("tosa.CachedDBObject", type, isNew); | ||
} | ||
|
||
public static DBTypeInfoDelegate createTypeInfoDelegate() { | ||
return ReflectUtil.construct("tosa.impl.loader.DBTypeInfoDelegateImpl"); | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.