public static void main ( String [ ] args ) throws InterruptedException { UserProfileExample example = new UserProfileExample ( ) ; // Let's create some user profiles example . create ( "John" , "Doe" , true ) ; example . create ( "Jane" , "Doe" , false ) ; example . create ( "Foo" , "Bar" , false ) ; // Now print those user profiles. This doesn't include actions example . printUserProfies ( ) ; // Now we'll add some user actions to each user example . addAction ( "Jane" , "Doe" , "last_login" , "2013-07-30 00:00:00" ) ; example . addAction ( "Jane" , "Doe" , "ad_click" , "example.com_ad_id" ) ; example . addAction ( "Foo" , "Bar" , "last_login" , "2013-07-30 00:00:00" ) ; // Print the user profiles and actions for the Does. This will include the // above actions, as well as a profile_created action set when creating the // user profiles. example . printUserProfileActionsForLastName ( "Doe" ) ; // Update Jane to a married status. example . updateUserProfile ( "Jane" , "Doe" , true ) ; // Reprint the user profiles and actions. Jane should now have married true, // as well as a new profile_updated timestamp. example . printUserProfileActionsForLastName ( "Doe" ) ; }
The main driver method . Doesn t require any arguments .