org.apache.openjpa.slice
Class Slice
java.lang.Object
org.apache.openjpa.slice.Slice
- All Implemented Interfaces:
- Serializable, Comparable<Slice>
public class Slice
- extends Object
- implements Comparable<Slice>, Serializable
Represents a database slice of immutable logical name, a configuration and
status. A Slice is uniquely identified by its logical name.
- Author:
- Pinaki Poddar
- See Also:
- Serialized Form
Slice
public Slice(String name,
OpenJPAConfiguration conf)
- Supply the logical name and configuration.
getName
public String getName()
- Gets the immutable logical name.
getConfiguration
public OpenJPAConfiguration getConfiguration()
getStatus
public Slice.Status getStatus()
setStatus
public void setStatus(Slice.Status status)
isActive
public boolean isActive()
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Slice other)
- Specified by:
compareTo
in interface Comparable<Slice>
equals
public boolean equals(Object other)
- Equals by name.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.