org.rhq.core.domain.drift
Class JPADrift

java.lang.Object
  extended by org.rhq.core.domain.drift.JPADrift
All Implemented Interfaces:
Serializable, Drift<JPADriftChangeSet,JPADriftFile>

public class JPADrift
extends Object
implements Serializable, Drift<JPADriftChangeSet,JPADriftFile>

The JPA Drift Server plugin (the RHQ default) implementation of Drift.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_DRIFTDEF_RESOURCE
           
static String QUERY_DELETE_BY_RESOURCES
           
 
Constructor Summary
protected JPADrift()
           
  JPADrift(JPADriftChangeSet changeSet, String path, DriftCategory category, JPADriftFile oldDriftFile, JPADriftFile newDriftFile)
           
 
Method Summary
 DriftCategory getCategory()
           
 JPADriftChangeSet getChangeSet()
           
 Long getCtime()
           
 String getDirectory()
           
 String getId()
           
 JPADriftFile getNewDriftFile()
           
 JPADriftFile getOldDriftFile()
           
 String getPath()
           
 void setCategory(DriftCategory category)
           
 void setChangeSet(JPADriftChangeSet changeSet)
           
 void setDirectory(String directory)
           
 void setId(String id)
           
 void setNewDriftFile(JPADriftFile newDriftFile)
           
 void setOldDriftFile(JPADriftFile oldDriftFile)
           
 void setPath(String path)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_DELETE_BY_RESOURCES

public static final String QUERY_DELETE_BY_RESOURCES
See Also:
Constant Field Values

QUERY_DELETE_BY_DRIFTDEF_RESOURCE

public static final String QUERY_DELETE_BY_DRIFTDEF_RESOURCE
See Also:
Constant Field Values
Constructor Detail

JPADrift

protected JPADrift()

JPADrift

public JPADrift(JPADriftChangeSet changeSet,
                String path,
                DriftCategory category,
                JPADriftFile oldDriftFile,
                JPADriftFile newDriftFile)
Parameters:
resource -
category -
oldDriftFile - required for FILE_CHANGED and FILE_REMOVED, null for FILE_ADDED
newDriftFile - required for FILE_CHANGED and FILE_ADDED, null for FILE_REMOVED
Method Detail

getId

public String getId()
Specified by:
getId in interface Drift<JPADriftChangeSet,JPADriftFile>

setId

public void setId(String id)
Specified by:
setId in interface Drift<JPADriftChangeSet,JPADriftFile>

getCtime

public Long getCtime()
Specified by:
getCtime in interface Drift<JPADriftChangeSet,JPADriftFile>

getChangeSet

public JPADriftChangeSet getChangeSet()
Specified by:
getChangeSet in interface Drift<JPADriftChangeSet,JPADriftFile>

setChangeSet

public void setChangeSet(JPADriftChangeSet changeSet)
Specified by:
setChangeSet in interface Drift<JPADriftChangeSet,JPADriftFile>

getCategory

public DriftCategory getCategory()
Specified by:
getCategory in interface Drift<JPADriftChangeSet,JPADriftFile>

setCategory

public void setCategory(DriftCategory category)
Specified by:
setCategory in interface Drift<JPADriftChangeSet,JPADriftFile>

getPath

public String getPath()
Specified by:
getPath in interface Drift<JPADriftChangeSet,JPADriftFile>

setPath

public void setPath(String path)
Specified by:
setPath in interface Drift<JPADriftChangeSet,JPADriftFile>

getDirectory

public String getDirectory()
Specified by:
getDirectory in interface Drift<JPADriftChangeSet,JPADriftFile>

setDirectory

public void setDirectory(String directory)
Specified by:
setDirectory in interface Drift<JPADriftChangeSet,JPADriftFile>

getOldDriftFile

public JPADriftFile getOldDriftFile()
Specified by:
getOldDriftFile in interface Drift<JPADriftChangeSet,JPADriftFile>

setOldDriftFile

public void setOldDriftFile(JPADriftFile oldDriftFile)
Specified by:
setOldDriftFile in interface Drift<JPADriftChangeSet,JPADriftFile>

getNewDriftFile

public JPADriftFile getNewDriftFile()
Specified by:
getNewDriftFile in interface Drift<JPADriftChangeSet,JPADriftFile>

setNewDriftFile

public void setNewDriftFile(JPADriftFile newDriftFile)
Specified by:
setNewDriftFile in interface Drift<JPADriftChangeSet,JPADriftFile>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.