APIdia Launch Partner
Top Description Fields Constructors Methods
io.github.spannm.jackcess.impl.complex

public Class MultiValueColumnPropertyMap

extends Object
implements PropertyMap
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.PropertyMap, java.lang.Iterable
Imports
io.github.spannm.jackcess.DataType, .PropertyMap, io.github.spannm.jackcess.impl.PropertyMapImpl, java.io.IOException, java.util.ArrayList, .Iterator, .List, .NoSuchElementException

PropertyMap implementation for multi-value, complex properties. The properties for these columns seem to be dispersed between both the primary column and the complex value column. The primary column only seems to have the simple "multi-value" property and the rest seem to be on the complex value column. This PropertyMap implementation combines them into one synthetic map.

Field Summary

Modifier and TypeField and Description
private final PropertyMap
complex

properties from the complex column

private final PropertyMap
primary

properties from the primary column

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PropertyMap.Property
get(String name)

Implements io.github.spannm.jackcess.PropertyMap.get.

Returns the property with the given name, if any.

public String
getName()

Implements io.github.spannm.jackcess.PropertyMap.getName.

Returns the name of the database object to which this property map belongs.

public int
getSize()

Implements io.github.spannm.jackcess.PropertyMap.getSize.

Returns the number of properties currently in this map.

public Object
getValue(String name)

Implements io.github.spannm.jackcess.PropertyMap.getValue.

Returns the value of the property with the given name, if any.

public Object
getValue(String name, Object defaultValue)

Implements io.github.spannm.jackcess.PropertyMap.getValue.

Returns the value of the property with the given name, if any, otherwise the given defaultValue.

public boolean
isEmpty()

Implements io.github.spannm.jackcess.PropertyMap.isEmpty.

Returns true if this map has no properties.

private static boolean
public Iterator<PropertyMap.Property>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

public PropertyMap.Property
put(String name, Object value)

Implements io.github.spannm.jackcess.PropertyMap.put.

Creates a new (or updates an existing) property in the map.

public PropertyMap.Property
put(String name, DataType type, Object value)

Implements io.github.spannm.jackcess.PropertyMap.put.

Creates a new (or updates an existing) property in the map.

public PropertyMap.Property
put(String name, DataType type, Object value, boolean isDdl)

Implements io.github.spannm.jackcess.PropertyMap.put.

Creates a new (or updates an existing) property in the map.

public void
putAll(Iterable<? extends PropertyMap.Property> props)

Implements io.github.spannm.jackcess.PropertyMap.putAll.

Puts all the given properties into this map.

public PropertyMap.Property
remove(String name)

Implements io.github.spannm.jackcess.PropertyMap.remove.

Removes the property with the given name

public void
save()

Implements io.github.spannm.jackcess.PropertyMap.save.

Saves the current state of this map.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

complexback to summary
private final PropertyMap complex

properties from the complex column

primaryback to summary
private final PropertyMap primary

properties from the primary column

Constructor Detail

MultiValueColumnPropertyMapback to summary
public MultiValueColumnPropertyMap(PropertyMap _primary, PropertyMap _complex)

Method Detail

getback to summary
public PropertyMap.Property get(String name)

Implements io.github.spannm.jackcess.PropertyMap.get.

Doc from io.github.spannm.jackcess.PropertyMap.get.

Returns the property with the given name, if any.

Annotations
@Override
getNameback to summary
public String getName()

Implements io.github.spannm.jackcess.PropertyMap.getName.

Doc from io.github.spannm.jackcess.PropertyMap.getName.

Returns the name of the database object to which this property map belongs.

Annotations
@Override
getSizeback to summary
public int getSize()

Implements io.github.spannm.jackcess.PropertyMap.getSize.

Doc from io.github.spannm.jackcess.PropertyMap.getSize.

Returns the number of properties currently in this map.

Annotations
@Override
getValueback to summary
public Object getValue(String name)

Implements io.github.spannm.jackcess.PropertyMap.getValue.

Doc from io.github.spannm.jackcess.PropertyMap.getValue.

Returns the value of the property with the given name, if any.

Annotations
@Override
getValueback to summary
public Object getValue(String name, Object defaultValue)

Implements io.github.spannm.jackcess.PropertyMap.getValue.

Doc from io.github.spannm.jackcess.PropertyMap.getValue.

Returns the value of the property with the given name, if any, otherwise the given defaultValue.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Implements io.github.spannm.jackcess.PropertyMap.isEmpty.

Doc from io.github.spannm.jackcess.PropertyMap.isEmpty.

Returns true if this map has no properties.

Annotations
@Override
isPrimaryKeyback to summary
private static boolean isPrimaryKey(String name)
iteratorback to summary
public Iterator<PropertyMap.Property> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Annotations
@Override
putback to summary
public PropertyMap.Property put(String name, Object value)

Implements io.github.spannm.jackcess.PropertyMap.put.

Doc from io.github.spannm.jackcess.PropertyMap.put.

Creates 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 save method has been called.

Annotations
@Override
putback to summary
public PropertyMap.Property put(String name, DataType type, Object value)

Implements io.github.spannm.jackcess.PropertyMap.put.

Doc from io.github.spannm.jackcess.PropertyMap.put.

Creates a new (or updates an existing) property in the map.

Note, this change will not be persisted until the save method has been called.

Annotations
@Override
putback to summary
public PropertyMap.Property put(String name, DataType type, Object value, boolean isDdl)

Implements io.github.spannm.jackcess.PropertyMap.put.

Doc from io.github.spannm.jackcess.PropertyMap.put.

Creates a new (or updates an existing) property in the map.

Note, this change will not be persisted until the save method has been called.

Annotations
@Override
putAllback to summary
public void putAll(Iterable<? extends PropertyMap.Property> props)

Implements io.github.spannm.jackcess.PropertyMap.putAll.

Doc from io.github.spannm.jackcess.PropertyMap.putAll.

Puts all the given properties into this map.

Annotations
@Override
removeback to summary
public PropertyMap.Property remove(String name)

Implements io.github.spannm.jackcess.PropertyMap.remove.

Doc from io.github.spannm.jackcess.PropertyMap.remove.

Removes the property with the given name

Annotations
@Override
saveback to summary
public void save() throws IOException

Implements io.github.spannm.jackcess.PropertyMap.save.

Doc from io.github.spannm.jackcess.PropertyMap.save.

Saves the current state of this map.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override