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 intminorVersionprivate static intXENA_MAJOR_VERSIONprivate static intXENA_MINOR_VERSION_0
-
Constructor Summary
Constructors Constructor Description PC_XenaVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajorVersionNumber()intgetMinorVersionNumber()intgetTypeFormatId()Get a universally unique identifier for the type of this object.private booleanisUpgradeNeeded(PC_XenaVersion fromVersion)voidreadExternal(java.io.ObjectInput in)java.lang.StringtoString()voidupgradeIfNeeded(TransactionController tc, PropertyConglomerate pc, java.util.Properties serviceProperties)voidwriteExternal(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:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getTypeFormatId
public int getTypeFormatId()
Description copied from interface:TypedFormatGet a universally unique identifier for the type of this object.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-