|
xmlBlaster 1.6.4 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.util.queue.jdbc.XBFactoryBase
org.xmlBlaster.util.queue.jdbc.XBFactory
org.xmlBlaster.util.queue.jdbc.XBRefFactory
| Field Summary |
| Fields inherited from class org.xmlBlaster.util.queue.jdbc.XBFactory |
base, countSt, createSt, deleteAllSt, deleteCompleteSt, deleteSt, deleteTransientsSt, dropSt, getAllSt, getCompleteSt, getFirstEntriesSt, getNumOfAllSt, getSt, inList, insertSt, prefix, table |
| Fields inherited from class org.xmlBlaster.util.queue.jdbc.XBFactoryBase |
DB2, FIREBIRD, HSQLDB, LDBC, MYSQL, ORACLE, POSTGRES, SQLITE, SQLSERVER_2000, SQLSERVER_2005, UNKNOWN |
| Constructor Summary | |
XBRefFactory(java.lang.String prefix)
|
|
| Method Summary | |
int |
deleteAllStore(XBStore store,
java.sql.Connection conn,
int timeout)
|
long |
deleteList(XBStore store,
java.sql.Connection conn,
XBEntry[] entries,
int maxStLength,
int maxNumSt,
boolean commitInBetween,
int timeout)
Deletes the specified entries. |
long |
deleteWithLimit(XBStore store,
java.sql.Connection conn,
XBRef limitEntry,
boolean inclusive)
deletes the first numOfEntries of the queue until the limitEntry is reached. |
protected void |
doInit(org.xmlBlaster.contrib.I_Info info)
|
XBRef |
get(XBStore store,
long id,
java.sql.Connection conn,
int timeout)
|
ReturnDataHolder |
getAndDeleteLowest(XBStore store,
java.sql.Connection conn,
int numOfEntries,
long numOfBytes,
int maxPriority,
long minUniqueId,
boolean leaveOne,
boolean doDelete,
int maxStLength,
int maxNumSt,
int timeout)
Under the same transaction it gets and deletes all the entries which fit into the constrains specified in the argument list. |
protected long |
getByteSize(java.sql.ResultSet rs,
int offset)
|
java.util.List |
getEntriesByPriority(XBStore store,
java.sql.Connection conn,
int numOfEntries,
long numOfBytes,
int minPrio,
int maxPrio,
boolean onlyId)
gets the first numOfEntries of the queue which have the priority in the range specified by prioMin and prioMax (inclusive). |
java.util.List |
getEntriesBySamePriority(XBStore store,
java.sql.Connection conn,
int numOfEntries,
long numOfBytes)
gets the first numOfEntries of the queue which have the same priority. |
java.util.List |
getFirstRefEntriesStartAt(XBStore store,
java.sql.Connection conn,
long numOfEntries,
long numOfBytes,
int timeout,
I_QueueEntry firstEntryExlusive)
|
java.util.List |
getWithLimit(XBStore store,
java.sql.Connection conn,
XBRef limitRef)
|
void |
insert(XBRef xbRef,
java.sql.Connection conn,
int timeout)
Inserts an entry in the database |
protected void |
prepareDefaultStatements()
This method must be implemented in all underlying extentions to this class. |
protected XBEntry |
rsToEntry(XBStore store,
java.sql.ResultSet rs)
|
| Methods inherited from class org.xmlBlaster.util.queue.jdbc.XBFactory |
checkSameStore, count, create, delete, deleteTransients, drop, fillDbCol, getDbCol, getFirstEntries, getList, getNumOfAll, init, isTrue, readStream, whereInStatement |
| Methods inherited from class org.xmlBlaster.util.queue.jdbc.XBFactoryBase |
getDbVendor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XBRefFactory(java.lang.String prefix)
| Method Detail |
protected void prepareDefaultStatements()
XBFactory
prepareDefaultStatements in class XBFactory
protected void doInit(org.xmlBlaster.contrib.I_Info info)
throws XmlBlasterException
doInit in class XBFactoryBaseXmlBlasterException
public void insert(XBRef xbRef,
java.sql.Connection conn,
int timeout)
throws java.sql.SQLException,
java.io.UnsupportedEncodingException
conn - The database connection to usetimeout - the time in seconds it has to wait for a response. If less than 1 it is not
set.
java.sql.SQLException - If an exception occurs in the backend. For example if the entry already
exists in the database.
java.io.UnsupportedEncodingException
protected XBEntry rsToEntry(XBStore store,
java.sql.ResultSet rs)
throws java.sql.SQLException,
java.io.IOException
rsToEntry in class XBFactoryjava.sql.SQLException
java.io.IOException
public java.util.List getFirstRefEntriesStartAt(XBStore store,
java.sql.Connection conn,
long numOfEntries,
long numOfBytes,
int timeout,
I_QueueEntry firstEntryExlusive)
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public XBRef get(XBStore store,
long id,
java.sql.Connection conn,
int timeout)
throws java.sql.SQLException,
java.io.IOException
conn -
java.sql.SQLException
java.io.IOException
public ReturnDataHolder getAndDeleteLowest(XBStore store,
java.sql.Connection conn,
int numOfEntries,
long numOfBytes,
int maxPriority,
long minUniqueId,
boolean leaveOne,
boolean doDelete,
int maxStLength,
int maxNumSt,
int timeout)
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOExceptionI_Queue.takeLowest(int, long, org.xmlBlaster.util.queue.I_QueueEntry, boolean)
public java.util.List getEntriesByPriority(XBStore store,
java.sql.Connection conn,
int numOfEntries,
long numOfBytes,
int minPrio,
int maxPrio,
boolean onlyId)
throws java.sql.SQLException,
java.io.IOException
numOfEntries - the maximum number of elements to retrieve. If negative there is no constriction.numOfBytes - the maximum number of bytes to retrieve. If negative, there is no constriction.minPrio - the minimum priority to retreive (inclusive).maxPrio - the maximum priority to retrieve (inclusive).
java.sql.SQLException
java.io.IOException
public java.util.List getWithLimit(XBStore store,
java.sql.Connection conn,
XBRef limitRef)
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.List getEntriesBySamePriority(XBStore store,
java.sql.Connection conn,
int numOfEntries,
long numOfBytes)
throws java.sql.SQLException,
java.io.IOException
numOfEntries - the maximum number of elements to retrieve
java.sql.SQLException
java.io.IOException
public long deleteWithLimit(XBStore store,
java.sql.Connection conn,
XBRef limitEntry,
boolean inclusive)
throws java.sql.SQLException
java.sql.SQLException
public int deleteAllStore(XBStore store,
java.sql.Connection conn,
int timeout)
throws java.sql.SQLException
java.sql.SQLException
protected long getByteSize(java.sql.ResultSet rs,
int offset)
throws java.sql.SQLException
getByteSize in class XBFactoryjava.sql.SQLException
public long deleteList(XBStore store,
java.sql.Connection conn,
XBEntry[] entries,
int maxStLength,
int maxNumSt,
boolean commitInBetween,
int timeout)
throws java.sql.SQLException
deleteList in class XBFactorystore - the store to use.
java.sql.SQLException
|
xmlBlaster 1.6.4 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||