org.apache.derby.impl.sql.execute
Class ColumnInfo
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.ColumnInfo
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat
public class ColumnInfo extends java.lang.Object implements Formatable
This is the Column descriptor that is passed from Compilation to Execution for CREATE TABLE statements.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intCREATEstatic intDROPstatic intMODIFY_COLUMN_CONSTRAINTstatic intMODIFY_COLUMN_CONSTRAINT_NOT_NULLstatic intMODIFY_COLUMN_DEFAULT_INCREMENTstatic intMODIFY_COLUMN_DEFAULT_RESTARTstatic intMODIFY_COLUMN_DEFAULT_VALUEstatic intMODIFY_COLUMN_TYPE
-
Constructor Summary
Constructors Constructor and Description ColumnInfo()Public niladic constructor.ColumnInfo(java.lang.String name, DataTypeDescriptor dataType, DataValueDescriptor defaultValue, DefaultInfo defaultInfo, ProviderInfo[] providers, UUID newDefaultUUID, UUID oldDefaultUUID, int action, long autoincStart, long autoincInc, long autoinc_create_or_modify_Start_Increment)Make one of these puppies.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataTypeDescriptorgetDataType()intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)Write this object to a stream of stored objects.
-
-
-
Field Detail
-
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
-
DROP
public static final int DROP
- See Also:
- Constant Field Values
-
MODIFY_COLUMN_TYPE
public static final int MODIFY_COLUMN_TYPE
- See Also:
- Constant Field Values
-
MODIFY_COLUMN_CONSTRAINT
public static final int MODIFY_COLUMN_CONSTRAINT
- See Also:
- Constant Field Values
-
MODIFY_COLUMN_CONSTRAINT_NOT_NULL
public static final int MODIFY_COLUMN_CONSTRAINT_NOT_NULL
- See Also:
- Constant Field Values
-
MODIFY_COLUMN_DEFAULT_RESTART
public static final int MODIFY_COLUMN_DEFAULT_RESTART
- See Also:
- Constant Field Values
-
MODIFY_COLUMN_DEFAULT_INCREMENT
public static final int MODIFY_COLUMN_DEFAULT_INCREMENT
- See Also:
- Constant Field Values
-
MODIFY_COLUMN_DEFAULT_VALUE
public static final int MODIFY_COLUMN_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ColumnInfo
public ColumnInfo()
Public niladic constructor. Needed for Formatable interface to work.
-
ColumnInfo
public ColumnInfo(java.lang.String name, DataTypeDescriptor dataType, DataValueDescriptor defaultValue, DefaultInfo defaultInfo, ProviderInfo[] providers, UUID newDefaultUUID, UUID oldDefaultUUID, int action, long autoincStart, long autoincInc, long autoinc_create_or_modify_Start_Increment)Make one of these puppies.- Parameters:
name- Column name.dataType- Column type.defaultValue- Column default value.defaultInfo- Column default info.providers- Array of providers that this column depends on.newDefaultUUID- New UUID for default.oldDefaultUUID- Old UUID for default.action- Action (create, modify default, etc.)autoincStart- Start of autoincrement values.autoincInc- Increment of autoincrement values-- if parameter is 0, it implies that this is not an autoincrement value.
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead this object from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on errorjava.lang.ClassNotFoundException- thrown on error
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this object to a stream of stored objects.- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here.- Throws:
java.io.IOException- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
getDataType
public DataTypeDescriptor getDataType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG