public class TimespanType extends AbstractAttributeType
| Modifier and Type | Field and Description |
|---|---|
static ConfigureInfo |
CONFIG |
static java.lang.String |
NAME |
static java.lang.String |
OQL_TIMESPAN_FORMAT |
static java.util.Locale |
OQL_TIMESPAN_LOCALE |
OQL_NULL_STRINGINDEX_TYPE_AUTO, INDEX_TYPE_BRIN, INDEX_TYPE_BRIN_FB_BTREE, INDEX_TYPE_BTREE, INDEX_TYPE_CUSTOM, INDEX_TYPE_GIN, INDEX_TYPE_GIN_FB_BTREE, INDEX_TYPE_NONE, INDEX_TYPE_TRIGRAM, INDEX_TYPES, INDEX_TYPES_HR, MARSHALLED_NULL_VALUE, NO_CUSTOM_INDEX_VERSION| Constructor and Description |
|---|
TimespanType() |
TimespanType(AttributeTypeI _base,
electric.xml.Element _parms) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConstraints(java.lang.Object value)
Checks if the given value (object) matches the constraints (limits,
etc. - if any) set for this type.
|
void |
configure() |
java.lang.String |
formatAsInlineParameter(java.lang.String s)
Converts the passed String s to a String representation our OQL-query-engine can use in the query.
|
java.lang.String |
getAsString(java.lang.Object obj)
Converts given value (object) into a nicely formatted timespan string - if
possible - and returns it.
|
java.lang.String |
getAsString(java.lang.Object obj,
java.lang.Object parento) |
java.lang.String |
getAsString(java.lang.Object obj,
java.lang.Object parento,
java.lang.String displayFormat) |
java.lang.String |
getAsString(java.lang.Object obj,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale) |
java.lang.String |
getCastorFieldType()
From the Castor docs:
"The field element includes an optional attribute called type which can be
used to specify the Java type of the field.
|
java.lang.String |
getCastorSqlType()
From the Castor docs:
"Castor JDO implements automatic type conversion between Java and SQL.
|
java.lang.String |
getDAUType()
User-friendly l10n-ed name for the type, to be used for user interaction.
|
java.lang.String |
getDefaultUnit() |
java.lang.String |
getExternalizePostfix()
Used for the Schema serialization/diffs and for the naming of the
read/write externalization methods (of which the standard set is defined in
de.ipcon.db.core.BO).
|
java.lang.String |
getFormat() |
java.lang.Class |
getJavaClass()
The not null type/Class of the field in the Java object (the MyTISM BO).
|
int |
getJdbcType()
Type/Class that the JDBC driver returns for the column/field.
|
java.lang.Long |
getMaxInclusiveLimit() |
java.lang.Long |
getMinInclusiveLimit() |
java.lang.String |
getName() |
java.lang.String |
getNonNullDefaultValue() |
java.lang.String |
getNullString() |
java.lang.String |
getSqlType()
SQL column type in the relational database.
|
java.lang.Integer |
getStandardExpectedWidth() |
boolean |
hasAdditionalEtters() |
boolean |
isMandatory() |
java.lang.String |
marshal(java.lang.Object obj) |
void |
setDefaultUnit(java.lang.String $7) |
void |
setFormat(java.lang.String $3) |
void |
setMaxInclusiveLimit(java.lang.Long $6) |
void |
setMinInclusiveLimit(java.lang.Long $5) |
void |
setNullString(java.lang.String $4) |
java.lang.Object |
stringToValue(java.lang.String str)
Tries to parse/transform the given string into a valid value (object) for
this type.
|
java.lang.Object |
stringToValue(java.lang.String str,
java.util.Locale locale) |
java.lang.Object |
stringToValue(java.lang.String str,
java.util.Locale locale,
java.lang.String displayFormat) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.util.Locale locale) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.util.Locale locale,
java.lang.String displayFormat) |
java.lang.Object |
unMarshal(java.lang.String str) |
allowsValue, applyCustomExternalization, applySetBOLoaderHook, applySetHook, castToNumber, castToOwnType, checkConstraints, compare, compareImpl, formatAsInlineParameter, getAsString, getBase, getBool, getCastorCollectionType, getCastorJavaClass, getComponentSqlType, getDef, getDefinition, getExpectedWidth, getFilter, getFloat, getIndexType, getInt, getLong, getNullable, getPositiveInt, getUnique, hasCustomExternalization, hasSetBOLoaderHook, hasSetHook, isCore, isIndexed, marshal, nullable, setAsString, setAsString, setAsString, setBase, setDef, setExpectedWidth, setIndexType, setNullable, setUnique, stringToValue, stringToValue, stringToValue, stringToValueWithTypeTip, stringToValueWithTypeTip, stringToValueWithTypeTip, stringToValueWithTypeTip, toXML, toXMLStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAdditionalEtters, applyAdditionalEtters, getAsUserFriendlyRawString, getCodeGenerator, getHumanReadableIndexType, getJavaClassFQNForImport, getJavaClassnameForClassAccessInCode, getJavaClassnameForCode, getNullDefaultType, hasCodeBuilderForScalarVirtualEtters, processAttributeTypeParameterspublic static final java.lang.String NAME
public static final ConfigureInfo CONFIG
public static final java.lang.String OQL_TIMESPAN_FORMAT
public static final java.util.Locale OQL_TIMESPAN_LOCALE
public TimespanType()
public TimespanType(AttributeTypeI _base, electric.xml.Element _parms)
public java.lang.String getName()
public void configure()
configure in interface AttributeTypeIconfigure in class AbstractAttributeTypepublic java.lang.Class getJavaClass()
AttributeTypeIpublic java.lang.String getCastorFieldType()
AttributeTypeIpublic java.lang.String getCastorSqlType()
AttributeTypeIpublic java.lang.String getSqlType()
AttributeTypeIpublic java.lang.String getDAUType()
AttributeTypeIpublic int getJdbcType()
AttributeTypeIpublic java.lang.String getExternalizePostfix()
AttributeTypeIpublic java.lang.Integer getStandardExpectedWidth()
public boolean isMandatory()
isMandatory in interface AttributeTypeIisMandatory in class AbstractAttributeTypepublic java.lang.String getAsString(java.lang.Object obj)
public java.lang.String getAsString(java.lang.Object obj,
java.lang.Object parento)
public java.lang.String getAsString(java.lang.Object obj,
java.lang.Object parento,
java.lang.String displayFormat)
getAsString in interface AttributeTypeIgetAsString in class AbstractAttributeTypepublic java.lang.String getAsString(java.lang.Object obj,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale)
getAsString in interface AttributeTypeIgetAsString in class AbstractAttributeTypepublic java.lang.String formatAsInlineParameter(java.lang.String s)
AttributeTypeIformatAsInlineParameter in interface AttributeTypeIformatAsInlineParameter in class AbstractAttributeTypepublic java.lang.String marshal(java.lang.Object obj)
public java.lang.Object stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str)
throws ValueSettingException
ValueSettingExceptionpublic java.lang.Object stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.util.Locale locale)
throws ValueSettingException
ValueSettingExceptionpublic java.lang.Object stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.util.Locale locale,
java.lang.String displayFormat)
throws ValueSettingException
ValueSettingExceptionpublic java.lang.Object stringToValue(java.lang.String str)
throws ValueSettingException
stringToValue in interface AttributeTypeIstringToValue in class AbstractAttributeTypeValueSettingExceptionpublic java.lang.Object stringToValue(java.lang.String str,
java.util.Locale locale)
throws ValueSettingException
ValueSettingExceptionpublic java.lang.Object stringToValue(java.lang.String str,
java.util.Locale locale,
java.lang.String displayFormat)
throws ValueSettingException
ValueSettingExceptionpublic java.lang.Object unMarshal(java.lang.String str)
public void checkConstraints(java.lang.Object value)
throws ValueSettingException
checkConstraints in interface AttributeTypeIcheckConstraints in class AbstractAttributeTypeValueSettingExceptionpublic boolean hasAdditionalEtters()
hasAdditionalEtters in interface AttributeTypeIhasAdditionalEtters in class AbstractAttributeTypepublic java.lang.String getNonNullDefaultValue()
public java.lang.String getFormat()
public void setFormat(java.lang.String $3)
public java.lang.String getNullString()
public void setNullString(java.lang.String $4)
public java.lang.Long getMinInclusiveLimit()
public void setMinInclusiveLimit(java.lang.Long $5)
public java.lang.Long getMaxInclusiveLimit()
public void setMaxInclusiveLimit(java.lang.Long $6)
public java.lang.String getDefaultUnit()
public void setDefaultUnit(java.lang.String $7)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.