Class PropertyMapImpl
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.PropertyMapImpl
-
- All Implemented Interfaces:
PropertyMap,Iterable<PropertyMap.Property>
public class PropertyMapImpl extends Object implements PropertyMap
Map of properties for a database object.- Author:
- James Ahlborn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.PropertyMap
PropertyMap.DisplayControl, PropertyMap.EnumValue, PropertyMap.IMEMode, PropertyMap.IMESentenceMode, PropertyMap.Property, PropertyMap.TextFormat
-
-
Field Summary
-
Fields inherited from interface com.healthmarketscience.jackcess.PropertyMap
ACCESS_VERSION_PROP, AGGREGATE_TYPE_PROP, ALLOW_BUILT_IN_TOOLBARS_PROP, ALLOW_DATASHEET_SCHEMA_PROP, ALLOW_FULL_MENUS_PROP, ALLOW_MULTI_VALUE_PROP, ALLOW_SHORTCUT_MENUS_PROP, ALLOW_SPECIAL_KEYS_PROP, ALLOW_TOOLBAR_CHANGES_PROP, ALLOW_ZERO_LEN_PROP, ALTERNATE_BACK_SHADE_PROP, ALTERNATE_BACK_THEME_COLOR_INDEX_PROP, ALTERNATE_BACK_TINT_PROP, ANSI_QUERY_MODE_PROP, APPEND_ONLY_PROP, AUTHOR_PROP, AUTO_COMPACT_PROP, BACK_SHADE_PROP, BACK_TINT_PROP, BOUND_COLUMN_PROP, BUILD_PROP, CAPTION_PROP, CHECK_TRUNCATED_NUM_FIELDS_PROP, COLUMN_COUNT_PROP, COLUMN_HIDDEN_PROP, COLUMN_ORDER_PROP, COLUMN_WIDTH_PROP, COLUMN_WIDTHS_PROP, COMPANY_PROP, CURRENCY_LCID_PROP, DATASHEET_FORE_THEME_COLOR_INDEX_PROP, DATASHEET_GRIDLINES_THEME_COLOR_INDEX_PROP, DECIMAL_PLACES_PROP, DEFAULT_VALUE_PROP, DEFAULT_VIEW_PROP, DESCRIPTION_PROP, DESIGN_WITH_DATA_PROP, DISPLAY_CONTROL_PROP, DISPLAY_VIEWS_ON_SHAREPOINT_PROP, EXPRESSION_PROP, FAIL_ON_ERROR_PROP, FILTER_ON_LOAD_PROP, FORMAT_PROP, GUID_PROP, HAS_OFFLINE_LISTS_PROP, HIDE_NEW_FIELD_PROP, IME_MODE_PROP, IME_SENTENCE_MODE_PROP, INPUT_MASK_PROP, LIMIT_TO_LIST_PROP, LOG_MESSAGES_PROP, NAME_MAP_PROP, NAV_PANE_CATEGORY_PROP, NAV_PANE_CLOSED_PROP, NAV_PANE_SEARCH_BAR_PROP, NAV_PANE_SORT_BY_PROP, NAV_PANE_VIEW_BY_PROP, NAV_PANE_WIDTH_PROP, ODBC_TIMEOUT_PROP, ORDER_BY_ON_LOAD_PROP, ORDER_BY_ON_PROP, ORIENTATION_PROP, PERFORM_NAME_AUTO_CORRECT_PROP, PICTURE_STORAGE_FORMAT_PROP, PROJ_VER_PROP, PUBLISH_TO_WEB_PROP, QUERY_NAME_MAP_PROP, READ_ONLY_WHEN_DISCONNECTED_PROP, RECORD_LOCKS_PROP, RECORDSET_TYPE_PROP, REPLICATE_PROJECT_PROP, REQUIRED_PROP, RESULT_TYPE_PROP, ROW_SOURCE_PROP, ROW_SOURCE_TYPE_PROP, SHOW_DOCUMENT_TABS_PROP, SHOW_VALUES_IN_INDEXED_PROP, SHOW_VALUES_IN_NON_INDEXED_PROP, SHOW_VALUES_IN_REMOTE_PROP, SHOW_VALUES_LIMIT_PROP, START_UP_SHOW_DB_WINDOW_PROP, START_UP_SHOW_STATUS_BAR_PROP, TEXT_ALIGN_PROP, TEXT_FORMAT_PROP, THEME_FONT_INDEX_PROP, THEME_RESOURCE_NAME_PROP, THEMED_FORM_CONTROLS_PROP, TITLE_PROP, TOTALS_ROW_PROP, TRACK_NAME_AUTO_CORRECT_PROP, UNICODE_COMPRESSION_PROP, USE_APP_ICON_FOR_FRM_RPT_PROP, USE_MDI_MODE_PROP, USE_TRANSACTION_PROP, VALIDATION_RULE_PROP, VALIDATION_TEXT_PROP, WEB_DESIGN_MODE_PROP
-
-
Constructor Summary
Constructors Constructor Description PropertyMapImpl(String name, short type, PropertyMaps owner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyMap.PropertycreateProperty(String name, DataType type, Object value)static PropertyMap.PropertycreateProperty(String name, DataType type, Object value, boolean isDdl)static PropertyMap.PropertycreateProperty(String name, DataType type, Object value, boolean isDdl, boolean isSkipHandler)PropertyMap.Propertyget(String name)StringgetName()PropertyMapsgetOwner()intgetSize()shortgetType()ObjectgetValue(String name)ObjectgetValue(String name, Object defaultValue)booleanisEmpty()Iterator<PropertyMap.Property>iterator()com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImplput(PropertyMap.Property prop)com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImplput(String name, DataType type, Object value)Creates a new (or updates an existing) property in the map.com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImplput(String name, DataType type, Object value, boolean isDdl)Puts a property into this map with the given information.com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImplput(String name, DataType type, Object value, boolean isDdl, boolean isSkipHandler)Creates a new (or updates an existing) property in the map, setting both of the flag bits ms access defines.com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImplput(String name, Object value)Creates a new (or updates an existing) property in the map.voidputAll(Iterable<? extends PropertyMap.Property> props)Puts all the given properties into this map.com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImplremove(String name)Removes the property with the given namevoidsave()Saves the current state of this map.StringtoString()static StringtoString(PropertyMap map)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.healthmarketscience.jackcess.PropertyMap
stream
-
-
-
-
Constructor Detail
-
PropertyMapImpl
public PropertyMapImpl(String name, short type, PropertyMaps owner)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacePropertyMap
-
getType
public short getType()
-
getOwner
public PropertyMaps getOwner()
-
getSize
public int getSize()
- Specified by:
getSizein interfacePropertyMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePropertyMap
-
get
public PropertyMap.Property get(String name)
- Specified by:
getin interfacePropertyMap- Returns:
- the property with the given name, if any
-
getValue
public Object getValue(String name)
- Specified by:
getValuein interfacePropertyMap- Returns:
- the value of the property with the given name, if any
-
getValue
public Object getValue(String name, Object defaultValue)
- Specified by:
getValuein interfacePropertyMap- Returns:
- the value of the property with the given name, if any, otherwise the given defaultValue
-
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, Object value)
Description copied from interface:PropertyMapCreates a new (or updates an existing) property in the map. Attempts to determine the type of the property based on the name and value (the property names listed above have their types builtin, otherwise the type of the value is used).Note, this change will not be persisted until the
PropertyMap.save()method has been called.- Specified by:
putin interfacePropertyMap- Returns:
- the newly created (or updated) property
-
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, DataType type, Object value)
Description copied from interface:PropertyMapCreates a new (or updates an existing) property in the map.Note, this change will not be persisted until the
PropertyMap.save()method has been called.- Specified by:
putin interfacePropertyMap- Returns:
- the newly created (or updated) property
-
putAll
public void putAll(Iterable<? extends PropertyMap.Property> props)
Description copied from interface:PropertyMapPuts all the given properties into this map.- Specified by:
putAllin interfacePropertyMap- Parameters:
props- the properties to put into this map (nullis tolerated and ignored).
-
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(PropertyMap.Property prop)
-
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, DataType type, Object value, boolean isDdl)
Puts a property into this map with the given information.- Specified by:
putin interfacePropertyMap- Returns:
- the newly created (or updated) property
-
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, DataType type, Object value, boolean isDdl, boolean isSkipHandler)
Description copied from interface:PropertyMapCreates a new (or updates an existing) property in the map, setting both of the flag bits ms access defines.Note, this change will not be persisted until the
PropertyMap.save()method has been called.- Specified by:
putin interfacePropertyMap- Returns:
- the newly created (or updated) property
-
remove
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl remove(String name)
Description copied from interface:PropertyMapRemoves the property with the given name- Specified by:
removein interfacePropertyMap- Returns:
- the removed property, or
nullif none found
-
iterator
public Iterator<PropertyMap.Property> iterator()
- Specified by:
iteratorin interfaceIterable<PropertyMap.Property>
-
save
public void save() throws IOExceptionDescription copied from interface:PropertyMapSaves the current state of this map.- Specified by:
savein interfacePropertyMap- Throws:
IOException
-
toString
public static String toString(PropertyMap map)
-
createProperty
public static PropertyMap.Property createProperty(String name, DataType type, Object value)
-
createProperty
public static PropertyMap.Property createProperty(String name, DataType type, Object value, boolean isDdl)
-
createProperty
public static PropertyMap.Property createProperty(String name, DataType type, Object value, boolean isDdl, boolean isSkipHandler)
-
-