Back to project page Jello.
The source code is released under:
Apache License
If you think the Android project Jello listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.atteo.jello.transaction; //from www . j a v a 2 s . c o m import com.atteo.jello.Record; import com.google.inject.Inject; import com.google.inject.Singleton; @Singleton public class SimpleLockManager implements LockManager { static { System.loadLibrary("SimpleLockManager"); } @Inject private SimpleLockManager() { } public native int acquirePageLock(int id, boolean exclusive); public native int acquireRecordLock(Record record, boolean exclusive); public native void init(); public native void releaseLock(int lockId); }