com.melloware.jukes.db.orm
Class Artist

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.melloware.jukes.db.orm.AbstractJukesObject
          extended by com.melloware.jukes.db.orm.Artist
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Auditable, java.io.Serializable, java.lang.Comparable

public final class Artist
extends AbstractJukesObject
implements Auditable, java.lang.Comparable

Business POJO representing an ARTIST.

Implements Auditable so that the user and date information is updated when this object is updated using a Hibernate Interceptor.

Copyright (c) 1999-2007 Melloware, Inc.

Version:
4.0
Author:
Emil A. Lefkof III
See Also:
Serialized Form

Field Summary
static java.lang.String PROPERTYNAME_CREATED_DATE
           
static java.lang.String PROPERTYNAME_CREATED_USER
           
static java.lang.String PROPERTYNAME_ID
           
static java.lang.String PROPERTYNAME_MODIFIED_DATE
           
static java.lang.String PROPERTYNAME_MODIFIED_USER
           
static java.lang.String PROPERTYNAME_NAME
           
static java.lang.String PROPERTYNAME_NOTES
           
 
Fields inherited from class com.melloware.jukes.db.orm.AbstractJukesObject
childCount, newFile, NO_CHILDREN, valid
 
Constructor Summary
Artist()
          default constructor
Artist(java.lang.Long id)
          constructor with id
 
Method Summary
 void addDisc(Disc disc)
           
 int compareTo(java.lang.Object object)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getAuditDate()
          This date determines how the NEW flag is checked in the isNew() function.
 int getChildCount()
          This is used to fool the tree for lazy loading of tree nodes.
 java.util.Date getCreatedDate()
          Method implemented in each ORM class.
 java.lang.String getCreatedUser()
           
 java.util.Set getDiscs()
           
 java.lang.Long getId()
          All objects must implement a unique identifier.
 java.util.Date getModifiedDate()
          Method implemented in each ORM class.
 java.lang.String getModifiedUser()
           
 java.lang.String getName()
          All objects must implement a name function to describe this object.
 java.lang.String getNotes()
          Gets the notes.
 int hashCode()
           
 boolean isValid()
          Gets the valid flag.
 void setCreatedDate(java.util.Date createdDate)
           
 void setCreatedUser(java.lang.String createdUser)
           
 void setDiscs(java.util.Set discs)
           
 void setId(java.lang.Long id)
           
 void setModifiedDate(java.util.Date modifiedDate)
           
 void setModifiedUser(java.lang.String modifiedUser)
           
 void setName(java.lang.String name)
           
 void setNotes(java.lang.String aNotes)
          Sets the notes.
 java.lang.String toString()
           
 
Methods inherited from class com.melloware.jukes.db.orm.AbstractJukesObject
isNewFile, isNotValid, setChildCount, setNewFile, setValid
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireMulticastPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTYNAME_CREATED_DATE

public static final java.lang.String PROPERTYNAME_CREATED_DATE
See Also:
Constant Field Values

PROPERTYNAME_MODIFIED_DATE

public static final java.lang.String PROPERTYNAME_MODIFIED_DATE
See Also:
Constant Field Values

PROPERTYNAME_ID

public static final java.lang.String PROPERTYNAME_ID
See Also:
Constant Field Values

PROPERTYNAME_CREATED_USER

public static final java.lang.String PROPERTYNAME_CREATED_USER
See Also:
Constant Field Values

PROPERTYNAME_MODIFIED_USER

public static final java.lang.String PROPERTYNAME_MODIFIED_USER
See Also:
Constant Field Values

PROPERTYNAME_NAME

public static final java.lang.String PROPERTYNAME_NAME
See Also:
Constant Field Values

PROPERTYNAME_NOTES

public static final java.lang.String PROPERTYNAME_NOTES
See Also:
Constant Field Values
Constructor Detail

Artist

public Artist()
default constructor


Artist

public Artist(java.lang.Long id)
constructor with id

Method Detail

getAuditDate

public java.util.Date getAuditDate()
This date determines how the NEW flag is checked in the isNew() function.

Specified by:
getAuditDate in class AbstractJukesObject
Returns:
the modified date is used to check in the isNew() function

getChildCount

public int getChildCount()
This is used to fool the tree for lazy loading of tree nodes.

Specified by:
getChildCount in class AbstractJukesObject
Returns:
the number of children this object has

getCreatedDate

public java.util.Date getCreatedDate()
Description copied from class: AbstractJukesObject
Method implemented in each ORM class. This returns the audit created date.

Specified by:
getCreatedDate in interface Auditable
Specified by:
getCreatedDate in class AbstractJukesObject
Returns:
the created date

getCreatedUser

public java.lang.String getCreatedUser()
Specified by:
getCreatedUser in interface Auditable

getDiscs

public java.util.Set getDiscs()

getId

public java.lang.Long getId()
Description copied from class: AbstractJukesObject
All objects must implement a unique identifier.

Specified by:
getId in interface Auditable
Specified by:
getId in class AbstractJukesObject
Returns:
the id of the object

getModifiedDate

public java.util.Date getModifiedDate()
Description copied from class: AbstractJukesObject
Method implemented in each ORM class. This returns the audit modified date.

Specified by:
getModifiedDate in interface Auditable
Specified by:
getModifiedDate in class AbstractJukesObject
Returns:
the modification date

getModifiedUser

public java.lang.String getModifiedUser()
Specified by:
getModifiedUser in interface Auditable

getName

public java.lang.String getName()
Description copied from class: AbstractJukesObject
All objects must implement a name function to describe this object.

Specified by:
getName in class AbstractJukesObject
Returns:
the name of the object

getNotes

public java.lang.String getNotes()
Gets the notes.

Returns:
Returns the notes.

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)
Specified by:
setCreatedDate in interface Auditable

setCreatedUser

public void setCreatedUser(java.lang.String createdUser)
Specified by:
setCreatedUser in interface Auditable

setDiscs

public void setDiscs(java.util.Set discs)

setId

public void setId(java.lang.Long id)

setModifiedDate

public void setModifiedDate(java.util.Date modifiedDate)
Specified by:
setModifiedDate in interface Auditable

setModifiedUser

public void setModifiedUser(java.lang.String modifiedUser)
Specified by:
setModifiedUser in interface Auditable

setName

public void setName(java.lang.String name)

setNotes

public void setNotes(java.lang.String aNotes)
Sets the notes.

Parameters:
aNotes - The notes to set.

isValid

public boolean isValid()
Description copied from class: AbstractJukesObject
Gets the valid flag.

Specified by:
isValid in class AbstractJukesObject
Returns:
Returns the valid flag.

addDisc

public void addDisc(Disc disc)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object object)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 1999-2008 Melloware Inc. All Rights Reserved.