Advertisement
moonlightcheese

Untitled

May 9th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. public final class CustomerSchema implements BasicColumns {
  2.     public static final String TABLE_NAME = "customer";
  3.     public static final String NAME = "customer_name";
  4.     public static final String BILLING_ADDRESS_ID = "customer_billing_address_id";
  5.  
  6.     public static final ColumnDesc mCustomerDesc = new ColumnDesc();
  7.     static {
  8.         mCustomerDesc.add(NAME,         new String[]{TEXT, NOT_NULL});
  9.         mCustomerDesc.add(BILLING_ADDRESS_ID,   new String[]{INTEGER});
  10.     }
  11.  
  12.     public static final String CREATE_TABLE = DbDesc.getCreateTableStatement(mCustomerDesc, TABLE_NAME);
  13.     public static final String DROP_TABLE = "DROP TABLE IF EXISTS "+TABLE_NAME;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement