com.projectdarkstar.tools.dtc.domain
Class PkgLibrary

java.lang.Object
  extended by com.projectdarkstar.tools.dtc.domain.PkgLibrary
All Implemented Interfaces:
Serializable

public class PkgLibrary
extends Object
implements Serializable

Represents a binary package library which is required for either a ClientApp, ServerApp, or SystemProbe to execute.

See Also:
Serialized Form

Constructor Summary
PkgLibrary()
           
PkgLibrary(String name, BinaryFile file)
           
 
Method Summary
 boolean equals(Object o)
           
 BinaryFile getFile()
          Returns the contents of the actual package library file as a BinaryFile
 Long getId()
          Returns the id of the entity in persistent storage
 String getName()
           
 List<PkgLibraryTag> getTags()
          Returns a list of PkgLibraryTag objects that are used to categorize libraries into groups.
 Long getVersionNumber()
          Returns the version number in the data store that this entity represents.
 int hashCode()
           
 void setFile(BinaryFile file)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setTags(List<PkgLibraryTag> tags)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PkgLibrary

public PkgLibrary()

PkgLibrary

public PkgLibrary(String name,
                  BinaryFile file)
Method Detail

getId

public Long getId()
Returns the id of the entity in persistent storage

Returns:
id of the entity

setId

public void setId(Long id)

getVersionNumber

public Long getVersionNumber()
Returns the version number in the data store that this entity represents. Whenever an update to an object is pushed to the persistent data store, the version number is incremented.

Returns:
version number of the entity

setVersionNumber

public void setVersionNumber(Long versionNumber)

getName

public String getName()

setName

public void setName(String name)

getFile

public BinaryFile getFile()
Returns the contents of the actual package library file as a BinaryFile

Returns:
the package library file

setFile

public void setFile(BinaryFile file)

getTags

public List<PkgLibraryTag> getTags()
Returns a list of PkgLibraryTag objects that are used to categorize libraries into groups.

Returns:
list of tags

setTags

public void setTags(List<PkgLibraryTag> tags)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.