|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.addressing.EPR org.jboss.soa.esb.addressing.eprs.JDBCEpr
public class JDBCEpr
A helper class for using database style EPRs. Simply create instances of this class instead of the base EPR.
Field Summary | |
---|---|
static java.lang.String |
DATA_COLUMN_TAG
|
static java.lang.String |
DATASOURCE_TAG
|
static java.lang.String |
DEFAULT_REPLY_TO_TABLE_SUFFIX
|
static java.lang.String |
DRIVER_TAG
|
static java.lang.String |
ERROR_DEL_TAG
|
static java.lang.String |
JDBC_PROTOCOL
|
static java.lang.String |
MESSAGE_ID_COLUMN_TAG
|
static java.lang.String |
ORDER_BY_TAG
|
static java.lang.String |
PASSWORD_TAG
|
static java.lang.String |
POST_DEL_TAG
|
static java.lang.String |
SQL_TAG
|
static java.lang.String |
STATUS_COLUMN_TAG
|
static java.lang.String |
TABLE_NAME_TAG
|
static java.lang.String |
TIMESTAMP_COLUMN_TAG
|
static java.lang.String |
URL_TAG
|
static java.lang.String |
USERNAME_TAG
|
static java.lang.String |
WHERE_CONDITION_TAG
|
Constructor Summary | |
---|---|
JDBCEpr(EPR epr)
|
|
JDBCEpr(EPR epr,
org.w3c.dom.Element header)
|
|
JDBCEpr(java.lang.String url)
|
|
JDBCEpr(java.lang.String url,
boolean postDelete,
boolean errorDelete)
|
|
JDBCEpr(java.lang.String url,
java.lang.String sql)
|
Method Summary | |
---|---|
protected void |
changeTableName(java.lang.String tableName)
|
EPR |
copy()
Return a copy of this EPR. |
java.lang.String |
getDataColumn()
|
java.lang.String |
getDatasource()
Get the JNDI datasource value that is used by this EPR. |
java.lang.String |
getDriver()
|
java.lang.String |
getErrorDelete()
|
java.lang.String |
getMessageIdColumn()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPostDelete()
|
java.lang.String |
getSQL()
|
java.lang.String |
getStatusColumn()
|
java.lang.String |
getTableName()
|
java.lang.String |
getTimestampColumn()
|
java.lang.String |
getURL()
Get the URL address. |
java.lang.String |
getUserName()
|
void |
setDataColumn(java.lang.String dataColumn)
Set the column that is used by this EPR to store message data. |
void |
setDatasource(java.lang.String datasource)
Set the JNDI datasource value that is used by this EPR. |
void |
setDriver(java.lang.String driver)
Set the driver that is used by this EPR. |
void |
setMessageIdColumn(java.lang.String columnName)
Set the message id column name 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 |
setStatusColumn(java.lang.String statusColumn)
Set the status column that is used by this EPR. |
void |
setTableName(java.lang.String tableName)
Set the tablename that is used by this EPR. |
void |
setTimestampColumn(java.lang.String timeColumn)
Set the column that is used by this EPR to store timestamp when the message was inserted. |
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. |
java.lang.String |
toString()
|
static java.net.URI |
type()
|
Methods inherited from class org.jboss.soa.esb.addressing.EPR |
---|
equals, getAddr, getURI, setAddr, setURI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JDBC_PROTOCOL
public static final java.lang.String DATASOURCE_TAG
public static final java.lang.String USERNAME_TAG
public static final java.lang.String PASSWORD_TAG
public static final java.lang.String SQL_TAG
public static final java.lang.String DRIVER_TAG
public static final java.lang.String URL_TAG
public static final java.lang.String TABLE_NAME_TAG
public static final java.lang.String ORDER_BY_TAG
public static final java.lang.String MESSAGE_ID_COLUMN_TAG
public static final java.lang.String STATUS_COLUMN_TAG
public static final java.lang.String DATA_COLUMN_TAG
public static final java.lang.String TIMESTAMP_COLUMN_TAG
public static final java.lang.String WHERE_CONDITION_TAG
public static final java.lang.String POST_DEL_TAG
public static final java.lang.String ERROR_DEL_TAG
public static final java.lang.String DEFAULT_REPLY_TO_TABLE_SUFFIX
Constructor Detail |
---|
public JDBCEpr(EPR epr)
public JDBCEpr(EPR epr, org.w3c.dom.Element header)
public JDBCEpr(java.lang.String url, java.lang.String sql) throws java.net.URISyntaxException
java.net.URISyntaxException
public JDBCEpr(java.lang.String url) throws java.net.URISyntaxException
java.net.URISyntaxException
public JDBCEpr(java.lang.String url, boolean postDelete, boolean errorDelete) throws java.net.URISyntaxException
java.net.URISyntaxException
Method Detail |
---|
public EPR copy()
EPR
copy
in class EPR
public final void setURL(java.lang.String url)
url
- the address.public final java.lang.String getURL() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is invalid.public final void setUserName(java.lang.String username) throws java.net.URISyntaxException
username
- the user's name.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getUserName() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setPassword(java.lang.String password) throws java.net.URISyntaxException
password
- the user's name.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getPassword() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setDatasource(java.lang.String datasource)
datasource
- JNDI datasourcepublic final java.lang.String getDatasource()
public final void setSQL(java.lang.String sql) throws java.net.URISyntaxException
sql
- the statement.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getSQL() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setDriver(java.lang.String driver) throws java.net.URISyntaxException
driver
- the driver.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getDriver() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setTableName(java.lang.String tableName) throws java.net.URISyntaxException
tableName
- the table name.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getTableName() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setMessageIdColumn(java.lang.String columnName) throws java.net.URISyntaxException
columnName
- the column name for the message ID.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getMessageIdColumn() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setStatusColumn(java.lang.String statusColumn) throws java.net.URISyntaxException
statusColumn
- the status column.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getStatusColumn() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setDataColumn(java.lang.String dataColumn) throws java.net.URISyntaxException
dataColumn
- the column name.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getDataColumn() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final void setTimestampColumn(java.lang.String timeColumn) throws java.net.URISyntaxException
timeColumn
- the column name.
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getTimestampColumn() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if this EPR is malformed.public final java.lang.String getPostDelete() throws java.net.URISyntaxException
java.net.URISyntaxException
public final java.lang.String getErrorDelete() throws java.net.URISyntaxException
java.net.URISyntaxException
public java.lang.String toString()
toString
in class EPR
public static final java.net.URI type()
protected final void changeTableName(java.lang.String tableName) throws java.net.URISyntaxException
java.net.URISyntaxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |