|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fosstrak.llrp.client.repository.sql.AbstractSQLRepository
org.fosstrak.llrp.client.repository.sql.MySQLRepository
public class MySQLRepository
The MySQLRepository provides the basis for a MySQL repository
back-end. The SQL-server is accessed via the MySQL-JDBC connector.
| Field Summary | |
|---|---|
protected java.lang.String |
DBDRIVER
the MySQL JDBC driver. |
static java.lang.String |
JDBC_STR
default JDBC Connector URL. |
protected DerbyROAccessReportsRepository |
repoROAccessReports
|
| Fields inherited from class org.fosstrak.llrp.client.repository.sql.AbstractSQLRepository |
|---|
args, conn, connectURL, DB_DRIVER, DB_NAME, isHealth, logROAccess, NUM_TABLE_COLUMNS, password, SELECTOR_ADAPTOR, SELECTOR_COMMENT, SELECTOR_CONTENT, SELECTOR_ID, SELECTOR_MARK, SELECTOR_MESSAGE_TYPE, SELECTOR_READER, SELECTOR_STATUS, SELECTOR_TIMESTAMP, TABLE_LLRP_REPOSITORY, username, wipe, wipeROAccess |
| Fields inherited from interface org.fosstrak.llrp.client.Repository |
|---|
RETRIEVE_ALL |
| Constructor Summary | |
|---|---|
MySQLRepository()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getDBDriver()
Returns the class name of the JDBC driver to be used. |
ROAccessReportsRepository |
getROAccessRepository()
The ROAccessReportsRepository is implemented via the strategy
pattern. |
protected java.sql.Connection |
openConnection()
Opens the JDBC connection to the database. |
protected java.lang.String |
sqlCreateTable()
NOTICE: this SQL command corresponds to derby SQL!. |
| Methods inherited from class org.fosstrak.llrp.client.repository.sql.AbstractSQLRepository |
|---|
clearAdapter, clearAll, clearReader, close, count, createTable, dropTable, existsTable, get, get, getArgs, getDBConnection, initialize, isHealth, loadDriver, put, sqlDropTable, sqlInsertMessage, sqlRemoveAllAdapterMessages, sqlRemoveAllMessages, sqlRemoveAllReaderMessages, sqlSelectByAdapterAndReaderWithContent, sqlSelectByAdapterAndReaderWithoutContent, sqlSelectByAdapterWithContent, sqlSelectByAdapterWithoutContent, sqlSelectMessageByID, sqlSelectMessagesWithContent, sqlSelectMessagesWithoutContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String DBDRIVER
protected DerbyROAccessReportsRepository repoROAccessReports
public static final java.lang.String JDBC_STR
| Constructor Detail |
|---|
public MySQLRepository()
| Method Detail |
|---|
protected java.lang.String getDBDriver()
AbstractSQLRepository
getDBDriver in class AbstractSQLRepository
protected java.sql.Connection openConnection()
throws java.lang.Exception
AbstractSQLRepository
openConnection in class AbstractSQLRepositoryjava.lang.Exception - whenever the connection could not be established.protected java.lang.String sqlCreateTable()
AbstractSQLRepository
sqlCreateTable in class AbstractSQLRepositorypublic ROAccessReportsRepository getROAccessRepository()
RepositoryROAccessReportsRepository is implemented via the strategy
pattern. Depending on the type of the repository, you will get a
different implementation of this handle at runtime. The respective
implementation will setup the data-structures used to log
RO_ACCESS_REPORTS and ease the access to the stored information.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||