ch.bouquet.jpa.domain
Class Search

java.lang.Object
  extended by ch.bouquet.jpa.domain.Search
All Implemented Interfaces:
java.io.Serializable

public class Search
extends java.lang.Object
implements java.io.Serializable

CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Data-Tier (JPA)
User admininstration (examination question)
Description:
Search business object implemented as plain old java object.

Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.

Version:
1.0 - 25.05.2007
Author:
Marc Bouquet ( marc at bouquet dot ch, Swiss )
See Also:
Serialized Form

Nested Class Summary
static class Search.Frequency
          Enumeration
static class Search.OutputFormat
          Enumeration
static class Search.State
          Enumeration
 
Field Summary
private  java.lang.String criteria
          search criteria
private  Search.Frequency frequency
          frequency
private static org.apache.log4j.Logger LOG
          constant for the logging
private  java.lang.String name
          search name
private  Search.OutputFormat outputFormat
          output format
private  int searchId
          search id (primary key)
private static long serialVersionUID
          Default serial version uid
private  java.util.Date startDat
          start date
private  Search.State state
          search state
private  Subscriber subscriber
          subscriper id (foreign key)
 
Constructor Summary
Search()
          Default constructor
Search(Subscriber subscriber, java.lang.String name, java.lang.String criteria, Search.State state, Search.Frequency frequency, Search.OutputFormat outputFormat, java.util.Date startDate)
          Constructor
 
Method Summary
 java.lang.String getCriteria()
          Gets the criteria.
 Search.Frequency getFrequency()
          Gets the frequency.
 java.lang.String getName()
          Gets the name.
 Search.OutputFormat getOutputFormat()
          Gets the outputFormat.
 int getSearchId()
          Gets the searchId.
 java.util.Date getStartDat()
          Gets the startDat.
 Search.State getState()
          Gets the state.
 Subscriber getSubscriber()
          Gets the subscriber.
 void setCriteria(java.lang.String criteria)
          Sets the criteria.
 void setFrequency(Search.Frequency frequency)
          Sets the frequency.
 void setName(java.lang.String name)
          Sets the name.
 void setOutputFormat(Search.OutputFormat outputFormat)
          Sets the outputFormat.
 void setSearchId(int searchId)
          Sets the searchId.
 void setStartDat(java.util.Date startDat)
          Sets the startDat.
 void setState(Search.State state)
          Sets the state.
 void setSubscriber(Subscriber subscriber)
          Sets the subscriber.
 java.lang.String toString()
          Return all attributes as String
 java.lang.String toStringFormatted()
          Return a formatted subscriber as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG
constant for the logging


serialVersionUID

private static final long serialVersionUID
Default serial version uid

See Also:
Constant Field Values

searchId

private int searchId
search id (primary key)


subscriber

private Subscriber subscriber
subscriper id (foreign key)


name

private java.lang.String name
search name


criteria

private java.lang.String criteria
search criteria


state

private Search.State state
search state


frequency

private Search.Frequency frequency
frequency


outputFormat

private Search.OutputFormat outputFormat
output format


startDat

private java.util.Date startDat
start date

Constructor Detail

Search

public Search()
Default constructor


Search

public Search(Subscriber subscriber,
              java.lang.String name,
              java.lang.String criteria,
              Search.State state,
              Search.Frequency frequency,
              Search.OutputFormat outputFormat,
              java.util.Date startDate)
Constructor

Parameters:
subscriber - Subscriber
name - String
criteria - String
state - State
frequency - Frequency
outputFormat - OutputFormat
startDate - Date
Method Detail

toString

public java.lang.String toString()
Return all attributes as String

Overrides:
toString in class java.lang.Object
Returns:
Object as String

toStringFormatted

public java.lang.String toStringFormatted()
Return a formatted subscriber as String

Returns:
Object as String

getSearchId

public int getSearchId()
Gets the searchId.

Returns:
the searchId

setSearchId

public void setSearchId(int searchId)
Sets the searchId.

Parameters:
searchId - The searchId to set

getSubscriber

public Subscriber getSubscriber()
Gets the subscriber.

Returns:
the subscriber

setSubscriber

public void setSubscriber(Subscriber subscriber)
Sets the subscriber.

Parameters:
subscriber - The subscriber to set

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

getCriteria

public java.lang.String getCriteria()
Gets the criteria.

Returns:
the criteria

setCriteria

public void setCriteria(java.lang.String criteria)
Sets the criteria.

Parameters:
criteria - The criteria to set

getState

public Search.State getState()
Gets the state.

Returns:
the state

setState

public void setState(Search.State state)
Sets the state.

Parameters:
state - The state to set

getFrequency

public Search.Frequency getFrequency()
Gets the frequency.

Returns:
the frequency

setFrequency

public void setFrequency(Search.Frequency frequency)
Sets the frequency.

Parameters:
frequency - The frequency to set

getOutputFormat

public Search.OutputFormat getOutputFormat()
Gets the outputFormat.

Returns:
the outputFormat

setOutputFormat

public void setOutputFormat(Search.OutputFormat outputFormat)
Sets the outputFormat.

Parameters:
outputFormat - The outputFormat to set

getStartDat

public java.util.Date getStartDat()
Gets the startDat.

Returns:
the startDat

setStartDat

public void setStartDat(java.util.Date startDat)
Sets the startDat.

Parameters:
startDat - The startDat to set


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.