本文整理汇总了Java中com.squareup.sqlbrite.BriteDatabase.executeInsert方法的典型用法代码示例。如果您正苦于以下问题:Java BriteDatabase.executeInsert方法的具体用法?Java BriteDatabase.executeInsert怎么用?Java BriteDatabase.executeInsert使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.squareup.sqlbrite.BriteDatabase
的用法示例。
在下文中一共展示了BriteDatabase.executeInsert方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, Library library) {
synchronized (this) {
insertLibrary.bind(
library.id(),
library.packageName(),
library.sourceDir(),
library.title(),
library.subtitle(),
library.description(),
library.websiteUrl(),
library.type(),
library.createdAt(),
library.updatedAt());
return db.executeInsert(insertLibrary.table, insertLibrary.program);
}
}
示例2: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, Permission permission) {
synchronized (this) {
insertPermission.bind(
permission.id(),
permission.title(),
permission.description(),
permission.protectionLevel(),
permission.permissionGroup());
return db.executeInsert(insertPermission.table, insertPermission.program);
}
}
示例3: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, PermissionGroup permissionGroup) {
synchronized (this) {
insertGroup.bind(
permissionGroup.id(),
permissionGroup.title(),
permissionGroup.description());
return db.executeInsert(insertGroup.table, insertGroup.program);
}
}
示例4: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, AppLibraryPermission appLibraryPermission) {
synchronized (this) {
insertAppLibraryPermission.bind(
appLibraryPermission.appId(),
appLibraryPermission.libraryId(),
appLibraryPermission.permissionId());
return db.executeInsert(insertAppLibraryPermission.table, insertAppLibraryPermission.program);
}
}
示例5: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, AppPermission appPermission) {
synchronized (this) {
insertPermissionApp.bind(
appPermission.appId(),
appPermission.permissionId(),
appPermission.isGranted());
return db.executeInsert(insertPermissionApp.table, insertPermissionApp.program);
}
}
示例6: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, Version version) {
synchronized (this) {
insertVersion.bind(
version.appId(),
version.versionCode(),
version.versionName(),
version.createdAt());
return db.executeInsert(insertVersion.table, insertVersion.program);
}
}
示例7: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, App app) {
synchronized (this) {
insertApp.bind(
app.label(),
app.packageName(),
app.process(),
app.sourceDir(),
app.targetSdk(),
app.flags(),
app.analyzedAt());
return db.executeInsert(App.TABLE_NAME, insertApp.program);
}
}
示例8: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, ProtectedMethod protectedMethod) {
synchronized (this) {
insertMethod.bind(
protectedMethod.permissionId(),
protectedMethod.declaringType(),
protectedMethod.returnType(),
protectedMethod.name(),
protectedMethod.argTypes());
return db.executeInsert(insertMethod.table, insertMethod.program);
}
}
示例9: insert
import com.squareup.sqlbrite.BriteDatabase; //导入方法依赖的package包/类
public long insert(BriteDatabase db, String libraryId, long appId) {
synchronized (this) {
insertLibraryApp.bind(appId, libraryId);
return db.executeInsert(insertLibraryApp.table, insertLibraryApp.program);
}
}