-
Notifications
You must be signed in to change notification settings - Fork 8
/
DataMgr_RAM.cfc
22 lines (17 loc) · 1.07 KB
/
DataMgr_RAM.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!--- 2.6 (Build 180) --->
<!--- Last Updated: 2017-08-08 --->
<!--- Created by Steve Bryant 2004-12-08 --->
<cfcomponent extends="DataMgr_Derby" displayname="Data Manager for Apache Derby in RAM" hint="I manage data interactions with an in-memory Derby database.">
<cffunction name="init" access="public" returntype="DataMgr" output="no" hint="I instantiate and return this object.">
<cfargument name="datasource" type="string" required="no" default="#variables.DefaultDatasource#">
<cfargument name="database" type="string" required="no">
<cfargument name="username" type="string" required="no">
<cfargument name="password" type="string" required="no">
<cfargument name="SmartCache" type="boolean" default="false">
<cfargument name="SpecialDateType" type="string" default="CF">
<cfargument name="XmlData" type="string" required="no">
<cfset var me = super.init(argumentCollection=arguments)>
<cfset variables.conn = createObject('java','java.sql.DriverManager').getConnection('jdbc:derby:memory:#arguments.datasource#;create=true')>
<cfreturn me>
</cffunction>
</cfcomponent>