Class PC_XenaVersion
- java.lang.Object
-
- org.apache.derby.impl.store.access.PC_XenaVersion
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Formatable
,TypedFormat
public class PC_XenaVersion extends java.lang.Object implements Formatable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
minorVersion
private static int
XENA_MAJOR_VERSION
private static int
XENA_MINOR_VERSION_0
-
Constructor Summary
Constructors Constructor Description PC_XenaVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMajorVersionNumber()
int
getMinorVersionNumber()
int
getTypeFormatId()
Get a universally unique identifier for the type of this object.private boolean
isUpgradeNeeded(PC_XenaVersion fromVersion)
void
readExternal(java.io.ObjectInput in)
java.lang.String
toString()
void
upgradeIfNeeded(TransactionController tc, PropertyConglomerate pc, java.util.Properties serviceProperties)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Field Detail
-
XENA_MAJOR_VERSION
private static final int XENA_MAJOR_VERSION
- See Also:
- Constant Field Values
-
XENA_MINOR_VERSION_0
private static final int XENA_MINOR_VERSION_0
- See Also:
- Constant Field Values
-
minorVersion
private int minorVersion
-
-
Method Detail
-
isUpgradeNeeded
private boolean isUpgradeNeeded(PC_XenaVersion fromVersion)
-
upgradeIfNeeded
public void upgradeIfNeeded(TransactionController tc, PropertyConglomerate pc, java.util.Properties serviceProperties) throws StandardException
- Throws:
StandardException
-
getMajorVersionNumber
public int getMajorVersionNumber()
-
getMinorVersionNumber
public int getMinorVersionNumber()
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
getTypeFormatId
public int getTypeFormatId()
Description copied from interface:TypedFormat
Get a universally unique identifier for the type of this object.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-