com.trendmicro.grid.acl.ds.jpa
Class ReceivedPreparedPackagesHandler.PreparedPackage

java.lang.Object
  extended by com.trendmicro.grid.acl.ds.jpa.ReceivedPreparedPackagesHandler.PreparedPackage
Enclosing class:
ReceivedPreparedPackagesHandler

public static final class ReceivedPreparedPackagesHandler.PreparedPackage
extends Object

Defines a prepared package that may be used for further updates.


Method Summary
 void applyFinalPackageUpdates(boolean incrementRevision)
          Performs a final package update and optionally forces the increment of the revision.
 JpaFileDetails getFileReference()
          Returns the reference to the package file.
 JpaPackageDetails getReference()
          Returns the package reference to link other resources.
 String getRemoteFileName()
          Returns the recorded public filename of the assigned file for this package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReference

public JpaPackageDetails getReference()
Returns the package reference to link other resources.

Returns:
the package reference to link other resources.

getFileReference

public JpaFileDetails getFileReference()
Returns the reference to the package file.

Returns:
the reference to the package file.

getRemoteFileName

public String getRemoteFileName()
Returns the recorded public filename of the assigned file for this package.

Returns:
the recorded public filename of the assigned file for this package.

applyFinalPackageUpdates

public void applyFinalPackageUpdates(boolean incrementRevision)
Performs a final package update and optionally forces the increment of the revision.

Note: This method must be called on every PreparedPackage instance before leaving the transaction scope.

Parameters:
incrementRevision - forces the increment of the revision when set to true.