Class AggregateAliasInfo
java.lang.Object
org.apache.derby.catalog.types.AggregateAliasInfo
- All Implemented Interfaces:
Externalizable, Serializable, AliasInfo, Formatable, TypedFormat
Describe a G (Aggregate) alias. The AggregateAliasInfo maintains a version stamp so that it
can evolve its persistent form over time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TypeDescriptor////////////////////////////////////////////////////////////////////////////////private TypeDescriptorprivate static final int////////////////////////////////////////////////////////////////////////////////Fields inherited from interface AliasInfo
ALIAS_NAME_SPACE_AGGREGATE_AS_CHAR, ALIAS_NAME_SPACE_AGGREGATE_AS_STRING, ALIAS_NAME_SPACE_FUNCTION_AS_CHAR, ALIAS_NAME_SPACE_FUNCTION_AS_STRING, ALIAS_NAME_SPACE_PROCEDURE_AS_CHAR, ALIAS_NAME_SPACE_PROCEDURE_AS_STRING, ALIAS_NAME_SPACE_SYNONYM_AS_CHAR, ALIAS_NAME_SPACE_SYNONYM_AS_STRING, ALIAS_NAME_SPACE_UDT_AS_CHAR, ALIAS_NAME_SPACE_UDT_AS_STRING, ALIAS_TYPE_AGGREGATE_AS_CHAR, ALIAS_TYPE_AGGREGATE_AS_STRING, ALIAS_TYPE_FUNCTION_AS_CHAR, ALIAS_TYPE_FUNCTION_AS_STRING, ALIAS_TYPE_PROCEDURE_AS_CHAR, ALIAS_TYPE_PROCEDURE_AS_STRING, ALIAS_TYPE_SYNONYM_AS_CHAR, ALIAS_TYPE_SYNONYM_AS_STRING, ALIAS_TYPE_UDT_AS_CHAR, ALIAS_TYPE_UDT_AS_STRING -
Constructor Summary
ConstructorsConstructorDescriptionno-arg constructor for Formatable machineryAggregateAliasInfo(TypeDescriptor forType, TypeDescriptor returnType) Construct from pieces -
Method Summary
Modifier and TypeMethodDescription////////////////////////////////////////////////////////////////////////////////Get the name of the static method that the alias represents at the source database.intGet the formatID which corresponds to this class.boolean////////////////////////////////////////////////////////////////////////////////voidRead this object from a stream of stored objects.voidsetCollationTypeForAllStringTypes(int collationType) Set the collation type for string input and return types.toString()This is used by dblook to reconstruct the aggregate-specific parts of the ddl needed to recreate this alias.voidWrite this object to a stream of stored objects.
-
Field Details
-
FIRST_VERSION
private static final int FIRST_VERSION////////////////////////////////////////////////////////////////////////////////- See Also:
-
_forType
//////////////////////////////////////////////////////////////////////////////// -
_returnType
-
-
Constructor Details
-
AggregateAliasInfo
public AggregateAliasInfo()no-arg constructor for Formatable machinery -
AggregateAliasInfo
Construct from pieces
-
-
Method Details
-
isTableFunction
public boolean isTableFunction()////////////////////////////////////////////////////////////////////////////////- Specified by:
isTableFunctionin interfaceAliasInfo
-
getForType
//////////////////////////////////////////////////////////////////////////////// -
getReturnType
-
setCollationTypeForAllStringTypes
public void setCollationTypeForAllStringTypes(int collationType) Set the collation type for string input and return types. -
readExternal
Read this object from a stream of stored objects.- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- read this.- Throws:
IOException- thrown on errorClassNotFoundException- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- write bytes here.- Throws:
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
-
toString
-
getMethodName
Description copied from interface:AliasInfoGet the name of the static method that the alias represents at the source database. (Only meaningful for method aliases )- Specified by:
getMethodNamein interfaceAliasInfo- Returns:
- The name of the static method that the alias represents at the source database.
-