org.apache.derby.impl.store.access
Class PC_XenaVersion

java.lang.Object
  extended by 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
private  int minorVersion
           
private static int XENA_MAJOR_VERSION
           
private static int XENA_MINOR_VERSION_0
           
 
Constructor Summary
PC_XenaVersion()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

PC_XenaVersion

public PC_XenaVersion()
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 interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException
Specified by:
readExternal in interface java.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 interface TypedFormat
Returns:
The identifier. (A UUID stuffed in an array of 16 bytes).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.