FileDocCategorySizeDatePackage
CreatePersistenceResourceCommand.javaAPI DocGlassfish v2 API2710Fri May 04 22:25:08 BST 2007com.sun.enterprise.cli.commands

CreatePersistenceResourceCommand

public class CreatePersistenceResourceCommand extends GenericCommand

Fields Summary
private static final String
JDBC_JNDI_NAME
private static final String
POOL_NAME
Constructors Summary
Methods Summary
public booleanvalidateOptions()

    
         
    
        //Check if both jdbc-resource-jndi-name and connection-pool name is provided.
        if (getOption(JDBC_JNDI_NAME) != null && getOption(POOL_NAME) != null)
            throw new CommandValidationException(getLocalizedString("MutuallyExclusiveOption", 
						                     new Object[] { JDBC_JNDI_NAME,  
								     POOL_NAME })); 

        return super.validateOptions();