Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You should look at the twitter4j Status interface. It has all the information relating to a status including for example:</p> <ul> <li>createdAt()</li> <li>getId()</li> <li>User</li> <li>text</li> </ul> <p>The Status object that you will create can also be used to retrieve arrays of information such as:</p> <ul> <li>hashtags</li> <li>URLs/links</li> <li>media entities And mentions.</li> </ul> <p>There is more functionality - check out the java doc here <a href="http://twitter4j.org/en/javadoc/index.html" rel="nofollow noreferrer">http://twitter4j.org/en/javadoc/index.html</a></p> <p>How you implement this is obviously up to you. Twitter offers a number of APIs, more information can be found at twitter dev site under documentation.</p> <p>When making your choice bare in mind that the REST API is rate limited meaning that you will only be able to make a certain number of requests for a given time period (again see docs for more info).</p> <p>You also have access to the streaming API that pushes all data to your application based on factors such as keyword filters.</p> <p>You can then design your database model.You could do this using standard MySQL library or if you are using java ee platform you could create and entity class like so :</p> <pre><code>package entities; import java.io.Serializable; import java.util.List; import javax.persistence.*; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @Entity @Table(name = "twitterstatus") public class TwitterStatus implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "statusId") private Long statusId; @Basic(optional = false) @NotNull @Size(min = 1, max = 15) @Column(name = "statusUserName") private String statusUserName; @Basic(optional = false) @NotNull @Size(min = 1, max = 140) @Column(name = "statusText") private String statusText; @OneToMany(mappedBy = "statusId") private List&lt;TwitterStatusUrl&gt; twitterStatusUrlList; public TwitterStatus() { } public TwitterStatus(Long statusId) { this.statusId = statusId; } public TwitterStatus(Long statusId, String statusUserName, String statusText) { this.statusId = statusId; this.statusUserName = statusUserName; this.statusText = statusText; } public Long getStatusId() { return statusId; } public void setStatusId(Long statusId) { this.statusId = statusId; } public String getStatusUserName() { return statusUserName; } public void setStatusUserName(String statusUserName) { this.statusUserName = statusUserName; } public String getStatusText() { return statusText; } public void setStatusText(String statusText) { this.statusText = statusText; } public List&lt;TwitterStatusUrl&gt; getTwitterStatusUrlList() { return twitterStatusUrlList; } public void setTwitterStatusUrlList(List&lt;TwitterStatusUrl&gt; twitterStatusUrlList) { this.twitterStatusUrlList = twitterStatusUrlList; } } </code></pre> <p>note: you will need to create a data-source and persistence unit (there are many tutorials online surrounding this area. An example could be this article and others that it links to - <a href="https://stackoverflow.com/questions/452627/jpa-java-code-generation">JPA java code generation</a>).</p> <p>Sorry would have included more links to useful info but am limited because I am a new user here.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload