|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.moskitodemo.sqltrace.persistence.CommentDAO
public class CommentDAO
| Field Summary | |
|---|---|
static String |
ATT_NAME_EMAIL
|
static String |
ATT_NAME_FIRSTNAME
|
static String |
ATT_NAME_ID
|
static String |
ATT_NAME_LASTNAME
|
static String |
ATT_NAME_TEXT
|
static String |
ATT_NAME_TIMESTAMP
|
static String |
ATT_NAME_WISHESUPDATES
|
static String |
SQL_COUNT_1
|
static String |
SQL_CREATE_1
|
static String |
SQL_CREATE_2
|
static String |
SQL_DELETE_1
|
static String |
SQL_DELETE_2
|
static String |
SQL_LIMIT_1
|
static String |
SQL_OFFSET_1
|
static String |
SQL_READ_ALL_1
|
static String |
SQL_READ_ALL_2
|
static String |
SQL_READ_ALL_BY_PROPERTY_1
|
static String |
SQL_READ_ALL_BY_PROPERTY_2
|
static String |
SQL_READ_ONE_1
|
static String |
SQL_READ_ONE_2
|
static String |
SQL_UPDATE_1
|
static String |
SQL_UPDATE_2
|
static String |
TABNAME
|
| Fields inherited from interface net.anotheria.db.dao.DAO |
|---|
ATT_NAME_DAO_CREATED, ATT_NAME_DAO_UPDATED |
| Constructor Summary | |
|---|---|
CommentDAO()
|
|
| Method Summary | |
|---|---|
Comment |
createComment(Connection con,
Comment comment)
Creates a new Comment object. |
List<Comment> |
createComments(Connection con,
List<Comment> list)
Creates multiple new Comment objects. |
void |
createStructure(Connection connection)
|
void |
deleteComment(Connection con,
String id)
Deletes a Comment object by id. |
void |
deleteComments(Connection con,
List<Comment> list)
Deletes multiple Comment objects. |
void |
deleteStructure(Connection connection)
|
Comment |
getComment(Connection con,
String id)
Returns the Comment object with the specified id. |
List<Comment> |
getComments(Connection con)
Returns all Comments objects stored. |
List<Comment> |
getComments(Connection con,
net.anotheria.util.slicer.Segment aSegment)
Returns Comments objects segment. |
List<Comment> |
getCommentsByProperty(Connection con,
List<QueryProperty> properties)
Returns all Comments objects stored which matches given properties. |
List<Comment> |
getCommentsByProperty(Connection con,
net.anotheria.util.slicer.Segment aSegment,
List<QueryProperty> properties)
Returns Comments objects segment which matches given properties. |
int |
getCommentsCount(Connection con)
Returns Comments objects count. |
Comment |
importComment(Connection con,
Comment comment)
Imports a new Comment object. |
List<Comment> |
importComments(Connection con,
List<Comment> list)
Imports multiple new Comment objects. |
void |
init(Connection con)
|
Comment |
updateComment(Connection con,
Comment comment)
Updates a Comment object. |
List<Comment> |
updateComments(Connection con,
List<Comment> list)
Updates multiple new Comment objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TABNAME
public static final String ATT_NAME_ID
public static final String ATT_NAME_FIRSTNAME
public static final String ATT_NAME_LASTNAME
public static final String ATT_NAME_EMAIL
public static final String ATT_NAME_TEXT
public static final String ATT_NAME_TIMESTAMP
public static final String ATT_NAME_WISHESUPDATES
public static final String SQL_CREATE_1
public static final String SQL_CREATE_2
public static final String SQL_UPDATE_1
public static final String SQL_UPDATE_2
public static final String SQL_DELETE_1
public static final String SQL_DELETE_2
public static final String SQL_READ_ONE_1
public static final String SQL_READ_ONE_2
public static final String SQL_READ_ALL_1
public static final String SQL_READ_ALL_2
public static final String SQL_READ_ALL_BY_PROPERTY_1
public static final String SQL_READ_ALL_BY_PROPERTY_2
public static final String SQL_COUNT_1
public static final String SQL_LIMIT_1
public static final String SQL_OFFSET_1
| Constructor Detail |
|---|
public CommentDAO()
| Method Detail |
|---|
public List<Comment> getComments(Connection con)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public void deleteComment(Connection con,
String id)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public void deleteComments(Connection con,
List<Comment> list)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public Comment getComment(Connection con,
String id)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public Comment importComment(Connection con,
Comment comment)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public List<Comment> importComments(Connection con,
List<Comment> list)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public Comment createComment(Connection con,
Comment comment)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public List<Comment> createComments(Connection con,
List<Comment> list)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public Comment updateComment(Connection con,
Comment comment)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public List<Comment> updateComments(Connection con,
List<Comment> list)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public List<Comment> getCommentsByProperty(Connection con,
List<QueryProperty> properties)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public int getCommentsCount(Connection con)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public List<Comment> getComments(Connection con,
net.anotheria.util.slicer.Segment aSegment)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public List<Comment> getCommentsByProperty(Connection con,
net.anotheria.util.slicer.Segment aSegment,
List<QueryProperty> properties)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
public void createStructure(Connection connection)
throws net.anotheria.db.dao.DAOException
createStructure in interface net.anotheria.db.dao.DAOnet.anotheria.db.dao.DAOException
public void deleteStructure(Connection connection)
throws net.anotheria.db.dao.DAOException
deleteStructure in interface net.anotheria.db.dao.DAOnet.anotheria.db.dao.DAOException
public void init(Connection con)
throws net.anotheria.db.dao.DAOException
net.anotheria.db.dao.DAOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||