public class HarQueryParam extends AbstractNameValueComment
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TABLE_NAME
Database table name where the data is stored
|
| Constructor and Description |
|---|
HarQueryParam(HarDatabaseConfig config,
long queryParamId,
java.lang.String name,
java.lang.String value,
java.lang.String comment)
Creates a new
HarQueryParam object from the database |
HarQueryParam(org.codehaus.jackson.JsonParser jp,
java.util.List<HarWarning> warnings)
Creates a new
HarQueryParam object from a JsonParser already
positioned at the beginning of the element content |
HarQueryParam(java.lang.String name,
java.lang.String value)
Creates a new
HarQueryParam object |
HarQueryParam(java.lang.String name,
java.lang.String value,
java.lang.String comment)
Creates a new
HarQueryParam object |
| Modifier and Type | Method and Description |
|---|---|
HarCustomFields |
getCustomFields()
Returns the customFields value.
|
void |
setCustomFields(HarCustomFields customFields)
Sets the customFields value.
|
java.lang.String |
toString() |
void |
writeHar(org.codehaus.jackson.JsonGenerator g)
Write this object on a JsonGenerator stream
|
void |
writeJDBC(HarDatabaseConfig config,
long id,
java.sql.PreparedStatement ps,
long logId)
Write this object in the given database referencing the specified id.
|
getComment, getName, getValue, setComment, setName, setValuepublic static java.lang.String TABLE_NAME
public HarQueryParam(java.lang.String name,
java.lang.String value,
java.lang.String comment)
HarQueryParam objectname - name of the query parametervalue - value of the query parametercomment - optional comment provided by the user or the applicationpublic HarQueryParam(HarDatabaseConfig config, long queryParamId, java.lang.String name, java.lang.String value, java.lang.String comment) throws java.sql.SQLException
HarQueryParam object from the databaseconfig - queryParamId - name - value - comment - java.sql.SQLExceptionpublic HarQueryParam(java.lang.String name,
java.lang.String value)
HarQueryParam objectname - name of the query parametervalue - value of the query parameterpublic HarQueryParam(org.codehaus.jackson.JsonParser jp,
java.util.List<HarWarning> warnings)
throws org.codehaus.jackson.JsonParseException,
java.io.IOException
HarQueryParam object from a JsonParser already
positioned at the beginning of the element contentjp - a JsonParser already positioned at the beginning of the element
contentwarnings - null if parser should fail on first error, pointer to
warning list if warnings can be issued for missing fieldsorg.codehaus.jackson.JsonParseExceptionjava.io.IOExceptionpublic void writeHar(org.codehaus.jackson.JsonGenerator g)
throws org.codehaus.jackson.JsonGenerationException,
java.io.IOException
writeHar in class AbstractNameValueCommentg - a JsonGeneratorjava.io.IOException - if an IO error occursorg.codehaus.jackson.JsonGenerationException - if the generator failsHarFileWriter.writeHarFile(HarLog, java.io.File)public void writeJDBC(HarDatabaseConfig config, long id, java.sql.PreparedStatement ps, long logId) throws java.sql.SQLException
AbstractNameValueCommentwriteJDBC in class AbstractNameValueCommentid - the id this object refers tops - PreparedStatement to write datajava.sql.SQLException - if a database access error occurspublic HarCustomFields getCustomFields()
public void setCustomFields(HarCustomFields customFields)
customFields - The customFields to set.public java.lang.String toString()
toString in class AbstractNameValueCommentObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.