org.w3c.tools.jdbc
Interface JdbcBeanInterface

All Known Implementing Classes:
JdbcBeanAdapter

public interface JdbcBeanInterface


Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add a PropertyChangeListener to the listener list.
 JdbcBeanInterface getDefault()
           
 java.lang.String getJdbcDriver()
          Get the JDBC driver
 java.lang.String getJdbcPassword()
          Get the password property
 java.lang.String getJdbcTable()
          Return the name of the SQL table
 java.lang.String getJdbcURI()
          Get the Jdbc URI
 java.lang.String getJdbcUser()
          get the Jdbc username property
 int getMaxConn()
          Get the max number os simultaneous Jdbc connections
 boolean getReadOnly()
          Is this table read-only? (default is false)
 JdbcBeanSerializer getSerializer()
          Get our SQL serializer
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove a PropertyChangeListener to the listener list.
 void setJdbcDriver(java.lang.String jdbcDriver)
          Set the JDBC driver
 void setJdbcPassword(java.lang.String jdbcPassword)
          Set the password property
 void setJdbcTable(java.lang.String jdbcTable)
          Set the name of the SQL table
 void setJdbcURI(java.lang.String jdbcURI)
          Set the Jdbc URI
 void setJdbcUser(java.lang.String JdbcUser)
          Set the Jdbc username property
 void setMaxConn(int maxConn)
          Set the max number os simultaneous Jdbc connections
 void setReadOnly(boolean readonly)
          Set the read-only flag
 

Method Detail

setJdbcDriver

void setJdbcDriver(java.lang.String jdbcDriver)
Set the JDBC driver

Parameters:
jdbcDriver - the jdbc driver

getJdbcDriver

java.lang.String getJdbcDriver()
Get the JDBC driver

Returns:
the jdbc driver

setJdbcUser

void setJdbcUser(java.lang.String JdbcUser)
Set the Jdbc username property

Parameters:
jdbcUser - the username

getJdbcUser

java.lang.String getJdbcUser()
get the Jdbc username property

Returns:
the Jdbc username property

setJdbcPassword

void setJdbcPassword(java.lang.String jdbcPassword)
Set the password property

Parameters:
jdbcPassword - the password

getJdbcPassword

java.lang.String getJdbcPassword()
Get the password property

Returns:
the Jdbc password

setJdbcURI

void setJdbcURI(java.lang.String jdbcURI)
Set the Jdbc URI

Parameters:
jdbcURI - the URI (ie: jdbc:protocol://host/db)

getJdbcURI

java.lang.String getJdbcURI()
Get the Jdbc URI

Returns:
the URI (ie: jdbc:protocol://host/db)

setMaxConn

void setMaxConn(int maxConn)
Set the max number os simultaneous Jdbc connections

Parameters:
maxConn - the max number of connections

getMaxConn

int getMaxConn()
Get the max number os simultaneous Jdbc connections

Returns:
the max number of connections

setJdbcTable

void setJdbcTable(java.lang.String jdbcTable)
Set the name of the SQL table

Parameters:
jdbcTable - the SQL table name

getJdbcTable

java.lang.String getJdbcTable()
Return the name of the SQL table

Returns:
the SQL table name

setReadOnly

void setReadOnly(boolean readonly)
Set the read-only flag

Parameters:
readonly -

getReadOnly

boolean getReadOnly()
Is this table read-only? (default is false)

Returns:
a boolean

getDefault

JdbcBeanInterface getDefault()

getSerializer

JdbcBeanSerializer getSerializer()
Get our SQL serializer

Returns:
a JdbcBeanSerializer instance

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.

Parameters:
listener - The PropertyChangeListener to be added

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener to the listener list.

Parameters:
listener - The PropertyChangeListener to be removed.