Package org.teiid.vdb.runtime
Class VDBKey
- java.lang.Object
-
- org.teiid.vdb.runtime.VDBKey
-
- All Implemented Interfaces:
Serializable
,Comparable<VDBKey>
public class VDBKey extends Object implements Serializable, Comparable<VDBKey>
Encapsulates the name/versioning rules for VDBs- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
NAME_PATTERN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsVerion(VDBKey key)
int
compareTo(VDBKey o)
boolean
equals(Object obj)
String
getName()
String
getSemanticVersion()
Get the full three part semantic versionString
getVersion()
Get the version string - not including the at most designation.int
hashCode()
boolean
isAtMost()
String
toString()
-
-
-
Field Detail
-
NAME_PATTERN
public static Pattern NAME_PATTERN
-
-
Method Detail
-
getName
public String getName()
-
getVersion
public String getVersion()
Get the version string - not including the at most designation.
Will be the full semantic version if more than 1 part is specified.
Will be the first integer part if only it is specified.
Will be null if no version is present.- Returns:
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
compareTo
public int compareTo(VDBKey o)
- Specified by:
compareTo
in interfaceComparable<VDBKey>
-
isAtMost
public boolean isAtMost()
- Returns:
- true if the semantic version ends in a .
-
acceptsVerion
public boolean acceptsVerion(VDBKey key)
- Parameters:
key
-- Returns:
- true if the key version >= the current version
-
getSemanticVersion
public String getSemanticVersion()
Get the full three part semantic version- Returns:
-
-