| java.lang.Object org.objectweb.speedo.naming.lib.NamingManagerHelper org.objectweb.speedo.naming.lib.CommonLongIdNamingManager
All known Subclasses: org.objectweb.speedo.naming.lib.LongIdNamingManager, org.objectweb.speedo.naming.lib.OLongIdNamingManager,
CommonLongIdNamingManager | abstract public class CommonLongIdNamingManager extends NamingManagerHelper (Code) | | Defines a common implementation of NamingManager for identifier based on
a single long or java.lang.Long field.
author: S.Chassande-Barrioz |
Method Summary | |
abstract public boolean | canManage(SpeedoClass sc) | public boolean | canProvidePBinder(Object hints, ClassLoader classLoader) | public boolean | canProvidePNamingContext(Object hints, ClassLoader classLoader) | abstract protected boolean | checkFieldType(String type) Checks if the field type is the one expected
Parameters: type - is the field type as a string. | public PName | decode(PNameCoder pnc, Object oid, java.lang.Class clazz, JormFactory jf) | abstract protected PName | decodeLong(PNameCoder pnc, String idStr) Decodes a string value into a PName. | public void | defineClassIdentifierNameDef(NameDef nd, Class jc, SpeedoClass sc, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb, Collection createdMOs) | public void | defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public void | defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public void | defineGenClassIdentifierNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public void | defineGenClassReferenceNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | abstract public Object | encode(PName pn) Encodes a PName into a value. | abstract protected BasicOperand | getBasicOperand() | abstract protected String | getBinderForClass() | abstract protected String | getBinderForGenClass() | public SpeedoColumn[] | getDefaultColumn(SpeedoClass sc) | abstract protected PType | getFieldType() | abstract protected String | getHiddenLidFieldName() | abstract protected java.lang.Class | getJavaFieldType() | public void | getJormNamingConfig(NameDef nd, SpeedoClass targetClass, MetaObject sourceMO, String key, Properties result) | abstract protected String | getLongIdLid() | abstract public java.lang.Class | getLongIdManagerClass() | abstract protected String | getLongIdName() | abstract public PMapper | getMapper() | public NamingManager.NamingField[] | getNamingfields(SpeedoClass sc) | public PBinder | getPBinder(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc) | protected PBinder | getPBinder(String className, String binderInfo) | abstract public java.lang.Class | getPBinderClass() | abstract public java.lang.Class | getPNameClass() | public String | getPNameHints(SpeedoClass sc, NameDef nd) | public Object[] | getPNameHints2(SpeedoClass sc, NameDef nd) | public PNamingContext | getPNamingContext(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc, Manager miManager, PClassMapping pcm) | abstract public java.lang.Class | getPNamingContextClass() | public void | init() | public boolean | needInheritanceDiscriminator(SpeedoClass sc) | abstract public PBinder | newClassPBinder(String className, Object conn) Parameters: className - is the class name of the persistent class Parameters: conn - is the connection to the underlying persistent support. | abstract public PNamingContext | newClassPNamingContext() | abstract public PBinder | newGenClassPBinder() | public void | setCache(CacheManager cache) | public void | setLogger(Logger logger) | public void | setPmf(POManagerFactoryItf pmf) | public boolean | supportPNamingcontext() |
checkFieldType | abstract protected boolean checkFieldType(String type)(Code) | | Checks if the field type is the one expected
Parameters: type - is the field type as a string. true if this the right type. |
decodeLong | abstract protected PName decodeLong(PNameCoder pnc, String idStr) throws PException(Code) | | Decodes a string value into a PName.
Parameters: pnc - is the PNameCoder able to decode the string Parameters: idStr - is the string representation of an identifier a PName |
encode | abstract public Object encode(PName pn) throws PException(Code) | | Encodes a PName into a value.
Parameters: pn - is the PName to encode the encoded PName |
getBasicOperand | abstract protected BasicOperand getBasicOperand()(Code) | | the operand (Medor object) used for computing the class identifier |
getBinderForClass | abstract protected String getBinderForClass()(Code) | | Returns the bINDER_FOR_CLASS. |
getBinderForGenClass | abstract protected String getBinderForGenClass()(Code) | | Returns the bINDER_FOR_GENCLASS. |
getFieldType | abstract protected PType getFieldType()(Code) | | the default jorm type of the identifier field. |
getHiddenLidFieldName | abstract protected String getHiddenLidFieldName()(Code) | | Returns the hIDDEN_LID_FIELD_NAME. |
getJavaFieldType | abstract protected java.lang.Class getJavaFieldType()(Code) | | the default java type of the identifier field. |
getLongIdLid | abstract protected String getLongIdLid()(Code) | | the default name of the identifier field. |
getLongIdManagerClass | abstract public java.lang.Class getLongIdManagerClass()(Code) | | the class of the IdManager used by this naming. |
getLongIdName | abstract protected String getLongIdName()(Code) | | the name of the composite name (JORM object) corresponding the identifier. |
getMapper | abstract public PMapper getMapper()(Code) | | the mapper used |
getPBinder | protected PBinder getPBinder(String className, String binderInfo) throws PException(Code) | | |
getPBinderClass | abstract public java.lang.Class getPBinderClass()(Code) | | the class of the PBinder used by this naming. |
getPNameClass | abstract public java.lang.Class getPNameClass()(Code) | | the class of the PName used by this naming. |
getPNamingContext | public PNamingContext getPNamingContext(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc, Manager miManager, PClassMapping pcm) throws PException(Code) | | |
getPNamingContextClass | abstract public java.lang.Class getPNamingContextClass()(Code) | | the class of the PNamingContext used by this naming. |
init | public void init() throws PException(Code) | | |
newClassPBinder | abstract public PBinder newClassPBinder(String className, Object conn) throws PException(Code) | | Parameters: className - is the class name of the persistent class Parameters: conn - is the connection to the underlying persistent support. a new PBinder for managing class identifier. |
newClassPNamingContext | abstract public PNamingContext newClassPNamingContext() throws PException(Code) | | a new PBinder for managing class reference. |
newGenClassPBinder | abstract public PBinder newGenClassPBinder() throws PException(Code) | | a new PBinder for managing GenClass identifier. |
setCache | public void setCache(CacheManager cache)(Code) | | |
setLogger | public void setLogger(Logger logger)(Code) | | |
supportPNamingcontext | public boolean supportPNamingcontext()(Code) | | |
Methods inherited from org.objectweb.speedo.naming.lib.NamingManagerHelper | public boolean canProvidePBinder(Object hints, ClassLoader classLoader)(Code)(Java Doc) public boolean canProvidePNamingContext(Object hints, ClassLoader classLoader)(Code)(Java Doc) public static String getBinderClassNameFromHints(Object hints, String idCatName)(Code)(Java Doc) public SpeedoColumn[] getDefaultColumn(SpeedoClass sc)(Code)(Java Doc) abstract protected String getName()(Code)(Java Doc) public NamingManager.NamingField[] getNamingfields(SpeedoClass sc) throws PException(Code)(Java Doc) public PBinder getPBinder(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc) throws PException(Code)(Java Doc) public static String getPNCClassNameFromHints(Object hints, String idCatName)(Code)(Java Doc) public PNamingContext getPNamingContext(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc, Manager miManager, PClassMapping pcm) throws PException(Code)(Java Doc) public static String[] getTokens(Object o)(Code)(Java Doc) public boolean needInheritanceDiscriminator(SpeedoClass sc) throws SpeedoException(Code)(Java Doc) public void setCache(CacheManager cache)(Code)(Java Doc) public void setLogger(Logger logger)(Code)(Java Doc) public void setPMapper(PMapper mapper)(Code)(Java Doc) public void setPmf(POManagerFactoryItf pmf)(Code)(Java Doc) public boolean supportPNamingcontext()(Code)(Java Doc)
|
|
|