Package org.jpox.store.rdbms.request

Examples of org.jpox.store.rdbms.request.RequestIdentifier


     * @param clr ClassLoader resolver
     * @return An insertion request object.
     */
    private InsertRequest getInsertRequest(DatastoreClass table, Class cls, ClassLoaderResolver clr)
    {
        RequestIdentifier reqID = new RequestIdentifier(table, null, RequestIdentifier.Type.INSERT, cls.getName());
        InsertRequest req = (InsertRequest) requestsByID.get(reqID);
        if (req == null)
        {
            req = new InsertRequest(table, cls, clr);
            requestsByID.put(reqID, req);
View Full Code Here


     * @return A fetch request object.
     */
    private FetchRequest getFetchRequest(DatastoreClass table, AbstractMemberMetaData[] fieldMetaData, Class cls,
            ClassLoaderResolver clr)
    {
        RequestIdentifier reqID = new RequestIdentifier(table, fieldMetaData, RequestIdentifier.Type.FETCH,
            cls.getName());
        FetchRequest req = (FetchRequest) requestsByID.get(reqID);
        if (req == null)
        {
            req = new FetchRequest(table, fieldMetaData, cls, clr);
View Full Code Here

     * @return An update request object.
     */
    private UpdateRequest getUpdateRequest(DatastoreClass table, AbstractMemberMetaData[] fieldMetaData, Class cls,
            ClassLoaderResolver clr)
    {
        RequestIdentifier reqID = new RequestIdentifier(table, fieldMetaData, RequestIdentifier.Type.UPDATE,
            cls.getName());
        UpdateRequest req = (UpdateRequest) requestsByID.get(reqID);
        if (req == null)
        {
            req = new UpdateRequest(table, fieldMetaData, cls, clr);
View Full Code Here

     * @param clr ClassLoader resolver
     * @return A deletion request object.
     */
    private DeleteRequest getDeleteRequest(DatastoreClass table, Class cls, ClassLoaderResolver clr)
    {
        RequestIdentifier reqID = new RequestIdentifier(table, null, RequestIdentifier.Type.DELETE, cls.getName());
        DeleteRequest req = (DeleteRequest) requestsByID.get(reqID);
        if (req == null)
        {
            req = new DeleteRequest(table, cls, clr);
            requestsByID.put(reqID, req);
View Full Code Here

     * @param className the class name of the object of the request
     * @return A locate request object.
     */
    private LocateRequest getLocateRequest(DatastoreClass table, String className)
    {
        RequestIdentifier reqID = new RequestIdentifier(table, null, RequestIdentifier.Type.LOCATE, className);
        LocateRequest req = (LocateRequest) requestsByID.get(reqID);
        if (req == null)
        {
            req = new LocateRequest(table);
            requestsByID.put(reqID, req);
View Full Code Here

            // Synchronise on the "requestsById" set since while it is "synchronised itself, all iterators needs this sync
            Set keySet = new HashSet(requestsByID.keySet());
            Iterator keyIter = keySet.iterator();
            while (keyIter.hasNext())
            {
                RequestIdentifier reqId = (RequestIdentifier)keyIter.next();
                if (reqId.getTable() == table)
                {
                    requestsByID.remove(reqId);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jpox.store.rdbms.request.RequestIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.