com.jurismarches.vradi.beans
Class QueryBean

java.lang.Object
  extended by 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

Field Summary
protected  String id
           
protected  String[] queryArray
           
protected  String queryLine
           
 
Constructor Summary
QueryBean()
           
QueryBean(String queryLine)
          Decode the specified queryLine.
QueryBean(String queryLine, String id)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCSVQuery()
           
 String getDescription()
           
 String getId()
          Additionnal attribute.
 String getName()
           
 String getQuery()
           
 String getQueryLine()
           
 int hashCode()
           
 QueryBean setDescription(String value)
           
 QueryBean setName(String value)
           
 QueryBean setQuery(String value)
           
 String[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryLine

protected final String queryLine

queryArray

protected final String[] queryArray

id

protected final String id
Constructor Detail

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
Method Detail

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-2010 JurisMarches. All Rights Reserved.