org.rhq.core.domain.drift
Class JPADrift
java.lang.Object
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
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
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_ADDEDnewDriftFile
- required for FILE_CHANGED and FILE_ADDED, null for FILE_REMOVED
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.