19 package org.turro.elephant.entities.db;
21 import java.io.Serializable;
22 import java.util.Date;
23 import javax.persistence.Column;
24 import javax.persistence.Entity;
25 import javax.persistence.Id;
26 import javax.persistence.IdClass;
27 import javax.persistence.Index;
28 import javax.persistence.Lob;
29 import javax.persistence.Table;
30 import javax.persistence.Temporal;
31 import org.turro.log.SystemLogType;
32 import org.turro.plugin.GenericObject;
39 @IdClass(SystemLogPK.class)
41 @Index(name =
"generatorIndex", columnList =
"generatorPath, dateLog"),
42 @Index(name =
"entityIndex", columnList =
"entityPath, dateLog")
44 public class SystemLog implements java.io.Serializable {
46 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
47 @Id
private Date dateLog;
51 @Id
private String generatorPath;
52 @Id
private String entityPath;
54 private String generatorName;
55 private String entityName;
56 private String comment;
61 @Column(name=
"LOG_DATA")
64 public Date getDateLog() {
69 this.dateLog = dateLog;
77 this.logType = logType;
85 this.generatorPath = generatorPath;
93 this.entityPath = entityPath;
101 this.generatorName = generatorName;
109 this.entityName = entityName;
117 this.comment = comment;
133 this.counts = counts;
139 if(data !=
null && data.length > 0) {
140 return new String(data);
String getGeneratorPath()
void setComment(String comment)
void setEntityName(String entityName)
void setData(byte[] data)
void setLogType(SystemLogType logType)
void setGeneratorPath(String generatorPath)
void setDateLog(Date dateLog)
void setObject(Serializable object)
SystemLogType getLogType()
String getGeneratorName()
void setGeneratorName(String generatorName)
void setEntityPath(String entityPath)
void setCounts(int counts)
void setObject(Serializable object)
void bytesToObject(byte[] buf)