public abstract class PolymorphicMultiColumnDiscriminator extends org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
Constructor and Description |
---|
PolymorphicMultiColumnDiscriminator(org.apache.ojb.broker.metadata.ClassDescriptor cld) |
Modifier and Type | Method and Description |
---|---|
abstract Class |
chooseClass(String[] values)
Based on the received key values, this method determines the appropriate class.
|
abstract String[] |
getDiscriminatorColumns()
This method should return the column(s) necessary to determine which class to cast to.
|
protected org.apache.ojb.broker.metadata.ClassDescriptor |
selectClassDescriptor(Map row) |
public PolymorphicMultiColumnDiscriminator(org.apache.ojb.broker.metadata.ClassDescriptor cld)
public abstract String[] getDiscriminatorColumns()
public abstract Class chooseClass(String[] values)
values
- protected org.apache.ojb.broker.metadata.ClassDescriptor selectClassDescriptor(Map row) throws org.apache.ojb.broker.PersistenceBrokerException
selectClassDescriptor
in class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
org.apache.ojb.broker.PersistenceBrokerException
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.