|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.conf.Specification
public class Specification
An immutable representation of a Specification supported by OpenJPA. Available via OpenJPAConfiguration.getSpecificationInstance()() for configuration that may depend on Specification version.
Constructor Summary | |
---|---|
Specification(String fullName)
Construct from a String that encodes name and version fields. |
Method Summary | |
---|---|
int |
compareVersion(Specification other)
Compares major version number of the given Specification with this receiver. |
boolean |
equals(Object other)
Affirms if the given argument is equal to this receiver. |
Compatibility |
getCompatibility()
Return the compatibility object associated with this Specification instance. |
String |
getDescription()
|
String |
getMinorVersion()
|
String |
getName()
|
int |
getVersion()
|
boolean |
isSame(Specification other)
Affirms if the given specification has the same name of this receiver, ignoring the case. |
boolean |
isSame(String other)
Affirms if the given string equals name of this receiver, ignoring the case. |
void |
setCompatibility(Compatibility compatibility)
Associate a compatibility object with this Specification instance |
Specification |
setDescription(String description)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Specification(String fullName)
fullName
- a encoded string in the following prescribed format.
name major.minor
e.g. JPA 2.0-draft
Only the 'name' field is mandatory.
'major' version defaults to 1 and must be an integer.
'minor' version defaults to 0 and can be a String.Method Detail |
---|
public String getName()
public int getVersion()
public String getMinorVersion()
public String getDescription()
public Specification setDescription(String description)
public boolean equals(Object other)
equals
in class Object
public boolean isSame(Specification other)
public boolean isSame(String other)
public int compareVersion(Specification other)
public String toString()
toString
in class Object
public void setCompatibility(Compatibility compatibility)
compatibility
- a Compatibility object with flags set in compliance
with this Specification instance.public Compatibility getCompatibility()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |