| java.lang.Object org.objectweb.speedo.metadata.SpeedoElement org.objectweb.speedo.metadata.SpeedoDiscriminator
Field Summary | |
final public static int | STRATEGY_CLASS_NAME This strategy of discriminator is a specialization of the
STRATEGY_MAP_VALUE strategy. | final public static int | STRATEGY_MAP_VALUE strategy of discriminator based on couples (class , value). | final public static int | STRATEGY_NONE | final public static int | STRATEGY_UNKNOWN | public List | elements If discriminatorStrategy equals to #STRATEGY_NONE this field has no sense.
Otherwise this field defines the columns of fields composing the
discriminator. | public String | expression | public int | strategy In case of filtered of vertical mapping, a discriminator permits to
distinguish the classes of persistent instances. |
STRATEGY_CLASS_NAME | final public static int STRATEGY_CLASS_NAME(Code) | | This strategy of discriminator is a specialization of the
STRATEGY_MAP_VALUE strategy. With this strategy the value associated to
each persistent and concrete class is the class name.
|
STRATEGY_MAP_VALUE | final public static int STRATEGY_MAP_VALUE(Code) | | strategy of discriminator based on couples (class , value). To each value
corresponds only one value and to each concrete class corresponds an
unique value. Each classes has to defines its value.
|
STRATEGY_NONE | final public static int STRATEGY_NONE(Code) | | strategy without discriminator
|
STRATEGY_UNKNOWN | final public static int STRATEGY_UNKNOWN(Code) | | |
basedOnColumnsOnly | public boolean basedOnColumnsOnly()(Code) | | boolean value indicating if there is a discriminator composedof columns only. |
basedOnFieldsAndColumns | public boolean basedOnFieldsAndColumns()(Code) | | |
basedOnFieldsOnly | public boolean basedOnFieldsOnly()(Code) | | boolean value indicating if there is a discriminator composedof fields. |
hasDiscriminator | public boolean hasDiscriminator()(Code) | | a boolean value indicating if the strategy is not NONE and if there is elements composing the discriminator. |
parseStrategy | final public static int parseStrategy(String strategyName)(Code) | | Parses a string representation of a strategy.
Parameters: strategyName - is a representation of a strategy the strategy corrresponding to the strategy name. If the strategy is notrecongnized STRATEGY_UNKNOWN is returned. |
strategy2str | final public static String strategy2str(int s)(Code) | | Parameters: s - is a strategy string representation of the strategy. If the strategy is notrecongnized a null value is returned. |
|
|