public abstract class Extensions extends Object implements Serializable
Constructor and Description |
---|
Extensions() |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String key,
Object value)
Add a vendor extension to this entity.
|
void |
addExtension(String vendor,
String key,
Object value)
Add a vendor extension to this entity.
|
protected void |
addExtensionKeys(Collection exts)
Add all the known extension keys to the specified collection; any
implementation that utilized new extensions should override this
method to include both the known extensions of its superclass as well
as its own extension keys.
|
protected void |
copy(Extensions exts)
Copy the extensions not present in this instance but present in the
given instance.
|
boolean |
getBooleanExtension(String key)
Get the value as a boolean.
|
boolean |
getBooleanExtension(String vendor,
String key)
Get the value as a boolean.
|
double |
getDoubleExtension(String key)
Get the value as a double.
|
double |
getDoubleExtension(String vendor,
String key)
Get the value as a double.
|
Extensions |
getEmbeddedExtensions(String key,
boolean create)
Return the embedded extensions under the given key.
|
Extensions |
getEmbeddedExtensions(String vendor,
String key,
boolean create)
Return the embedded extensions under the given key.
|
String[] |
getExtensionKeys()
Return all extension keys.
|
String[] |
getExtensionKeys(String vendor)
Return all extension keys for the given vendor.
|
String[] |
getExtensionVendors()
Return all vendors who have extension keys at this level.
|
int |
getIntExtension(String key)
Get the value as an int.
|
int |
getIntExtension(String vendor,
String key)
Get the value as an int.
|
Object |
getObjectExtension(String key)
Get the value of an extension.
|
Object |
getObjectExtension(String vendor,
String key)
Get the value of an extension.
|
abstract MetaDataRepository |
getRepository()
Return the metadata repository.
|
String |
getStringExtension(String key)
Get the value as a string.
|
String |
getStringExtension(String vendor,
String key)
Get the value as a string.
|
boolean |
hasExtension(String key)
Return true if the extension with the given key exists.
|
boolean |
hasExtension(String vendor,
String key)
Return true if the extension with the given key exists.
|
boolean |
isEmpty()
Return true if there are no keys for any vendor.
|
boolean |
removeEmbeddedExtensions(String key) |
boolean |
removeEmbeddedExtensions(String vendor,
String key) |
boolean |
removeExtension(String key)
Remove a vendor extension.
|
boolean |
removeExtension(String vendor,
String key)
Remove a vendor extension.
|
protected boolean |
validateDataStoreExtensionPrefix(String prefix)
Return true if extensions starting with the given official datastore
prefix should be validated for this runtime.
|
void |
validateExtensionKeys()
Helper method to issue warnings for any extensions that we
recognize but do not use.
|
public static final String OPENJPA
public boolean isEmpty()
public String[] getExtensionVendors()
public String[] getExtensionKeys()
public String[] getExtensionKeys(String vendor)
public boolean hasExtension(String key)
public boolean hasExtension(String vendor, String key)
public void addExtension(String key, Object value)
public void addExtension(String vendor, String key, Object value)
public boolean removeExtension(String key)
public boolean removeExtension(String vendor, String key)
public Object getObjectExtension(String vendor, String key)
public String getStringExtension(String vendor, String key)
public int getIntExtension(String key)
public double getDoubleExtension(String key)
public double getDoubleExtension(String vendor, String key)
public boolean getBooleanExtension(String key)
public boolean getBooleanExtension(String vendor, String key)
public Extensions getEmbeddedExtensions(String key, boolean create)
public Extensions getEmbeddedExtensions(String vendor, String key, boolean create)
public boolean removeEmbeddedExtensions(String key)
protected void copy(Extensions exts)
public void validateExtensionKeys()
protected void addExtensionKeys(Collection exts)
protected boolean validateDataStoreExtensionPrefix(String prefix)
public abstract MetaDataRepository getRepository()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.