org.apache.openjpa.slice
Class Slice
java.lang.Object
org.apache.openjpa.slice.Slice
- All Implemented Interfaces:
- Comparable<Slice>
public class Slice
- extends Object
- implements Comparable<Slice>
Represents a database slice of immutable logical name, a configuration and
status.
- Author:
- Pinaki Poddar
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-2008 Apache Software Foundation. All Rights Reserved.