com.jurismarches.vradi.beans
Class QueryBean
java.lang.Object
com.jurismarches.vradi.beans.QueryBean
- All Implemented Interfaces:
- Serializable
public final class QueryBean
- extends Object
- implements Serializable
Query bean.
Used to manipulate User, Group, Client queries, parse from CSV ad encode to CSV.
- Since:
- 16 mars 2010 14:25:12
- Version:
- $Revision: 1715 $ $Date: 2010-10-27 21:21:28 +0200 (mer., 27 oct. 2010) $
- Author:
- schorlet
- See Also:
CSVWriter,
CSVParser,
Serialized Form
queryLine
protected final String queryLine
queryArray
protected final String[] queryArray
id
protected final String id
QueryBean
public QueryBean()
QueryBean
public QueryBean(String queryLine)
throws IOException
- Decode the specified
queryLine. The queryLine must be CSV formatted.
- Parameters:
queryLine - the formatted query.
- Throws:
IOException - if queryLine is badly formatted.
QueryBean
public QueryBean(String queryLine,
String id)
throws IOException
- Throws:
IOException
getQueryLine
public String getQueryLine()
getQuery
public String getQuery()
getName
public String getName()
getDescription
public String getDescription()
getCSVQuery
public String getCSVQuery()
toArray
public String[] toArray()
setQuery
public QueryBean setQuery(String value)
setName
public QueryBean setName(String value)
setDescription
public QueryBean setDescription(String value)
getId
public String getId()
- Additionnal attribute. It does not belongs to the query definition.
- Returns:
- query id
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2009-2011 JurisMarches. All Rights Reserved.