org.wso2.carbon.registry.core.jdbc.dataobjects
Class ResourceDO

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.dataobjects.ResourceDO

public class ResourceDO
extends Object

The data object maps with a resource


Constructor Summary
ResourceDO()
           
 
Method Summary
 String getAuthor()
          Method to get the author.
 int getContentID()
          Method to get the content id.
 long getCreatedOn()
          Method to get the time the resource created.
 String getDescription()
          Method to get the resource description.
 long getLastUpdatedOn()
          Method to get the last updated time.
 String getLastUpdater()
          Method to get the last updated user of the resource.
 String getMediaType()
          Method to get the media type.
 String getName()
          Method to get the name of the resource.
 int getPathID()
          Method to get the path id of the resource.
 String getUUID()
          Method to get the UUID.
 long getVersion()
          Method to get the version of the resource.
 void setAuthor(String author)
          Method to set the author.
 void setContentID(int contentID)
          Method to set the content id.
 void setCreatedOn(long createdOn)
          Method to set the time the resource created
 void setDescription(String description)
          Method to set the resource description.
 void setLastUpdatedOn(long lastUpdatedOn)
          Method to set the last updated time.
 void setLastUpdater(String lastUpdater)
          Method to set the last updated user name of the resource.
 void setMediaType(String mediaType)
          Method to set the media type.
 void setName(String name)
          Method to set the name of the resource.
 void setPathID(int pathID)
          Method to set the path id.
 void setUUID(String uuid)
          Method to set the UUID
 void setVersion(long version)
          Method to set the version of the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDO

public ResourceDO()
Method Detail

getPathID

public int getPathID()
Method to get the path id of the resource. If it is a collection it gives the id of the path itself. If it is a non-collection, it give the path id of the parent path.

Returns:
the path id.

setPathID

public void setPathID(int pathID)
Method to set the path id.

Parameters:
pathID - path id to be set.

getName

public String getName()
Method to get the name of the resource.

Returns:
the name of the resource

setName

public void setName(String name)
Method to set the name of the resource.

Parameters:
name - the name of the resource.

getVersion

public long getVersion()
Method to get the version of the resource.

Returns:
get the version.

setVersion

public void setVersion(long version)
Method to set the version of the resource.

Parameters:
version - the version to be set.

getMediaType

public String getMediaType()
Method to get the media type.

Returns:
media type

setMediaType

public void setMediaType(String mediaType)
Method to set the media type.

Parameters:
mediaType - media type to be set.

getAuthor

public String getAuthor()
Method to get the author.

Returns:
the author.

setAuthor

public void setAuthor(String author)
Method to set the author.

Parameters:
author - the author to be set.

getCreatedOn

public long getCreatedOn()
Method to get the time the resource created.

Returns:
the time the resource created.

setCreatedOn

public void setCreatedOn(long createdOn)
Method to set the time the resource created

Parameters:
createdOn - the time to be set.

getLastUpdater

public String getLastUpdater()
Method to get the last updated user of the resource.

Returns:
the last updated user

setLastUpdater

public void setLastUpdater(String lastUpdater)
Method to set the last updated user name of the resource.

Parameters:
lastUpdater - the last updated user to be set.

getLastUpdatedOn

public long getLastUpdatedOn()
Method to get the last updated time.

Returns:
the last updated time.

setLastUpdatedOn

public void setLastUpdatedOn(long lastUpdatedOn)
Method to set the last updated time.

Parameters:
lastUpdatedOn - the last updated time to be set.

getDescription

public String getDescription()
Method to get the resource description.

Returns:
the resource description.

setDescription

public void setDescription(String description)
Method to set the resource description.

Parameters:
description - the resource description to be set.

getContentID

public int getContentID()
Method to get the content id. (the database index of the content of the resource)

Returns:
the content id.

setContentID

public void setContentID(int contentID)
Method to set the content id. (the database index of the content of the resource)

Parameters:
contentID - the content id to be set.

setUUID

public void setUUID(String uuid)
Method to set the UUID

Parameters:
uuid - the UUID to be set.

getUUID

public String getUUID()
Method to get the UUID.

Returns:
the UUID of the resource.


Copyright © 2012 WSO2 Inc. All Rights Reserved.