Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
c4bbfa8f
提交
c4bbfa8f
authored
11月 27, 2010
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Android API support (work in progress).
上级
b958adc8
显示空白字符变更
内嵌
并排
正在显示
15 个修改的文件
包含
514 行增加
和
0 行删除
+514
-0
ContentResolver.java
h2/src/tools/android/content/ContentResolver.java
+15
-0
ContentValues.java
h2/src/tools/android/content/ContentValues.java
+15
-0
Context.java
h2/src/tools/android/content/Context.java
+18
-0
package.html
h2/src/tools/android/content/package.html
+15
-0
AbstractCursor.java
h2/src/tools/android/database/AbstractCursor.java
+15
-0
AbstractWindowedCursor.java
h2/src/tools/android/database/AbstractWindowedCursor.java
+15
-0
CharArrayBuffer.java
h2/src/tools/android/database/CharArrayBuffer.java
+15
-0
ContentObserver.java
h2/src/tools/android/database/ContentObserver.java
+15
-0
Cursor.java
h2/src/tools/android/database/Cursor.java
+293
-0
CursorWindow.java
h2/src/tools/android/database/CursorWindow.java
+15
-0
DataSetObserver.java
h2/src/tools/android/database/DataSetObserver.java
+15
-0
SQLException.java
h2/src/tools/android/database/SQLException.java
+23
-0
package.html
h2/src/tools/android/database/package.html
+15
-0
SQLiteClosable.java
h2/src/tools/android/database/sqlite/SQLiteClosable.java
+15
-0
package.html
h2/src/tools/android/database/sqlite/package.html
+15
-0
没有找到文件。
h2/src/tools/android/content/ContentResolver.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
content
;
/**
* TODO
*/
public
class
ContentResolver
{
// empty
}
h2/src/tools/android/content/ContentValues.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
content
;
/**
* A key-value pair.
*/
public
class
ContentValues
{
// TODO
}
h2/src/tools/android/content/Context.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
content
;
/**
* TODO
*/
public
class
Context
{
/**
* The file may only be accessed by this application, or by application with the same user ID.
*/
public
static
final
int
MODE_PRIVATE
=
0
;
}
h2/src/tools/android/content/package.html
0 → 100644
浏览文件 @
c4bbfa8f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
Javadoc package documentation
</title></head><body
style=
"font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"
><p>
This package contains classes that are needed to compile the H2 Android database API.
</p></body></html>
\ No newline at end of file
h2/src/tools/android/database/AbstractCursor.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* This class implements some of the cursor operations.
*/
public
abstract
class
AbstractCursor
implements
Cursor
{
// empty
}
h2/src/tools/android/database/AbstractWindowedCursor.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* The base class for a database cursor.
*/
public
abstract
class
AbstractWindowedCursor
extends
AbstractCursor
{
// empty
}
h2/src/tools/android/database/CharArrayBuffer.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* TODO
*/
public
class
CharArrayBuffer
{
// empty
}
h2/src/tools/android/database/ContentObserver.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* TODO
*/
public
class
ContentObserver
{
// empty
}
h2/src/tools/android/database/Cursor.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
import
android.content.ContentResolver
;
import
android.net.Uri
;
import
android.os.Bundle
;
/**
* This interface allows to access the rows in a result set.
*/
public
interface
Cursor
{
/**
* Get the row count.
*
* @return the row count
*/
int
getCount
();
/**
* Deactivate the cursor. The cursor can be re-activated using requery().
*/
void
deactivate
();
/**
* Get the column index. The first column is 0.
*
* @param columnName the name of the column
* @return the column index, or -1 if the column was not found
*/
int
getColumnIndex
(
String
columnName
);
/**
* Close the cursor.
*/
void
close
();
/**
* Get the column names.
*
* @return the column names
*/
String
[]
getColumnNames
();
/**
* Register a data set observer.
*
* @param observer the observer
*/
void
registerDataSetObserver
(
DataSetObserver
observer
);
/**
* Re-run the query.
*
* @return TODO
*/
boolean
requery
();
/**
* Move the cursor by the given number of rows forward or backward.
*
* @param offset the row offset
* @return true if the operation was successful
*/
boolean
move
(
int
offset
);
/**
* TODO
*/
void
copyStringToBuffer
(
int
columnIndex
,
CharArrayBuffer
buffer
);
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
byte
[]
getBlob
(
int
columnIndex
);
/**
* Get the number of columns in the result.
*
* @return the column count
*/
int
getColumnCount
();
/**
* Get the column index for the given column name, or throw an exception if
* not found.
*
* @param columnName the column name
* @return the index
*/
int
getColumnIndexOrThrow
(
String
columnName
);
/**
* Get the name of the given column.
*
* @param columnIndex the column index (0, 1,...)
* @return the name
*/
String
getColumnName
(
int
columnIndex
);
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
double
getDouble
(
int
columnIndex
);
/**
* TODO
*
* @return TODO
*/
Bundle
getExtras
();
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
float
getFloat
(
int
columnIndex
);
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
int
getInt
(
int
columnIndex
);
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
long
getLong
(
int
columnIndex
);
/**
* Get the current row number
*
* @return the row number TODO 0, 1,...
*/
int
getPosition
();
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
short
getShort
(
int
columnIndex
);
/**
* Get the value from the current row.
*
* @param columnIndex the column index (0, 1,...)
* @return the value
*/
String
getString
(
int
columnIndex
);
/**
* The method onMove is only called if this method returns true.
*
* @return true if calling onMove is required
*/
boolean
getWantsAllOnMoveCalls
();
/**
* Check if the current position is past the last row.
*
* @return true if it is
*/
boolean
isAfterLast
();
/**
* Check if the current position is before the first row.
*
* @return true if it is
*/
boolean
isBeforeFirst
();
/**
* Check if the cursor is closed.
*
* @return true if it is
*/
boolean
isClosed
();
/**
* Check if the current position is on the first row.
*
* @return true if it is
*/
boolean
isFirst
();
/**
* Check if the current position is on the last row.
*
* @return true if it is
*/
boolean
isLast
();
/**
* Check if the value of the current row is null.
*
* @param columnIndex the column index (0, 1,...)
* @return true if it is
*/
boolean
isNull
(
int
columnIndex
);
/**
* Move to the first row.
*
* @return TODO
*/
boolean
moveToFirst
();
/**
* Move to the last row.
*
* @return TODO
*/
boolean
moveToLast
();
/**
* Move to the next row.
*
* @return TODO
*/
boolean
moveToNext
();
/**
* Move to the given row.
*
* @param position TODO
* @return TODO
*/
boolean
moveToPosition
(
int
position
);
/**
* Move to the previous row.
*
* @return TODO
*/
boolean
moveToPrevious
();
/**
* TODO
*
* @param observer TODO
*/
void
registerContentObserver
(
ContentObserver
observer
);
/**
* TODO
*
* @param extras TODO
* @return TODO
*/
Bundle
respond
(
Bundle
extras
);
/**
* TODO
*
* @param cr TODO
* @param uri TODO
*/
void
setNotificationUri
(
ContentResolver
cr
,
Uri
uri
);
/**
* TODO
*
* @param observer TODO
*/
void
unregisterContentObserver
(
ContentObserver
observer
);
/**
* TODO
*
* @param observer TODO
*/
void
unregisterDataSetObserver
(
DataSetObserver
observer
);
}
h2/src/tools/android/database/CursorWindow.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* An instance of this class can contain multiple rows.
*/
public
class
CursorWindow
{
// empty
}
h2/src/tools/android/database/DataSetObserver.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* A listener for changes in a data set.
*/
public
abstract
class
DataSetObserver
{
// empty
}
h2/src/tools/android/database/SQLException.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
;
/**
* A database exception.
*/
public
class
SQLException
extends
Exception
{
private
static
final
long
serialVersionUID
=
1L
;
public
SQLException
()
{
super
();
}
public
SQLException
(
String
error
)
{
super
(
error
);
}
}
h2/src/tools/android/database/package.html
0 → 100644
浏览文件 @
c4bbfa8f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
Javadoc package documentation
</title></head><body
style=
"font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"
><p>
This package contains classes that are needed to compile the H2 Android database API.
</p></body></html>
\ No newline at end of file
h2/src/tools/android/database/sqlite/SQLiteClosable.java
0 → 100644
浏览文件 @
c4bbfa8f
/*
* Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version
* 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html). Initial Developer: H2 Group
*/
package
android
.
database
.
sqlite
;
/**
* An object that can be closed.
*/
public
abstract
class
SQLiteClosable
{
// empty
}
h2/src/tools/android/database/sqlite/package.html
0 → 100644
浏览文件 @
c4bbfa8f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2010 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
Javadoc package documentation
</title></head><body
style=
"font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"
><p>
This package contains classes that are needed to compile the H2 Android database API.
</p></body></html>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论