public class ResourceReferenceDescriptor extends EnvironmentProperty implements NamedDescriptor, ResourceReference
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_AUTHORIZATION
For database resources, this says the application will log in.
|
static String |
CONTAINER_AUTHORIZATION
For database resources this says the container will log in.
|
static String |
RESOURCE_SHAREABLE |
static String |
RESOURCE_UNSHAREABLE |
lookupName, mappedName
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
Constructor and Description |
---|
ResourceReferenceDescriptor()
Default constructor.
|
ResourceReferenceDescriptor(String name,
String description,
String type)
Construct a resource reference with the given name, description
and type.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(NameValuePairDescriptor newProp)
Add a new runtime property to this cmp resource
|
void |
checkType()
checks the given class type.
|
boolean |
equals(Object object)
Equality on name.
|
String |
getAuthorization()
Return the authorization type of this resource.
|
String |
getDatabaseVendorName() |
String |
getInjectResourceType()
This is the class name of the type of resource that is to be injected.
|
DataSource |
getJDBCDataSource()
Lookup the datasource from the namespace based on the JNDI name.
|
String |
getJndiName()
Return the JNDI name of this resource reference.
|
MailConfiguration |
getMailConfiguration()
Return the mail configuration details of thsi resource or null.
|
Iterator |
getProperties() |
ResourcePrincipal |
getResourcePrincipal()
Return the identity used to authorize this resource.
|
Properties |
getSchemaGeneratorProperties() |
String |
getSharingScope()
Return the res-sharing-scope of this resource reference.
|
String |
getType()
Return the type of the resource.
|
boolean |
hasAuthorization()
Has the authorization type been set?
|
int |
hashCode()
The hashCode of an environment property is the same as that of the name String.
|
boolean |
hasSharingScope()
Has the sharing scope been set?
|
boolean |
isConflict(ResourceReferenceDescriptor other) |
boolean |
isContainerAuthorization()
Return true of this resource reference is expecting the container
to authorize the resource.
|
boolean |
isCreateTablesAtDeploy() |
boolean |
isDropTablesAtUndeploy() |
boolean |
isJDBCResource() |
boolean |
isJMSConnectionFactory()
Return true if this resource is a JMS connection factory.
|
boolean |
isMailResource()
Return true if this resource is to a JavaMail session object.
|
boolean |
isORB()
Return true is the resource is of
ORB type |
boolean |
isResolved()
Does this resource references have a JNDI name.
|
boolean |
isResourceConnectionFactory()
Return true if this resource is a CCI connection factory.
|
boolean |
isURLResource()
Return true if this resource is a URL object
|
boolean |
isWebServiceContext()
Return true is the resource is of
WebServiceContext type |
void |
print(StringBuilder toStringBuilder)
Returns a formatted string representing my state.
|
void |
setAuthorization(String authorization)
Sets the authorization type of this resource.
|
void |
setCreateTablesAtDeploy(boolean createTablesAtDeploy)
Sets whether if automatic creation of tables for the CMP Beans is
done at deployment time
|
void |
setDatabaseVendorName(String vendorName)
Sets the database vendor name
|
void |
setDropTablesAtUndeploy(boolean dropTablesAtUndeploy)
Sets whether if automatic creation of tables for the CMP Beans is
done at deployment time
|
void |
setInjectResourceType(String resourceType) |
void |
setJndiName(String jndiName)
Set the JNDI name of this resource reference.
|
void |
setMailConfiguration(MailConfiguration mailConfiguration)
Sets the mail configuration information for this reference.
|
void |
setResourcePrincipal(ResourcePrincipal resourcePrincipal)
Sets the identity used to authorize this resource.
|
void |
setSchemaGeneratorProperties(Properties props)
Sets the override properties for the schema generation
|
void |
setSharingScope(String ss)
Set the res-sharing-scope of this resource reference.
|
void |
setType(String type)
Sets the type of this resource.
|
addInjectionTarget, getComponentEnvName, getInjectionTargets, getLookupName, getMappedName, getResolvedValue, getResolvedValueObject, getValue, getValueObject, getValueType, hasAValue, hasInjectionTargetFromXml, hasLookupName, isConflict, isConflictResourceGroup, isInjectable, isSetValueCalled, printInjectableResourceInfo, setLookupName, setMappedName, setValue
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName
setDescription
getDescription, getName, getValue, setName, setValue
getDescription, getLargeIconUri, getName, getSmallIconUri, setDescription, setLargeIconUri, setName, setSmallIconUri
public static final String APPLICATION_AUTHORIZATION
public static final String CONTAINER_AUTHORIZATION
public static final String RESOURCE_SHAREABLE
public static final String RESOURCE_UNSHAREABLE
public ResourceReferenceDescriptor(String name, String description, String type)
name
- the name of the referencedescription
- the descriptiontype
- the type of the resource reference.public ResourceReferenceDescriptor()
public String getJndiName()
getJndiName
in interface NamedDescriptor
public void setJndiName(String jndiName)
setJndiName
in interface NamedDescriptor
jndiName
- the JNDI name of the resource reference.public String getInjectResourceType()
InjectionCapable
getInjectResourceType
in interface InjectionCapable
getInjectResourceType
in class EnvironmentProperty
public void setInjectResourceType(String resourceType)
setInjectResourceType
in interface InjectionCapable
setInjectResourceType
in class EnvironmentProperty
public boolean hasSharingScope()
public String getSharingScope()
public void setSharingScope(String ss)
ss
- the sharing scope.public boolean isResolved()
public boolean hasAuthorization()
public boolean isContainerAuthorization()
public String getAuthorization()
getAuthorization
in interface ResourceReference
public void setAuthorization(String authorization)
setAuthorization
in interface ResourceReference
authorization
- the authorization type.public String getType()
getType
in interface EnvironmentEntry
getType
in interface ResourceReference
getType
in class EnvironmentProperty
public void setType(String type)
setType
in interface EnvironmentEntry
setType
in interface ResourceReference
setType
in class EnvironmentProperty
type
- the type of the resource.public DataSource getJDBCDataSource()
public boolean isWebServiceContext()
WebServiceContext
typepublic boolean isORB()
ORB
typepublic boolean isMailResource()
public boolean isJDBCResource()
public boolean isURLResource()
URL
public boolean isJMSConnectionFactory()
public ResourcePrincipal getResourcePrincipal()
public void setResourcePrincipal(ResourcePrincipal resourcePrincipal)
resourcePrincipal
- the principal.public void setMailConfiguration(MailConfiguration mailConfiguration)
mailConfiguration
- the mail configuration object.public void addProperty(NameValuePairDescriptor newProp)
newProp
- public Iterator getProperties()
public MailConfiguration getMailConfiguration()
public boolean isCreateTablesAtDeploy()
public void setCreateTablesAtDeploy(boolean createTablesAtDeploy)
createTablesAtDeploy
- public boolean isDropTablesAtUndeploy()
public void setDropTablesAtUndeploy(boolean dropTablesAtUndeploy)
dropTablesAtUndeploy
- public String getDatabaseVendorName()
public void setDatabaseVendorName(String vendorName)
vendorName
- public Properties getSchemaGeneratorProperties()
public void setSchemaGeneratorProperties(Properties props)
props
- public boolean equals(Object object)
equals
in class EnvironmentProperty
object
- public int hashCode()
EnvironmentProperty
hashCode
in class EnvironmentProperty
public void print(StringBuilder toStringBuilder)
print
in class EnvironmentProperty
toStringBuilder
- public boolean isResourceConnectionFactory()
public void checkType()
public boolean isConflict(ResourceReferenceDescriptor other)
Copyright © 2021. All rights reserved.