com.hack23.cia.model.common.impl
Class AbstractResource

Package class diagram package AbstractResource
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.common.impl.AbstractResource
All Implemented Interfaces:
ApplicationResource, ModelObject, PersistedModelObject, Resource, Serializable
Direct Known Subclasses:
AbstractApplicationResource

@Entity
public abstract class AbstractResource
extends BaseEntity
implements ApplicationResource

The Class AbstractResource.

See Also:
Serialized Form

Constructor Summary
protected AbstractResource(ResourceType resourceType)
          Instantiates a new abstract resource.
 
Method Summary
 Long getId()
          Gets the id.
 ResourceType getResourceType()
          Gets the resource type.
 Long getVersion()
          Gets the version.
 void setId(Long id)
          Sets the id.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity
equals, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject
isNew
 

Constructor Detail

AbstractResource

protected AbstractResource(ResourceType resourceType)
Instantiates a new abstract resource.

Parameters:
resourceType - the resource type
Method Detail

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getResourceType

public ResourceType getResourceType()
Description copied from interface: Resource
Gets the resource type.

Specified by:
getResourceType in interface Resource
Returns:
the resource type

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setResourceType

public void setResourceType(ResourceType resourceType)
Description copied from interface: Resource
Sets the resource type.

Specified by:
setResourceType in interface Resource
Parameters:
resourceType - the new resource type

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.