ojb.broker.metadata
Class ObjectReferenceDescriptor

java.lang.Object
  |
  +--ojb.broker.metadata.AttributeDescriptorBase
        |
        +--ojb.broker.metadata.ObjectReferenceDescriptor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CollectionDescriptor

public class ObjectReferenceDescriptor
extends AttributeDescriptorBase

describes a Field containing a reference to another class. Provides handling for foreign keys etc.

Author:
Thomas Mahler
See Also:
Serialized Form

Constructor Summary
ObjectReferenceDescriptor()
          Constructor declaration
 
Method Summary
 boolean getCascadeDelete()
          Method declaration
 boolean getCascadeRetrieve()
          Method declaration
 boolean getCascadeStore()
          Method declaration
 FieldDescriptor[] getForeignKeyFieldDescriptors(ClassDescriptor mif)
           
 java.util.Vector getForeignKeyFields()
          Method declaration
 java.lang.Object[] getForeignKeyValues(java.lang.Object obj, ClassDescriptor mif)
          Method declaration
 java.lang.Class getItemClass()
          Method declaration
 java.lang.Class getItemProxyClass()
          Insert the method's description here.
 boolean isLazy()
          Gets the lazy.
 boolean isRefresh()
          Gets the refresh.
 void setCascadeDelete(boolean b)
          Method declaration
 void setCascadeRetrieve(boolean b)
          Method declaration
 void setCascadeStore(boolean b)
          Method declaration
 void setForeignKeyFields(java.util.Vector vec)
          Method declaration
 void setItemClass(java.lang.Class c)
          Method declaration
 void setLazy(boolean lazy)
          Sets the lazy.
 void setRefresh(boolean refresh)
          Sets the refresh.
 
Methods inherited from class ojb.broker.metadata.AttributeDescriptorBase
getClassDescriptor, getPersistentField, setClassDescriptor, setDebug, setPersistentField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectReferenceDescriptor

public ObjectReferenceDescriptor()
Constructor declaration

Method Detail

getItemClass

public java.lang.Class getItemClass()
Method declaration

Returns:

setItemClass

public void setItemClass(java.lang.Class c)
Method declaration

Parameters:
c -

getForeignKeyFields

public java.util.Vector getForeignKeyFields()
Method declaration

Returns:

setForeignKeyFields

public void setForeignKeyFields(java.util.Vector vec)
Method declaration

Parameters:
vec -

getCascadeRetrieve

public boolean getCascadeRetrieve()
Method declaration

Returns:

setCascadeRetrieve

public void setCascadeRetrieve(boolean b)
Method declaration

Parameters:
b -

getCascadeStore

public boolean getCascadeStore()
Method declaration

Returns:

setCascadeStore

public void setCascadeStore(boolean b)
Method declaration

Parameters:
b -

getCascadeDelete

public boolean getCascadeDelete()
Method declaration

Returns:

setCascadeDelete

public void setCascadeDelete(boolean b)
Method declaration

Parameters:
b -

getItemProxyClass

public java.lang.Class getItemProxyClass()
                                  throws PersistenceBrokerException
Insert the method's description here. Creation date: (10.11.2000 22:44:15)

Returns:
java.lang.Class
PersistenceBrokerException

getForeignKeyFieldDescriptors

public FieldDescriptor[] getForeignKeyFieldDescriptors(ClassDescriptor mif)
Parameters:
mif -
Returns:

getForeignKeyValues

public java.lang.Object[] getForeignKeyValues(java.lang.Object obj,
                                              ClassDescriptor mif)
                                       throws PersistenceBrokerException
Method declaration

Parameters:
obj -
mif -
Returns:
PersistenceBrokerException

isRefresh

public boolean isRefresh()
Gets the refresh.

Returns:
Returns a boolean

setRefresh

public void setRefresh(boolean refresh)
Sets the refresh.

Parameters:
refresh - The refresh to set

isLazy

public boolean isLazy()
Gets the lazy.

Returns:
Returns a boolean

setLazy

public void setLazy(boolean lazy)
Sets the lazy.

Parameters:
lazy - The lazy to set


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04