org.jboss.soa.esb.addressing.eprs
Class JDBCEpr

java.lang.Object
  extended by org.jboss.soa.esb.addressing.EPR
      extended by org.jboss.soa.esb.addressing.eprs.JDBCEpr

public class JDBCEpr
extends EPR

A helper class for using database style EPRs. Simply create instances of this class instead of the base EPR.

Author:
marklittle

Field Summary
static java.lang.String DRIVER_TAG
           
static java.lang.String JDBC_PROTOCOL
           
static java.lang.String PASSWORD_TAG
           
static java.lang.String SQL_TAG
           
static java.lang.String URL_TAG
           
static java.lang.String USERNAME_TAG
           
 
Constructor Summary
JDBCEpr(EPR epr)
           
JDBCEpr(java.lang.String url, java.lang.String sql)
           
 
Method Summary
 java.lang.String getDriver()
           
 java.lang.String getPassword()
           
 java.lang.String getSQL()
           
 java.lang.String getURL()
          Get the URL address.
 java.lang.String getUserName()
           
 void setDriver(java.lang.String driver)
          Set the driver that is used by this EPR.
 void setPassword(java.lang.String password)
          Set the password for this FTP EPR.
 void setSQL(java.lang.String sql)
          Set the SQL command that is used by this EPR.
 void setURL(java.lang.String url)
          Set the URL for this endpoint.
 void setUserName(java.lang.String username)
          Set the username for this FTP EPR.
static java.net.URI type()
           
 
Methods inherited from class org.jboss.soa.esb.addressing.EPR
copy, equals, getAddr, setAddr, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JDBC_PROTOCOL

public static final java.lang.String JDBC_PROTOCOL
See Also:
Constant Field Values

USERNAME_TAG

public static final java.lang.String USERNAME_TAG
See Also:
Constant Field Values

PASSWORD_TAG

public static final java.lang.String PASSWORD_TAG
See Also:
Constant Field Values

SQL_TAG

public static final java.lang.String SQL_TAG
See Also:
Constant Field Values

DRIVER_TAG

public static final java.lang.String DRIVER_TAG
See Also:
Constant Field Values

URL_TAG

public static final java.lang.String URL_TAG
See Also:
Constant Field Values
Constructor Detail

JDBCEpr

public JDBCEpr(EPR epr)

JDBCEpr

public JDBCEpr(java.lang.String url,
               java.lang.String sql)
        throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException
Method Detail

setURL

public final void setURL(java.lang.String url)
Set the URL for this endpoint.

Parameters:
url - the address.

getURL

public final java.lang.String getURL()
                              throws java.net.URISyntaxException
Get the URL address.

Returns:
the address.
Throws:
java.net.URISyntaxException - thrown if the address is invalid.

setUserName

public final void setUserName(java.lang.String username)
                       throws java.net.URISyntaxException
Set the username for this FTP EPR.

Parameters:
username - the user's name.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

getUserName

public final java.lang.String getUserName()
                                   throws java.net.URISyntaxException
Returns:
the user's name associated with this EPR.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

setPassword

public final void setPassword(java.lang.String password)
                       throws java.net.URISyntaxException
Set the password for this FTP EPR.

Parameters:
password - the user's name.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

getPassword

public final java.lang.String getPassword()
                                   throws java.net.URISyntaxException
Returns:
the password associated with this EPR.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

setSQL

public final void setSQL(java.lang.String sql)
                  throws java.net.URISyntaxException
Set the SQL command that is used by this EPR.

Parameters:
sql - the statement.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

getSQL

public final java.lang.String getSQL()
                              throws java.net.URISyntaxException
Returns:
the SQL statement for this EPR.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

setDriver

public final void setDriver(java.lang.String driver)
                     throws java.net.URISyntaxException
Set the driver that is used by this EPR.

Parameters:
driver - the driver.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

getDriver

public final java.lang.String getDriver()
                                 throws java.net.URISyntaxException
Returns:
the driver used by this EPR.
Throws:
java.net.URISyntaxException - thrown if this EPR is malformed.

type

public static final java.net.URI type()