public interface CBOAttributeTypeI
Modifier and Type | Field and Description |
---|---|
static int |
INDEX_TYPE_AUTO |
static int |
INDEX_TYPE_BRIN |
static int |
INDEX_TYPE_BRIN_FB_BTREE |
static int |
INDEX_TYPE_BTREE |
static int |
INDEX_TYPE_CUSTOM |
static int |
INDEX_TYPE_GIN |
static int |
INDEX_TYPE_GIN_FB_BTREE |
static int |
INDEX_TYPE_NONE |
static int |
INDEX_TYPE_TRIGRAM |
static java.util.Map<java.lang.String,java.lang.Integer> |
INDEX_TYPES |
static java.lang.String[] |
INDEX_TYPES_HR |
static int |
NO_CUSTOM_INDEX_VERSION |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsValue(java.lang.Object value) |
default void |
applyAdditionalEtters(CBOAttributeI attr,
SourceGeneratorI src)
Same as
applyAdditionalEtters(java.lang.String, de.ipcon.schema.generators.SourceGeneratorI, boolean) but with more information
about the attribute to generate the Etters for. e.g. special handling for virtual and writable attributes. |
default <C extends SourceGeneratorI> |
applyAdditionalEtters(java.lang.String attrName,
C src,
boolean getterOnly)
Uses a source generator to generate additional setter and getter methods into the source code for an attribute.
|
void |
applyCustomExternalization(java.lang.String vn,
MethodGeneratorI exreadmeth,
MethodGeneratorI exwritemeth,
java.lang.String indentWrite) |
void |
applySetBOLoaderHook(java.lang.String vn,
MethodGeneratorI setbolmeth) |
boolean |
applySetHook(java.lang.String vn,
MethodGeneratorI setmeth) |
java.lang.Object |
castToOwnType(java.lang.Object o) |
void |
checkConstraints(java.lang.Object value) |
void |
checkConstraints(java.lang.Object value,
java.lang.String typeName) |
int |
compare(java.lang.Object o1,
java.lang.Object o2) |
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 |
formatAsInlineParameter(java.lang.String s,
java.lang.String queryQuotationMark)
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 o) |
java.lang.String |
getAsString(java.lang.Object o,
java.lang.Object parento,
java.lang.String displayFormat) |
java.lang.String |
getAsString(java.lang.Object o,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale) |
java.lang.String |
getAsString(java.lang.Object o,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale,
java.util.TimeZone timeZone) |
default java.lang.String |
getAsUserFriendlyRawString(java.lang.Object o) |
CBOAttributeTypeI |
getBase() |
java.lang.String |
getCastorCollectionType()
Type of the collection or null, if not a collectionfor generating the castor mapping file.
|
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 |
getComponentSqlType()
If this is a
getCastorCollectionType() with an explicit component type, then returns
the SQL column type the component. |
java.lang.String |
getDAUType()
User-friendly l10n-ed name for the type, to be used for user interaction.
|
java.lang.String |
getDef() |
electric.xml.Element |
getDefinition() |
java.lang.Integer |
getExpectedWidth() |
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).
|
javax.swing.text.DocumentFilter |
getFilter(java.util.ArrayList inputFormats) |
static java.lang.String |
getHumanReadableIndexType(int type) |
int |
getIndexType() |
java.lang.Class<?> |
getJavaClass()
The not null type/Class of the field in the Java object (the MyTISM BO).
|
default java.lang.String |
getJavaClassFQNForImport()
Return the fully qualified java class name in an import [result] compatible for.
|
default java.lang.String |
getJavaClassnameForCode()
Return the java class name as used in fields declarations with this class.
|
default AttributeTypeCodeGen<JavaMethodGen,JavaClassGen,?> |
getJavaCodeGen(java.lang.String attrName) |
int |
getJdbcType()
Type/Class that the JDBC driver returns for the column/field.
|
java.lang.String |
getName() |
default java.lang.String |
getNonNullDefaultValue() |
default AttributeTypeCodeGen<nrxmethod,nrxgen,?> |
getNRXCodeGen(java.lang.String attrName) |
default NullDefaultType |
getNullDefaultType()
gives the code generator an indication on how the provided default value needs to be fit into the code,
e.g.
|
java.lang.String |
getSqlType()
SQL column type in the relational database.
|
java.lang.Integer |
getStandardExpectedWidth() |
java.lang.Boolean |
getUnique() |
boolean |
hasAdditionalEtters() |
boolean |
hasCustomExternalization() |
boolean |
hasSetBOLoaderHook() |
boolean |
hasSetHook() |
boolean |
isCore() |
boolean |
isIndexed() |
boolean |
isMandatory() |
java.lang.String |
marshal(java.lang.Object o) |
java.lang.String |
marshal(java.lang.Object o,
CryptoHandlerI c) |
java.lang.Object |
setAsString(java.lang.String s) |
java.lang.Object |
setAsString(java.lang.String s,
boolean checkConstraints) |
java.lang.Object |
setAsString(java.lang.String s,
boolean checkConstraints,
java.lang.String typeName) |
java.lang.Object |
stringToValue(java.lang.String str) |
java.lang.Object |
stringToValue(java.lang.String str,
java.lang.Object parento) |
java.lang.Object |
stringToValue(java.lang.String str,
java.lang.Object parento,
java.lang.String displayFormat) |
java.lang.Object |
stringToValue(java.lang.String str,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale) |
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.lang.Object parento) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.lang.Object parento,
java.lang.String displayFormat) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String str,
java.lang.Object parento,
java.lang.String displayFormat,
java.util.Locale locale,
java.util.TimeZone timeZone) |
void |
toXML(electric.xml.Element element,
java.lang.String name,
java.lang.Object value) |
java.lang.String |
toXMLString(java.lang.String name,
java.lang.String value) |
java.lang.Object |
unMarshal(java.lang.String s) |
static final int NO_CUSTOM_INDEX_VERSION
static final int INDEX_TYPE_AUTO
static final int INDEX_TYPE_NONE
static final int INDEX_TYPE_BTREE
static final int INDEX_TYPE_TRIGRAM
static final int INDEX_TYPE_BRIN
static final int INDEX_TYPE_BRIN_FB_BTREE
static final int INDEX_TYPE_GIN
static final int INDEX_TYPE_GIN_FB_BTREE
static final int INDEX_TYPE_CUSTOM
static final java.util.Map<java.lang.String,java.lang.Integer> INDEX_TYPES
static final java.lang.String[] INDEX_TYPES_HR
static java.lang.String getHumanReadableIndexType(int type)
java.lang.String marshal(java.lang.Object o)
java.lang.String marshal(java.lang.Object o, CryptoHandlerI c)
java.lang.Object unMarshal(java.lang.String s)
java.lang.String getAsString(java.lang.Object o)
java.lang.String getAsString(java.lang.Object o, java.lang.Object parento, java.lang.String displayFormat)
java.lang.String getAsString(java.lang.Object o, java.lang.Object parento, java.lang.String displayFormat, java.util.Locale locale)
java.lang.String getAsString(java.lang.Object o, java.lang.Object parento, java.lang.String displayFormat, java.util.Locale locale, java.util.TimeZone timeZone)
default java.lang.String getAsUserFriendlyRawString(java.lang.Object o)
java.lang.String formatAsInlineParameter(java.lang.String s)
java.lang.String formatAsInlineParameter(java.lang.String s, java.lang.String queryQuotationMark)
java.lang.Object stringToValue(java.lang.String str) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValue(java.lang.String str, java.lang.Object parento) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValue(java.lang.String str, java.lang.Object parento, java.lang.String displayFormat) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValue(java.lang.String str, java.lang.Object parento, java.lang.String displayFormat, java.util.Locale locale) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValueWithTypeTip(java.lang.String typeName, java.lang.String str) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValueWithTypeTip(java.lang.String typeName, java.lang.String str, java.lang.Object parento) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValueWithTypeTip(java.lang.String typeName, java.lang.String str, java.lang.Object parento, java.lang.String displayFormat) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValueWithTypeTip(java.lang.String typeName, java.lang.String str, java.lang.Object parento, java.lang.String displayFormat, java.util.Locale locale) throws ValueSettingException
ValueSettingException
java.lang.Object stringToValueWithTypeTip(java.lang.String typeName, java.lang.String str, java.lang.Object parento, java.lang.String displayFormat, java.util.Locale locale, java.util.TimeZone timeZone) throws ValueSettingException
ValueSettingException
void checkConstraints(java.lang.Object value) throws ValueSettingException
ValueSettingException
void checkConstraints(java.lang.Object value, java.lang.String typeName) throws ValueSettingException
ValueSettingException
boolean allowsValue(java.lang.Object value)
java.lang.Object setAsString(java.lang.String s)
java.lang.Object setAsString(java.lang.String s, boolean checkConstraints)
java.lang.Object setAsString(java.lang.String s, boolean checkConstraints, java.lang.String typeName)
java.lang.Object castToOwnType(java.lang.Object o)
java.lang.Class<?> getJavaClass()
default java.lang.String getJavaClassFQNForImport()
default java.lang.String getJavaClassnameForCode()
java.lang.String getCastorFieldType()
java.lang.String getCastorSqlType()
java.lang.String getCastorCollectionType()
java.lang.String getSqlType()
java.lang.String getComponentSqlType()
getCastorCollectionType()
with an explicit component type, then returns
the SQL column type the component.
Null, if not a collectionType.java.lang.String getDAUType()
int getJdbcType()
java.lang.Integer getExpectedWidth()
java.lang.Integer getStandardExpectedWidth()
java.lang.String getDef()
java.lang.String getExternalizePostfix()
java.lang.String getName()
java.lang.String toXMLString(java.lang.String name, java.lang.String value)
void toXML(electric.xml.Element element, java.lang.String name, java.lang.Object value)
int compare(java.lang.Object o1, java.lang.Object o2)
boolean isMandatory()
javax.swing.text.DocumentFilter getFilter(java.util.ArrayList inputFormats)
int getIndexType()
boolean isIndexed()
java.lang.Boolean getUnique()
void configure()
boolean isCore()
electric.xml.Element getDefinition()
CBOAttributeTypeI getBase()
default AttributeTypeCodeGen<JavaMethodGen,JavaClassGen,?> getJavaCodeGen(java.lang.String attrName)
default AttributeTypeCodeGen<nrxmethod,nrxgen,?> getNRXCodeGen(java.lang.String attrName)
default NullDefaultType getNullDefaultType()
default java.lang.String getNonNullDefaultValue()
boolean hasCustomExternalization()
void applyCustomExternalization(java.lang.String vn, MethodGeneratorI exreadmeth, MethodGeneratorI exwritemeth, java.lang.String indentWrite)
boolean hasSetBOLoaderHook()
void applySetBOLoaderHook(java.lang.String vn, MethodGeneratorI setbolmeth)
boolean hasSetHook()
boolean applySetHook(java.lang.String vn, MethodGeneratorI setmeth)
boolean hasAdditionalEtters()
default <C extends SourceGeneratorI> void applyAdditionalEtters(java.lang.String attrName, C src, boolean getterOnly)
hasAdditionalEtters()
returns true.
Can be used to generate NN- or special access methods.attrName
- the attribute name to generate the *etters for, nonnull.src
- the nrx generator to extendgetterOnly
- true if the attribute is virtual and readonly, false otherwise. If true, only getter methods
should be generated.default void applyAdditionalEtters(CBOAttributeI attr, SourceGeneratorI src)
applyAdditionalEtters(java.lang.String, de.ipcon.schema.generators.SourceGeneratorI, boolean)
but with more information
about the attribute to generate the Etters for. e.g. special handling for virtual and writable attributes.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.