@@ -0,0 +1,1168 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage model;%0A%0Aimport com.datastax.driver.core.ResultSet;%0Aimport com.datastax.driver.core.Session;%0Aimport com.datastax.driver.core.querybuilder.Insert;%0Aimport com.datastax.driver.core.querybuilder.QueryBuilder;%0Aimport java.util.UUID;%0A%0A/**%0A *%0A * @author akhfa%0A */%0Apublic class TimeLine %7B%0A    private String username;%0A    private UUID time;%0A    private UUID tweet_id;%0A    %0A    public TimeLine(String _username, UUID _time, UUID _tweet_id)%0A    %7B%0A        this.username = _username;%0A        this.time = _time;%0A        this.tweet_id = _tweet_id;%0A    %7D%0A    %0A    public void save()%0A    %7B%0A        Session session = Connection.getSession();%0A        %0A        Insert insert = QueryBuilder.insertInto(%22pat%22, %22timeline%22)%0A                                .value(%22username%22, username)%0A                                .value(%22time%22, time)%0A                                .value(%22tweet_id%22, tweet_id);%0A        ResultSet result = session.execute(insert.toString());%0A        Connection.close();%0A    %7D%0A%7D%0A

add TimeLine model