我想翻譯一些在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