Java Doc for LongIdNamingManager.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » naming » lib » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » Speedo_1.4.5 » org.objectweb.speedo.naming.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.naming.lib.NamingManagerHelper
      org.objectweb.speedo.naming.lib.CommonLongIdNamingManager
         org.objectweb.speedo.naming.lib.LongIdNamingManager

LongIdNamingManager
public class LongIdNamingManager extends CommonLongIdNamingManager (Code)
This is naming manager manages identifier based on a long value generated by Speedo, using a persistent generator (Speedo structure in database). The long value is composed of two parts. Some bits are used for the class identifier, and the rest is used to identify the object instance in the class. This identifier format supports very well the polymorphism. The null reference is represented by the -1 value. The long field can be a visible persistent field, otherwise it is hidden by Speedo/JORM implementation.
See Also:   org.objectweb.speedo.naming.api.NamingManager
See Also:   org.objectweb.jorm.facility.naming.longid.LongIdManager
author:
   S.Chassande-Barrioz


Field Summary
 LongIdManagerlidm
    


Method Summary
public  booleancanManage(SpeedoClass sc)
    
protected  booleancheckFieldType(String type)
    
protected  PNamedecodeLong(PNameCoder pnc, String idStr)
    
public  Objectencode(PName pn)
    
protected  BasicOperandgetBasicOperand()
    
protected  StringgetBinderForClass()
    
protected  StringgetBinderForGenClass()
    
protected  PTypegetFieldType()
    
public  StringgetGCPNameHints(SpeedoClass sc, NameDef nd)
    
protected  StringgetHiddenLidFieldName()
    
protected  java.lang.ClassgetJavaFieldType()
    
protected  StringgetLongIdLid()
    
public  java.lang.ClassgetLongIdManagerClass()
    
protected  StringgetLongIdName()
    
public  PMappergetMapper()
    
protected  StringgetName()
    
public  java.lang.ClassgetPBinderClass()
    
public  java.lang.ClassgetPNameClass()
    
public  java.lang.ClassgetPNamingContextClass()
    
public  PBindernewClassPBinder(String className, Object conn)
    
public  PNamingContextnewClassPNamingContext()
    
public  PBindernewGenClassPBinder()
    
public  voidsetPMapper(PMapper mapper)
    

Field Detail
lidm
LongIdManager lidm(Code)





Method Detail
canManage
public boolean canManage(SpeedoClass sc)(Code)



checkFieldType
protected boolean checkFieldType(String type)(Code)



decodeLong
protected PName decodeLong(PNameCoder pnc, String idStr) throws PException(Code)



encode
public Object encode(PName pn) throws PException(Code)



getBasicOperand
protected BasicOperand getBasicOperand()(Code)



getBinderForClass
protected String getBinderForClass()(Code)



getBinderForGenClass
protected String getBinderForGenClass()(Code)



getFieldType
protected PType getFieldType()(Code)



getGCPNameHints
public String getGCPNameHints(SpeedoClass sc, NameDef nd)(Code)



getHiddenLidFieldName
protected String getHiddenLidFieldName()(Code)



getJavaFieldType
protected java.lang.Class getJavaFieldType()(Code)



getLongIdLid
protected String getLongIdLid()(Code)



getLongIdManagerClass
public java.lang.Class getLongIdManagerClass()(Code)



getLongIdName
protected String getLongIdName()(Code)



getMapper
public PMapper getMapper()(Code)



getName
protected String getName()(Code)



getPBinderClass
public java.lang.Class getPBinderClass()(Code)



getPNameClass
public java.lang.Class getPNameClass()(Code)



getPNamingContextClass
public java.lang.Class getPNamingContextClass()(Code)



newClassPBinder
public PBinder newClassPBinder(String className, Object conn) throws PException(Code)



newClassPNamingContext
public PNamingContext newClassPNamingContext() throws PException(Code)



newGenClassPBinder
public PBinder newGenClassPBinder() throws PException(Code)



setPMapper
public void setPMapper(PMapper mapper)(Code)



