public final class DbmsTimeofdayImplementation extends AbstractJavaBackedTypeImplementation_V0105 implements PossRepImplementation_V0105
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_HOURS |
static int |
MAX_MINUTES |
static int |
MAX_NANOSECONDS |
static int |
MAX_SECONDS |
| Constructor and Description |
|---|
DbmsTimeofdayImplementation()
Deprecated.
- this constructor is provided merely as a consequence of the requirements of the Externalizable machinery. If you need an object of this class in your applications, invoking the getInstance() method is the recommended way to get it.
|
| Modifier and Type | Method and Description |
|---|---|
ReadOnlyMap<NameIdentifier,TypeDeclaration> |
getComponentIdentifierTypeDeclarationsMap()
Gets a map of component names to corresponding type declarations.
|
MyReadOnlyMap<java.lang.String,java.lang.String> |
getComponentNameMap()
Gets a map of component/type names.
|
ReadOnlyMap<java.lang.String,TypeDeclaration> |
getComponentTypeDeclarationsMap()
Gets a map of component names to corresponding type declarations.
|
ValueBuffer |
getComponentValue(java.lang.String componentName,
ScalarValueBuffer valueBuffer)
"Extracts" a possrep component value out of a value of the type
|
ValueBuffer |
getComponentValue(java.lang.String componentName,
ValueBuffer valueBuffer)
"Extracts" a possrep component value out of a value of the type
|
ValueBuffer |
getComponentValue(java.lang.String componentName,
ValueBuffer valueBuffer,
Heading nonScalarHeading)
"Extracts" a possrep component value out of a value of the type.
|
MyReadOnlyMap<java.lang.String,ValueBuffer> |
getComponentValues(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Gets all the possrep component values for a given value of the type this possrep is for
|
PossRepImplementation |
getDefaultPossrepImplementation()
Gets the possrep implementation that is to be considered the default for the type.
|
int |
getEncodingLength()
Gets the fixed encoding length, if the type employs fixed-length encoding, i.e.
|
static int |
getHours(long v)
Gets the hours portion of a long value holding a timeofday
|
MyReadOnlyMap<NameIdentifier,ValueBuffer> |
getIdentifierComponentValues(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Gets all the possrep component values for a given value of the type this possrep is for
|
static DbmsTimeofdayImplementation |
getInstance()
Gets instance
|
static int |
getJavaInt(java.util.Date date)
Gets a Java integer representing the HHMMSS numerical value of the given Java Date
|
static int |
getMinutes(long v)
Gets the minutes portion of a long value holding a timeofday
|
static int |
getNanoSeconds(long v)
Gets the nanoseconds portion of a long value holding a timeofday
|
MyReadOnlySet<PossRepImplementation> |
getPossrepImplementations()
Gets the set of all PossRepImplementations for this type.
|
java.lang.String |
getPossrepName()
Gets the possrep name
|
static int |
getSeconds(long v)
Gets the seconds portion of a long value holding a timeofday
|
static ValueBuffer |
getValueBuffer(java.util.Calendar calendar)
Creates a new ScalarValueBuffer holding the time-of-day value implied by the arguments
|
static ValueBuffer |
getValueBuffer(java.util.Date date)
Gets a TIMEOFDAY valueBuffer representing the time portion of the given date, in the UTC timezone (i.e.
|
static ValueBuffer |
getValueBuffer(int hhmmss)
Creates a new ScalarValueBuffer holding the time-of-day value implied by the arguments
|
static ValueBuffer |
getValueBuffer(int hours,
int minutes,
int seconds,
int nanoSeconds)
Creates a new ScalarValueBuffer holding the time-of-day value implied by the arguments
|
boolean |
hasVariableLengthEncoding()
Determines whether the number of bytes used in the physical encoding is the same for any possible value of the type.
|
void |
readExternal(java.io.ObjectInput in) |
ValueBuffer |
valueFromComponentValues(java.util.Map<java.lang.String,ValueBuffer> componentValueMap)
Returns a ValueBuffer holding the value of the type that this PossRepImplementation is for, and that corresponds to the component values given in the componentValueMap argument.
|
ValueBuffer |
valueFromExternalRepresentation(java.lang.String value,
Heading nonScalarHeading)
Convert a value of this possrep's type to internal format.
|
ValueBuffer |
valueFromIdentifierComponentValues(java.util.Map<NameIdentifier,ValueBuffer> componentValueMap)
Returns a ValueBuffer holding the value of the type that this PossRepImplementation is for, and that corresponds to the component values given in the componentValueMap argument.
|
java.lang.String |
valueToEscapedExternalRepresentation(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep.
|
java.lang.String |
valueToEscapedExternalRepresentationVerbose(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep, including the surrounding typename (i.e.
|
java.lang.String |
valueToExternalRepresentation(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep.
|
java.lang.String |
valueToExternalRepresentationVerbose(ValueBuffer valueBuffer,
Heading nonScalarHeading)
Converts a value in internal format to the appropriate textual representation of that value for this possrep, including the surrounding typename (i.e.
|
void |
writeExternal(java.io.ObjectOutput out) |
getEqualityOperatorImplementation, getOrderingOperatorImplementation, getPossrepImplementation, getRootTypeName, isOfTypegetCommonScalarSuperTypeImplementation, getOrdinalOperatorImplementations, getTypeName, getTypeNameIdentifier, valueFromEscapedExternalRepresentation, valueFromEscapedExternalRepresentation, valueFromEscapedExternalRepresentationWithoutExceptionpublic static final int MAX_HOURS
public static final int MAX_MINUTES
public static final int MAX_NANOSECONDS
public static final int MAX_SECONDS
@Deprecated public DbmsTimeofdayImplementation()
public static int getHours(long v)
v - The long value holding a timeofday valuepublic static final DbmsTimeofdayImplementation getInstance()
public static int getJavaInt(java.util.Date date)
date - A Date object, the time portion of which is to be rendered as a Java intpublic static int getMinutes(long v)
v - The long value holding a timeofday valuepublic static int getNanoSeconds(long v)
v - The long value holding a timeofday valuepublic static int getSeconds(long v)
v - The long value holding a timeofday valuepublic static ValueBuffer getValueBuffer(java.util.Calendar calendar)
calendar - A Calendar object holding a Java representation of a time valuepublic static ValueBuffer getValueBuffer(java.util.Date date)
date - A Date object holding a Java representation of a time valuepublic static ValueBuffer getValueBuffer(int hhmmss)
hhmmss - A 6-digit integer value representing a time-of-day with the first two digits holding the hour (on a 24hr clock), the next two the minutes and the last two the secondspublic static ValueBuffer getValueBuffer(int hours, int minutes, int seconds, int nanoSeconds)
hours - The hoursminutes - The minutesseconds - The secondsnanoSeconds - The nanosecondspublic ReadOnlyMap<NameIdentifier,TypeDeclaration> getComponentIdentifierTypeDeclarationsMap()
PossRepImplementation_V0105getComponentIdentifierTypeDeclarationsMap in interface PossRepImplementation_V0105public MyReadOnlyMap<java.lang.String,java.lang.String> getComponentNameMap()
PossRepImplementationgetComponentNameMap in interface PossRepImplementationpublic ReadOnlyMap<java.lang.String,TypeDeclaration> getComponentTypeDeclarationsMap()
PossRepImplementationgetComponentTypeDeclarationsMap in interface PossRepImplementationpublic ValueBuffer getComponentValue(java.lang.String componentName, ScalarValueBuffer valueBuffer)
PossRepImplementationgetComponentValue in interface PossRepImplementationcomponentName - The possrep component NamevalueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractedpublic ValueBuffer getComponentValue(java.lang.String componentName, ValueBuffer valueBuffer)
PossRepImplementationgetComponentValue in interface PossRepImplementationcomponentName - The possrep component NamevalueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractedpublic ValueBuffer getComponentValue(java.lang.String componentName, ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105getComponentValue in interface PossRepImplementation_V0105componentName - The possrep component NamevalueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractednonScalarHeading - The heading defining the nonScalar type that the value in the (nonscalar) valueBuffer is of.public MyReadOnlyMap<java.lang.String,ValueBuffer> getComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementationgetComponentValues in interface PossRepImplementationvalueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractednonScalarHeading - The heading defining the specific nonScalar type, if the type is nonScalar and the value is a body value alonepublic PossRepImplementation getDefaultPossrepImplementation()
AbstractTypeImplementation_V0105getDefaultPossrepImplementation in class AbstractTypeImplementation_V0105public int getEncodingLength()
AbstractTypeImplementation_V0105hasVariableLengthEncoding() method returns 'false'. Types that employ variable-length encodings are required to return a negative value.getEncodingLength in class AbstractTypeImplementation_V0105hasVariableLengthEncoding() method returns 'false'. Types that employ variable-length encodings are required to return a negative value.public MyReadOnlyMap<NameIdentifier,ValueBuffer> getIdentifierComponentValues(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105getIdentifierComponentValues in interface PossRepImplementation_V0105valueBuffer - The scalarValueBuffer holding the value of which the possrep's component's value is to be extractednonScalarHeading - The heading defining the specific nonScalar type, if the type is nonScalar and the value is a body value alonepublic MyReadOnlySet<PossRepImplementation> getPossrepImplementations()
AbstractTypeImplementation_V0105getPossrepImplementations in class AbstractTypeImplementation_V0105public java.lang.String getPossrepName()
PossRepImplementationgetPossrepName in interface PossRepImplementationpublic boolean hasVariableLengthEncoding()
AbstractTypeImplementation_V0105hasVariableLengthEncoding in class AbstractTypeImplementation_V0105public void readExternal(java.io.ObjectInput in)
readExternal in interface java.io.Externalizablepublic ValueBuffer valueFromComponentValues(java.util.Map<java.lang.String,ValueBuffer> componentValueMap) throws InvalidValueException
PossRepImplementationvalueFromComponentValues in interface PossRepImplementationcomponentValueMap - A Map holding component names and their corresponding values, held in a ValueBuffer.InvalidValueException - If the given mapping of component names to component values does not constitute a valid value for the typepublic ValueBuffer valueFromExternalRepresentation(java.lang.String value, Heading nonScalarHeading) throws InvalidValueException
PossRepImplementationvalueFromExternalRepresentation in interface PossRepImplementationvalue - the value in external format.nonScalarHeading - The heading defining the specific nonScalar type, if the type is nonScalar and the value is a body value aloneInvalidValueException - If the textual representation does not represent a value of the possrep's type.public ValueBuffer valueFromIdentifierComponentValues(java.util.Map<NameIdentifier,ValueBuffer> componentValueMap) throws InvalidValueException
PossRepImplementation_V0105valueFromIdentifierComponentValues in interface PossRepImplementation_V0105componentValueMap - A Map holding component names and their corresponding values, held in a ValueBuffer.InvalidValueException - If the given mapping of component names to component values does not constitute a valid value for the typepublic java.lang.String valueToEscapedExternalRepresentation(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementationvalueToEscapedExternalRepresentation in interface PossRepImplementationvalueBuffer - The value in internal format.nonScalarHeading - The heading defining the specific nonScalar type, if the type the value held in valueBuffer is of, is indeed nonScalar. Can be left null for scalar types, as they are not "defined" by a Heading.public java.lang.String valueToEscapedExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105valueToEscapedExternalRepresentationVerbose in interface PossRepImplementation_V0105valueBuffer - The value in internal format.nonScalarHeading - The heading defining the specific nonScalar type, if the type the value held in valueBuffer is of, is indeed nonScalar. Can be left null for scalar types, as they are not "defined" by a Heading.public java.lang.String valueToExternalRepresentation(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementationvalueToExternalRepresentation in interface PossRepImplementationvalueBuffer - The value in internal format.nonScalarHeading - The heading defining the specific nonScalar type, if the type the value held in valueBuffer is of, is indeed nonScalar. Can be left null for scalar types, as they are not "defined" by a Heading.public java.lang.String valueToExternalRepresentationVerbose(ValueBuffer valueBuffer, Heading nonScalarHeading)
PossRepImplementation_V0105valueToExternalRepresentationVerbose in interface PossRepImplementation_V0105valueBuffer - The value in internal format.nonScalarHeading - The heading defining the specific nonScalar type, if the type the value held in valueBuffer is of, is indeed nonScalar. Can be left null for scalar types, as they are not "defined" by a Heading.public void writeExternal(java.io.ObjectOutput out)
writeExternal in interface java.io.Externalizable