public class WrappingArrayType extends CBOAbstractAttributeType
| Modifier and Type | Field and Description | 
|---|---|
| static ConfigureInfo | CONFIGProvides the following additional attributes for value validation of nonnull arrays:
 
    minElements: the size of the array should be equal or greater than this number
    maxElements: the size of the array should be equal or less than this number
    allowNullElements: For nonnull arrays: true (default) - null is a valid element,
                                  false - each element in the array has to be nonnull. | 
| static java.lang.Integer | DEFAULT_WIDTH | 
| static java.math.BigDecimal[] | EMPTY_BigDecimal | 
| static java.lang.Boolean[] | EMPTY_Boolean | 
| static java.util.Date[] | EMPTY_Date | 
| static electric.xml.Document[] | EMPTY_Document | 
| static java.lang.Double[] | EMPTY_Double | 
| static javax.xml.datatype.Duration[] | EMPTY_Duration | 
| static java.lang.Float[] | EMPTY_Float | 
| static java.lang.Integer[] | EMPTY_Integer | 
| static java.lang.Long[] | EMPTY_Long | 
| static java.lang.String[] | EMPTY_String | 
| static java.net.URI[] | EMPTY_URI | 
| static org.apache.log4j.Logger | log | 
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, NO_CUSTOM_INDEX_VERSION| Constructor and Description | 
|---|
| WrappingArrayType(CBOAttributeTypeI cType) | 
| WrappingArrayType(CBOAttributeTypeI cType,
                 boolean useComponentsTextGUI) | 
| WrappingArrayType(CBOAttributeTypeI baseOrComponentType,
                 electric.xml.Element parms)Constructor of a new array type for either another array type or a single component
 2 cases:
 1. extends ends on [] -> extends name-[] is actually our component, we do not have an explicit wrappingBase. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | applyAdditionalEtters(CBOAttributeI attr,
                     SourceGeneratorI src)Same as  CBOAttributeTypeI.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. | 
| void | applyAdditionalEtters(java.lang.String pn,
                     SourceGeneratorI src,
                     boolean getterOnly)Generates NN-getters, returning an empty array as fallback. | 
| boolean | applySetHook(java.lang.String vn,
            MethodGeneratorI setmeth)Copy-on-write of the parameter to prevent modification of the internal field after its values have been recorded. | 
| void | checkConstraints(java.lang.Object value)Checks the array constraints as well as optional constraints on each element | 
| java.lang.Boolean | getAllowNullElements() | 
| java.lang.String | getAsString(java.lang.Object o) | 
| java.lang.Class | getBaseTypeClass()Extracts the base type class for the java type. | 
| 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. | 
| CBOAttributeTypeI | getComponent() | 
| java.lang.String | getComponentSqlType()If this is a  CBOAttributeTypeI.getCastorCollectionType()with an explicit component type, then returns
 the SQL column type the component. | 
| java.lang.String | getComponentTypeName()The type name of the component | 
| 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). | 
| AttributeTypeCodeGen<JavaMethodGen,JavaClassGen,WrappingArrayType> | getJavaCodeGen(java.lang.String attrName) | 
| int | getJdbcType()Type/Class that the JDBC driver returns for the column/field. | 
| java.lang.Integer | getMaxElements() | 
| java.lang.Integer | getMinElements() | 
| java.lang.String | getName() | 
| AttributeTypeCodeGen<nrxmethod,nrxgen,WrappingArrayType> | getNRXCodeGen(java.lang.String attrName) | 
| java.lang.String | getSqlType()SQL column type in the relational database. | 
| java.lang.Integer | getStandardExpectedWidth() | 
| java.lang.Boolean | getUseComponentsGUIText() | 
| void | handleElementE(electric.xml.Element el)Dummy handle for element of the parms configuration. | 
| boolean | hasAdditionalEtters() | 
| boolean | hasSetHook() | 
| boolean | isComponentMandatory() | 
| boolean | isComponentsGUIText() | 
| java.lang.String | marshal(java.lang.Object o) | 
| void | setAllowNullElements(java.lang.Boolean $13) | 
| void | setMaxElements(java.lang.Integer $12) | 
| void | setMinElements(java.lang.Integer $11) | 
| void | setUseComponentsGUIText(java.lang.Boolean $14) | 
| java.lang.Object | stringToValueWithTypeTip(java.lang.String typeName,
                        java.lang.String s) | 
