public class StringMapType extends AbstractAttributeType
| Modifier and Type | Field and Description |
|---|---|
static ConfigureInfo |
CONFIG |
static java.lang.String |
MAP_STRING_STRING |
static java.lang.String |
NAME |
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 |
|---|
StringMapType() |
StringMapType(AttributeTypeI base,
electric.xml.Element parms) |
StringMapType(electric.xml.Element parms) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAdditionalEtters(CBOAttributeI attr,
SourceGeneratorI src)
Same as
AttributeTypeI.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. |
boolean |
applySetHook(java.lang.String attrName,
MethodGeneratorI setter) |
void |
checkConstraints(java.lang.Object valueToCheck)
Checks if the given value (object) matches the constraints (limits,
etc. - if any) set for this type.
|
void |
configure() |
static java.util.Map<java.lang.String,java.lang.String> |
fromString(java.lang.String s)
Deserializes the string back into a Map.
|
java.lang.Boolean |
getAllowNullEntries() |
java.lang.Boolean |
getAllowNullKeys() |
java.lang.String |
getAsString(java.lang.Object o) |
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.
|
AttributeTypeCodeGen<JavaMethodGen,JavaClassGen,StringMapType> |
getCodeGenerator(java.lang.String attrName) |
java.lang.String |
getDAUType()
User-friendly l10n-ed name for the type, to be used for user interaction.
|
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.Class<?> |
getJavaClass()
The not null type/Class of the field in the Java object (the MyTISM BO).
|
java.lang.String |
getJavaClassnameForClassAccessInCode()
Return the java class name as used in situations where we need to access the class.
|
java.lang.String |
getJavaClassnameForCode()
Return the java class name as used in fields declarations with this class.
|
int |
getJdbcType()
Type/Class that the JDBC driver returns for the column/field.
|
java.lang.String |
getName() |
java.lang.String |
getSqlType()
SQL column type in the relational database.
|
java.lang.Integer |
getStandardExpectedWidth() |
boolean |
hasAdditionalEtters() |
boolean |
hasCodeBuilderForScalarVirtualEtters() |
boolean |
hasSetHook() |
java.lang.String |
marshal(java.lang.Object o)
Converts a Java Map into the PostgreSQL hstore string representation.
|
void |
setAllowNullEntries(java.lang.Boolean allowNullEntries) |
void |
setAllowNullKeys(java.lang.Boolean allowNullKeys) |
java.lang.Object |
stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String s) |
java.lang.Object |
unMarshal(java.lang.String s)
Parses a PostgreSQL hstore string back into a Java Map.
|
allowsValue, applyCustomExternalization, applySetBOLoaderHook, castToNumber, castToOwnType, checkConstraints, compare, compareImpl, formatAsInlineParameter, formatAsInlineParameter, getAsString, getAsString, getAsString, getBase, getBool, getCastorCollectionType, getCastorJavaClass, getComponentSqlType, getDef, getDefinition, getExpectedWidth, getFilter, getFloat, getIndexType, getInt, getLong, getNullable, getPositiveInt, getUnique, hasCustomExternalization, hasSetBOLoaderHook, isCore, isIndexed, isMandatory, marshal, nullable, setAsString, setAsString, setAsString, setBase, setDef, setExpectedWidth, setIndexType, setNullable, setUnique, stringToValue, stringToValue, stringToValue, stringToValue, stringToValueWithTypeTip, stringToValueWithTypeTip, stringToValueWithTypeTip, stringToValueWithTypeTip, toXML, toXMLStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAdditionalEtters, getAsUserFriendlyRawString, getHumanReadableIndexType, getJavaClassFQNForImport, getNonNullDefaultValue, getNullDefaultType, processAttributeTypeParameterspublic static final java.lang.String NAME
public static final ConfigureInfo CONFIG
public static final java.lang.String MAP_STRING_STRING
public StringMapType()
public StringMapType(electric.xml.Element parms)
public StringMapType(AttributeTypeI base, electric.xml.Element parms)
public void configure()
configure in interface AttributeTypeIconfigure in class AbstractAttributeTypepublic java.lang.String getName()
public java.lang.Boolean getAllowNullKeys()
public void setAllowNullKeys(java.lang.Boolean allowNullKeys)
public java.lang.Boolean getAllowNullEntries()
public void setAllowNullEntries(java.lang.Boolean allowNullEntries)
public java.lang.Class<?> getJavaClass()
AttributeTypeIpublic java.lang.String getJavaClassnameForCode()
AttributeTypeIpublic java.lang.String getJavaClassnameForClassAccessInCode()
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.Integer getStandardExpectedWidth()
public java.lang.String getExternalizePostfix()
AttributeTypeIpublic java.lang.String getAsString(java.lang.Object o)
public java.lang.Object stringToValueWithTypeTip(java.lang.String typeName,
java.lang.String s)
throws ValueSettingException
ValueSettingExceptionpublic void checkConstraints(java.lang.Object valueToCheck)
throws ValueSettingException
AttributeTypeIcheckConstraints in interface AttributeTypeIcheckConstraints in class AbstractAttributeTypeValueSettingExceptionpublic AttributeTypeCodeGen<JavaMethodGen,JavaClassGen,StringMapType> getCodeGenerator(java.lang.String attrName)
public boolean hasSetHook()
hasSetHook in interface AttributeTypeIhasSetHook in class AbstractAttributeTypepublic boolean applySetHook(java.lang.String attrName,
MethodGeneratorI setter)
applySetHook in interface AttributeTypeIapplySetHook in class AbstractAttributeTypepublic boolean hasAdditionalEtters()
hasAdditionalEtters in interface AttributeTypeIhasAdditionalEtters in class AbstractAttributeTypepublic boolean hasCodeBuilderForScalarVirtualEtters()
public void applyAdditionalEtters(CBOAttributeI attr, SourceGeneratorI src)
AttributeTypeIAttributeTypeI.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.public java.lang.String marshal(java.lang.Object o)
Syntax: "key1"=>"val1", "key2"=>"val2"
o - Must be an instance of java.util.MapMarshallingException - if the passed non-null object is not a Map.public java.lang.Object unMarshal(java.lang.String s)
s - The raw string from the database or the internal NULL token.public static java.util.Map<java.lang.String,java.lang.String> fromString(java.lang.String s)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.