org.norther.tammi.root.ojb.lob
Class IdBlobHandle

java.lang.Object
  extended by org.apache.ojb.broker.lob.LobHandle
      extended by org.apache.ojb.broker.lob.BlobHandle
          extended by org.norther.tammi.root.ojb.lob.IdBlobHandle
All Implemented Interfaces:
Serializable, Blob, PBListener, PBStateListener

public class IdBlobHandle
extends org.apache.ojb.broker.lob.BlobHandle

Extends BlobHandle with primary id support.

Version:
$Id: IdBlobHandle.java,v 1.1 2010-02-16 14:28:47 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
protected IdBlobHandle(PersistenceBrokerInternal broker, Blob blob, Object... ids)
          Constructs a new BLOB handle.
 
Method Summary
 Object[] getPrimaryIds()
          Gets the primary ids of the Blob.
protected  boolean isCoupled()
           
 void setPrimaryIds(Object... ids)
          Sets the primary ids of the Blob.
 
Methods inherited from class org.apache.ojb.broker.lob.BlobHandle
decoupledCopy, free, getBinaryStream, getBinaryStream, getBlob, getBytes, length, position, position, setBinaryStream, setBytes, setBytes, truncate
 
Methods inherited from class org.apache.ojb.broker.lob.LobHandle
afterBegin, afterCommit, afterOpen, afterRollback, beforeBegin, beforeClose, beforeCommit, beforeRollback, checkActive, decouple, getLocator, isActive, isDirty, isTransient, markDirty, setDirty, txFail, txSuccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdBlobHandle

protected IdBlobHandle(PersistenceBrokerInternal broker,
                       Blob blob,
                       Object... ids)
Constructs a new BLOB handle.

Parameters:
broker - the broker.
blob - the Blob adaptee.
ids - optional primary ids.
Method Detail

getPrimaryIds

public Object[] getPrimaryIds()
Gets the primary ids of the Blob.

Returns:
the primary ids or null.

setPrimaryIds

public void setPrimaryIds(Object... ids)
Sets the primary ids of the Blob.

Parameters:
ids - the primary ids.

isCoupled

protected boolean isCoupled()
Overrides:
isCoupled in class org.apache.ojb.broker.lob.LobHandle


Copyright © 2004 The Norther Organization. All rights reserved.