| java.lang.Object | unMarshal(java.lang.String s) | 
allowsValue, applyCustomExternalization, applySetBOLoaderHook, castToNumber, castToOwnType, checkConstraints, compare, compareImpl, configure, formatAsInlineParameter, formatAsInlineParameter, getAsString, getAsString, getAsString, getBase, getBool, getCastorJavaClass, 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, waitgetAsUserFriendlyRawString, getHumanReadableIndexType, getJavaClassFQNForImport, getJavaClassnameForCode, getNonNullDefaultValue, getNullDefaultTypepublic static final org.apache.log4j.Logger log
public static final ConfigureInfo CONFIG
public static final java.lang.Integer DEFAULT_WIDTH
public static final java.math.BigDecimal[] EMPTY_BigDecimal
public static final java.lang.Boolean[] EMPTY_Boolean
public static final java.util.Date[] EMPTY_Date
public static final electric.xml.Document[] EMPTY_Document
public static final java.lang.Double[] EMPTY_Double
public static final javax.xml.datatype.Duration[] EMPTY_Duration
public static final java.lang.Float[] EMPTY_Float
public static final java.lang.Integer[] EMPTY_Integer
public static final java.lang.Long[] EMPTY_Long
public static final java.lang.String[] EMPTY_String
public static final java.net.URI[] EMPTY_URI
public WrappingArrayType(CBOAttributeTypeI cType)
public WrappingArrayType(CBOAttributeTypeI cType, boolean useComponentsTextGUI)
public WrappingArrayType(CBOAttributeTypeI baseOrComponentType, electric.xml.Element parms)
public void handleElementE(electric.xml.Element el)
public CBOAttributeTypeI getComponent()
public java.lang.String getComponentTypeName()
public boolean isComponentMandatory()
public boolean isComponentsGUIText()
public java.lang.Integer getStandardExpectedWidth()
public final int getJdbcType()
CBOAttributeTypeIpublic final java.lang.String getExternalizePostfix()
CBOAttributeTypeIpublic java.lang.String getDAUType()
CBOAttributeTypeIpublic java.lang.String getName()
public final java.lang.String getCastorCollectionType()
CBOAttributeTypeIgetCastorCollectionType in interface CBOAttributeTypeIgetCastorCollectionType in class CBOAbstractAttributeTypepublic java.lang.String getCastorFieldType()
CBOAttributeTypeIpublic final java.lang.String getCastorSqlType()
CBOAttributeTypeIpublic java.lang.String getSqlType()
CBOAttributeTypeIpublic java.lang.String getComponentSqlType()
CBOAttributeTypeICBOAttributeTypeI.getCastorCollectionType() with an explicit component type, then returns
 the SQL column type the component.
 Null, if not a collectionType.getComponentSqlType in interface CBOAttributeTypeIgetComponentSqlType in class CBOAbstractAttributeTypepublic java.lang.Class getJavaClass()
CBOAttributeTypeIpublic java.lang.Class getBaseTypeClass()
public AttributeTypeCodeGen<JavaMethodGen,JavaClassGen,WrappingArrayType> getJavaCodeGen(java.lang.String attrName)
public AttributeTypeCodeGen<nrxmethod,nrxgen,WrappingArrayType> getNRXCodeGen(java.lang.String attrName)
public boolean hasSetHook()
hasSetHook in interface CBOAttributeTypeIhasSetHook in class CBOAbstractAttributeTypepublic boolean applySetHook(java.lang.String vn,
                            MethodGeneratorI setmeth)
applySetHook in interface CBOAttributeTypeIapplySetHook in class CBOAbstractAttributeTypepublic boolean hasAdditionalEtters()
hasAdditionalEtters in interface CBOAttributeTypeIhasAdditionalEtters in class CBOAbstractAttributeTypepublic void applyAdditionalEtters(java.lang.String pn,
                                  SourceGeneratorI src,
                                  boolean getterOnly)
pn - 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.public void applyAdditionalEtters(CBOAttributeI attr, SourceGeneratorI src)
CBOAttributeTypeICBOAttributeTypeI.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)
public java.lang.Object unMarshal(java.lang.String s)
public java.lang.Object stringToValueWithTypeTip(java.lang.String typeName,
                                                 java.lang.String s)
public java.lang.String getAsString(java.lang.Object o)
public void checkConstraints(java.lang.Object value)
                      throws ValueSettingException
checkConstraints in interface CBOAttributeTypeIcheckConstraints in class CBOAbstractAttributeTypeValueSettingExceptionpublic java.lang.Integer getMinElements()
public void setMinElements(java.lang.Integer $11)
public java.lang.Integer getMaxElements()
public void setMaxElements(java.lang.Integer $12)
public java.lang.Boolean getAllowNullElements()
public void setAllowNullElements(java.lang.Boolean $13)
public java.lang.Boolean getUseComponentsGUIText()
public void setUseComponentsGUIText(java.lang.Boolean $14)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.