com.melloware.jukes.db.orm
Class Artist
java.lang.Object
com.jgoodies.binding.beans.Model
com.melloware.jukes.db.orm.AbstractJukesObject
com.melloware.jukes.db.orm.Artist
- All Implemented Interfaces:
- com.jgoodies.binding.beans.Observable, Auditable, Serializable, Comparable
public final class Artist
- extends AbstractJukesObject
- implements Auditable, 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
|
Constructor Summary |
Artist()
default constructor |
Artist(Long id)
constructor with id |
| Methods inherited from class com.jgoodies.binding.beans.Model |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
PROPERTYNAME_CREATED_DATE
public static final String PROPERTYNAME_CREATED_DATE
- See Also:
- Constant Field Values
PROPERTYNAME_MODIFIED_DATE
public static final String PROPERTYNAME_MODIFIED_DATE
- See Also:
- Constant Field Values
PROPERTYNAME_ID
public static final String PROPERTYNAME_ID
- See Also:
- Constant Field Values
PROPERTYNAME_CREATED_USER
public static final String PROPERTYNAME_CREATED_USER
- See Also:
- Constant Field Values
PROPERTYNAME_MODIFIED_USER
public static final String PROPERTYNAME_MODIFIED_USER
- See Also:
- Constant Field Values
PROPERTYNAME_NAME
public static final String PROPERTYNAME_NAME
- See Also:
- Constant Field Values
PROPERTYNAME_NOTES
public static final String PROPERTYNAME_NOTES
- See Also:
- Constant Field Values
Artist
public Artist()
- default constructor
Artist
public Artist(Long id)
- constructor with id
getAuditDate
public 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 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 String getCreatedUser()
- Specified by:
getCreatedUser in interface Auditable
getDiscs
public Set getDiscs()
getId
public 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 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 String getModifiedUser()
- Specified by:
getModifiedUser in interface Auditable
getName
public 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 String getNotes()
- Gets the notes.
- Returns:
- Returns the notes.
setCreatedDate
public void setCreatedDate(Date createdDate)
- Specified by:
setCreatedDate in interface Auditable
setCreatedUser
public void setCreatedUser(String createdUser)
- Specified by:
setCreatedUser in interface Auditable
setDiscs
public void setDiscs(Set discs)
setId
public void setId(Long id)
setModifiedDate
public void setModifiedDate(Date modifiedDate)
- Specified by:
setModifiedDate in interface Auditable
setModifiedUser
public void setModifiedUser(String modifiedUser)
- Specified by:
setModifiedUser in interface Auditable
setName
public void setName(String name)
setNotes
public void setNotes(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(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Object object)
- Specified by:
compareTo in interface Comparable
Copyright © 1999-2010 Melloware Inc. All Rights Reserved.