Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
e783211f
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e783211f
编写于
4月 22, 2009
作者:
K
Keith Donald
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
polish
上级
ec463a32
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
5 deletion
+6
-5
org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabase.java
...gframework/jdbc/datasource/embedded/EmbeddedDatabase.java
+1
-0
org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java
...ork/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java
+5
-5
未找到文件。
org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabase.java
浏览文件 @
e783211f
...
@@ -27,6 +27,7 @@ public interface EmbeddedDatabase extends DataSource {
...
@@ -27,6 +27,7 @@ public interface EmbeddedDatabase extends DataSource {
/**
/**
* Shutdown this embedded database.
* Shutdown this embedded database.
* TODO - annotate with @PreDestroy for invocation by Spring container?
*/
*/
void
shutdown
();
void
shutdown
();
}
}
org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseBuilder.java
浏览文件 @
e783211f
...
@@ -25,7 +25,7 @@ import org.springframework.core.io.ResourceLoader;
...
@@ -25,7 +25,7 @@ import org.springframework.core.io.ResourceLoader;
* Usage example:
* Usage example:
* <pre>
* <pre>
* EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
* EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
* EmbeddedDatabase db = builder.sc
hema("schema.sql").testData
("test-data.sql").build();
* EmbeddedDatabase db = builder.sc
ript("schema.sql").script
("test-data.sql").build();
* db.shutdown();
* db.shutdown();
* </pre>
* </pre>
* @author Keith Donald
* @author Keith Donald
...
@@ -48,7 +48,7 @@ public class EmbeddedDatabaseBuilder {
...
@@ -48,7 +48,7 @@ public class EmbeddedDatabaseBuilder {
/**
/**
* Sets the name of the embedded database
* Sets the name of the embedded database
* Defaults to 'testdb' if not called.
* Defaults to 'testdb' if not called.
* @param database
Type the embedded database typ
e
* @param database
Name the database nam
e
* @return this, for fluent call chaining
* @return this, for fluent call chaining
*/
*/
public
EmbeddedDatabaseBuilder
name
(
String
databaseName
)
{
public
EmbeddedDatabaseBuilder
name
(
String
databaseName
)
{
...
@@ -59,7 +59,7 @@ public class EmbeddedDatabaseBuilder {
...
@@ -59,7 +59,7 @@ public class EmbeddedDatabaseBuilder {
/**
/**
* Sets the type of embedded database.
* Sets the type of embedded database.
* Defaults to HSQL if not called.
* Defaults to HSQL if not called.
* @param databaseType the
embedded
database type
* @param databaseType the database type
* @return this, for fluent call chaining
* @return this, for fluent call chaining
*/
*/
public
EmbeddedDatabaseBuilder
type
(
EmbeddedDatabaseType
databaseType
)
{
public
EmbeddedDatabaseBuilder
type
(
EmbeddedDatabaseType
databaseType
)
{
...
@@ -86,7 +86,7 @@ public class EmbeddedDatabaseBuilder {
...
@@ -86,7 +86,7 @@ public class EmbeddedDatabaseBuilder {
}
}
/**
/**
* Factory method that creates a
embedded database builder that loads
resources relative to the provided class.
* Factory method that creates a
EmbeddedDatabaseBuilder that loads SQL
resources relative to the provided class.
* @param clazz the class to load relative to
* @param clazz the class to load relative to
* @return the embedded database builder
* @return the embedded database builder
*/
*/
...
@@ -105,7 +105,7 @@ public class EmbeddedDatabaseBuilder {
...
@@ -105,7 +105,7 @@ public class EmbeddedDatabaseBuilder {
/**
/**
* Factory method that builds a default EmbeddedDatabase instance.
* Factory method that builds a default EmbeddedDatabase instance.
* The default is HSQL with a schema created from classpath:schema.sql and test-data loaded from classpath:test-data.sql.
* The default i
nstance i
s HSQL with a schema created from classpath:schema.sql and test-data loaded from classpath:test-data.sql.
* @return an embedded database
* @return an embedded database
*/
*/
public
static
EmbeddedDatabase
buildDefault
()
{
public
static
EmbeddedDatabase
buildDefault
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录