我想翻译一些在Java中目标C的代码...数据库事务在Java中Android上
[_db beginTransaction];
Date now = [[NSDate alloc] init];
boolean result = [_db executeUpdate:updateQuery, [self stringToDB:account.userId],
[self integerToDB:account.accountId],
[self integerToDB:account.accountType],
[self stringToDB:account.accountName],
];
[_db commit];
return true;
谁能告诉我怎样才能在Java中实现BeginTransaction and Commit
?
这就是我要找的:)阅读文档 – 2012-02-02 05:55:26