Methods inherited from org.objectweb.speedo.naming.lib.CommonLongIdNamingManager
abstract public boolean canManage(SpeedoClass sc)(Code)(Java Doc)
public boolean canProvidePBinder(Object hints, ClassLoader classLoader)(Code)(Java Doc)
public boolean canProvidePNamingContext(Object hints, ClassLoader classLoader)(Code)(Java Doc)
abstract protected boolean checkFieldType(String type)(Code)(Java Doc)
public PName decode(PNameCoder pnc, Object oid, java.lang.Class clazz, JormFactory jf) throws PException(Code)(Java Doc)
abstract protected PName decodeLong(PNameCoder pnc, String idStr) throws PException(Code)(Java Doc)
public void defineClassIdentifierNameDef(NameDef nd, Class jc, SpeedoClass sc, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb, Collection createdMOs) throws SpeedoException, PException(Code)(Java Doc)
public void defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)(Java Doc)
public void defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)(Java Doc)
public void defineGenClassIdentifierNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)(Java Doc)
public void defineGenClassReferenceNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)(Java Doc)
abstract public Object encode(PName pn) throws PException(Code)(Java Doc)
abstract protected BasicOperand getBasicOperand()(Code)(Java Doc)
abstract protected String getBinderForClass()(Code)(Java Doc)
abstract protected String getBinderForGenClass()(Code)(Java Doc)
public SpeedoColumn[] getDefaultColumn(SpeedoClass sc)(Code)(Java Doc)
abstract protected PType getFieldType()(Code)(Java Doc)
abstract protected String getHiddenLidFieldName()(Code)(Java Doc)
abstract protected java.lang.Class getJavaFieldType()(Code)(Java Doc)
public void getJormNamingConfig(NameDef nd, SpeedoClass targetClass, MetaObject sourceMO, String key, Properties result)(Code)(Java Doc)
abstract protected String getLongIdLid()(Code)(Java Doc)
abstract public java.lang.Class getLongIdManagerClass()(Code)(Java Doc)
abstract protected String getLongIdName()(Code)(Java Doc)
abstract public PMapper getMapper()(Code)(Java Doc)
public NamingManager.NamingField[] getNamingfields(SpeedoClass sc)(Code)(Java Doc)
public PBinder getPBinder(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc) throws PException(Code)(Java Doc)
protected PBinder getPBinder(String className, String binderInfo) throws PException(Code)(Java Doc)
abstract public java.lang.Class getPBinderClass()(Code)(Java Doc)
abstract public java.lang.Class getPNameClass()(Code)(Java Doc)
public String getPNameHints(SpeedoClass sc, NameDef nd)(Code)(Java Doc)
public Object[] getPNameHints2(SpeedoClass sc, NameDef nd)(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)
abstract public java.lang.Class getPNamingContextClass()(Code)(Java Doc)
public void init() throws PException(Code)(Java Doc)
public boolean needInheritanceDiscriminator(SpeedoClass sc) throws SpeedoException(Code)(Java Doc)
abstract public PBinder newClassPBinder(String className, Object conn) throws PException(Code)(Java Doc)
abstract public PNamingContext newClassPNamingContext() throws PException(Code)(Java Doc)
abstract public PBinder newGenClassPBinder() throws PException(Code)(Java Doc)
public void setCache(CacheManager cache)(Code)(Java Doc)
public void setLogger(Logger logger)(Code)(Java Doc)
public void setPmf(POManagerFactoryItf pmf)(Code)(Java Doc)
public boolean supportPNamingcontext()(Code)(Java Doc)

Fields inherited from org.objectweb.speedo.naming.lib.NamingManagerHelper
final public static int BINDER_IDX(Code)(Java Doc)
final public static String HINTS_SEP(Code)(Java Doc)
final public static int ID_CAT_IDX(Code)(Java Doc)
final public static int PCLASS_IDX(Code)(Java Doc)
final public static int PNC_IDX(Code)(Java Doc)
final public static String POLYMORPHIC_PNC(Code)(Java Doc)
protected CacheManager cache(Code)(Java Doc)
protected Logger logger(Code)(Java Doc)
protected PMapper mapper(Code)(Java Doc)
protected POManagerFactoryItf pmf(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.