@groovy.transform.Trait @groovy.transform.CompileStatic trait DynamicAttributes extends java.lang.Object
A trait that adds support for defining dynamic attributes for databases that support it
Modifiers | Name | Description |
---|---|---|
private java.util.Map<java.lang.String, java.lang.Object> |
dynamicAttributes |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Map<java.lang.String, java.lang.Object> |
attributes() Obtain the dynamic attributes |
|
java.util.Map<java.lang.String, java.lang.Object> |
attributes(java.util.Map<java.lang.String, java.lang.Object> newAttributes) Obtain the dynamic attributes combined with the provided attributes |
|
java.lang.Object |
getAt(java.lang.String name) Obtains a dynamic attribute |
|
void |
putAt(java.lang.String name, java.lang.Object value) Sets a dynamic attribute |
|
private void |
putAtDynamic(java.lang.String name, java.lang.Object value) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtain the dynamic attributes
Obtain the dynamic attributes combined with the provided attributes
newAttributes
- The new attributesObtains a dynamic attribute
name
- The name of the attributeSets a dynamic attribute
name
- The name of the attributevalue
- The value of the attribute