Back to project page android-webview-example.
The source code is released under:
Apache License
If you think the Android project android-webview-example 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.significantfiles.mrcounter.db; //from ww w . j a va2 s .c o m import static com.significantfiles.android.sqlite.query.InsertTxChoice.ROLLBACK; import java.util.Collection; import com.significantfiles.android.provider.table.OrderBy; import com.significantfiles.android.sqlite.query.Insert; import com.significantfiles.android.sqlite.query.QueryType; import com.significantfiles.android.sqlite.query.SQL; @DaoConfig( order = OrderBy.ASC ) public interface CreditDao { @Insert(table=Credit.class, tx=ROLLBACK) public void insertNewCredit(final Credit credit); /** * @param credit */ @SQL( type=QueryType.INSERT, query="INSERT INTO Credit ( CREDIT_BY, CREDIT_VALUE, CREATED_AT ) VALUES ( ?1, ?2, ?3 )", path="credit" ) public void newCredit( final long contactId, final double value, final long createdAt ); @SQL( type=QueryType.SELECT, query="SELECT * FROM Credit WHERE _ID=$id$", path="credit/#" ) public Credit findCreditById(final long id); @SQL( type=QueryType.SELECT, query="", path="credit/#" ) public Collection<Credit> findAllCredits(); }