org.jvnet.hyperjaxb3.ejb.strategy.customizing.impl
Class DefaultCustomizing

java.lang.Object
  extended by org.jvnet.hyperjaxb3.ejb.strategy.customizing.impl.DefaultCustomizing
All Implemented Interfaces:
Customizing

public class DefaultCustomizing
extends Object
implements Customizing


Constructor Summary
DefaultCustomizing()
           
 
Method Summary
 void addCustomization(com.sun.tools.xjc.model.CCustomizable customizable, QName name, Object customization)
           
 Integer createColumn$Length(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Integer createColumn$Precision(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Integer createColumn$Scale(com.sun.tools.xjc.model.CPropertyInfo property)
           
<T> T
findCustomization(com.sun.tools.xjc.model.CClassInfo classInfo, QName name)
           
<T> T
findCustomization(com.sun.tools.xjc.model.CPropertyInfo propertyInfo, QName name)
           
<T> T
findCustomization(com.sun.tools.xjc.model.Model model, QName name)
           
<T> Collection<T>
findCustomizations(com.sun.tools.xjc.model.CClassInfo classInfo, QName name)
           
<T> Collection<T>
findCustomizations(com.sun.tools.xjc.model.Model model, QName name)
           
 Basic getBasic(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Basic getBasic(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
           
 Basic getDefaultBasic(com.sun.tools.xjc.model.CPropertyInfo property)
           
 CollectionProperty getDefaultCollectionProperty(Persistence persistence, QName typeName)
           
 Persistence getDefaultCustomizations()
           
 ElementCollection getDefaultElementCollection(com.sun.tools.xjc.model.CPropertyInfo property)
           
 SingleProperty getDefaultSingleProperty(Persistence persistence, QName typeName)
           
 ElementCollection getElementCollection(com.sun.tools.xjc.model.CPropertyInfo property)
           
 ElementCollection getElementCollection(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
           
 Embeddable getEmbeddable(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 Embeddable getEmbeddable(com.sun.tools.xjc.outline.ClassOutline classOutline)
           
 Embedded getEmbedded(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Embedded getEmbedded(com.sun.tools.xjc.outline.FieldOutline property)
           
 EmbeddedId getEmbeddedId(com.sun.tools.xjc.model.CPropertyInfo property)
           
 EmbeddedId getEmbeddedId(com.sun.tools.xjc.outline.FieldOutline property)
           
 Entity getEntity(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 Entity getEntity(com.sun.tools.xjc.outline.ClassOutline classOutline)
           
 Object getEntityOrMappedSuperclassOrEmbeddable(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 Object getEntityOrMappedSuperclassOrEmbeddable(com.sun.tools.xjc.outline.ClassOutline classOutline)
           
 GeneratedClass getGeneratedClass(com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
           
 GeneratedId getGeneratedId(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 GeneratedProperty getGeneratedProperty(com.sun.tools.xjc.model.CClassInfo classInfo, String propertyName)
           
 GeneratedProperty getGeneratedProperty(com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
           
 GeneratedVersion getGeneratedVersion(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 Id getId(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Id getId(com.sun.tools.xjc.outline.FieldOutline property)
           
 JaxbContext getJaxbContext(com.sun.tools.xjc.model.CPropertyInfo property)
           
 JaxbContext getJaxbContext(com.sun.tools.xjc.outline.FieldOutline property)
           
 ManyToMany getManyToMany(com.sun.tools.xjc.model.CPropertyInfo property)
           
 ManyToMany getManyToMany(com.sun.tools.xjc.outline.FieldOutline property)
           
 ManyToOne getManyToOne(com.sun.tools.xjc.model.CPropertyInfo property)
           
 ManyToOne getManyToOne(com.sun.tools.xjc.outline.FieldOutline property)
           
 MappedSuperclass getMappedSuperclass(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 MappedSuperclass getMappedSuperclass(com.sun.tools.xjc.outline.ClassOutline classOutline)
           
 Persistence getModelCustomization(com.sun.tools.xjc.model.CClassInfo classInfo)
           
 Persistence getModelCustomization(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Persistence getModelCustomization(com.sun.tools.xjc.model.Model model)
           
 OneToMany getOneToMany(com.sun.tools.xjc.model.CPropertyInfo property)
          Returns the one-to-many customization for the given property.
 OneToMany getOneToMany(com.sun.tools.xjc.outline.FieldOutline property)
           
 OneToOne getOneToOne(com.sun.tools.xjc.model.CPropertyInfo property)
           
 OneToOne getOneToOne(com.sun.tools.xjc.outline.FieldOutline property)
           
 Object getToMany(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Object getToMany(com.sun.tools.xjc.outline.FieldOutline property)
           
 Object getToOne(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Object getToOne(com.sun.tools.xjc.outline.FieldOutline property)
           
 Version getVersion(com.sun.tools.xjc.model.CPropertyInfo property)
           
 Version getVersion(com.sun.tools.xjc.outline.FieldOutline property)
           
 void setDefaultCustomizations(Persistence defaultCustomization)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCustomizing

public DefaultCustomizing()
Method Detail

findCustomization

public <T> T findCustomization(com.sun.tools.xjc.model.Model model,
                               QName name)
Specified by:
findCustomization in interface Customizing

findCustomizations

public <T> Collection<T> findCustomizations(com.sun.tools.xjc.model.Model model,
                                            QName name)
Specified by:
findCustomizations in interface Customizing

findCustomization

public <T> T findCustomization(com.sun.tools.xjc.model.CClassInfo classInfo,
                               QName name)
Specified by:
findCustomization in interface Customizing

findCustomizations

public <T> Collection<T> findCustomizations(com.sun.tools.xjc.model.CClassInfo classInfo,
                                            QName name)

findCustomization

public <T> T findCustomization(com.sun.tools.xjc.model.CPropertyInfo propertyInfo,
                               QName name)
Specified by:
findCustomization in interface Customizing

addCustomization

public void addCustomization(com.sun.tools.xjc.model.CCustomizable customizable,
                             QName name,
                             Object customization)

getDefaultCustomizations

public Persistence getDefaultCustomizations()

setDefaultCustomizations

public void setDefaultCustomizations(Persistence defaultCustomization)

getModelCustomization

public Persistence getModelCustomization(com.sun.tools.xjc.model.Model model)

getGeneratedId

public GeneratedId getGeneratedId(com.sun.tools.xjc.model.CClassInfo classInfo)
Specified by:
getGeneratedId in interface Customizing

getGeneratedClass

public GeneratedClass getGeneratedClass(com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
Specified by:
getGeneratedClass in interface Customizing

getGeneratedProperty

public GeneratedProperty getGeneratedProperty(com.sun.tools.xjc.model.CPropertyInfo propertyInfo)
Specified by:
getGeneratedProperty in interface Customizing

getGeneratedProperty

public GeneratedProperty getGeneratedProperty(com.sun.tools.xjc.model.CClassInfo classInfo,
                                              String propertyName)

getId

public Id getId(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getId in interface Customizing

getId

public Id getId(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getId in interface Customizing

getEmbeddedId

public EmbeddedId getEmbeddedId(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getEmbeddedId in interface Customizing

getEmbeddedId

public EmbeddedId getEmbeddedId(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getEmbeddedId in interface Customizing

getVersion

public Version getVersion(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getVersion in interface Customizing

getVersion

public Version getVersion(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getVersion in interface Customizing

getGeneratedVersion

public GeneratedVersion getGeneratedVersion(com.sun.tools.xjc.model.CClassInfo classInfo)
Specified by:
getGeneratedVersion in interface Customizing

getDefaultBasic

public Basic getDefaultBasic(com.sun.tools.xjc.model.CPropertyInfo property)
                      throws AssertionError
Throws:
AssertionError

getDefaultElementCollection

public ElementCollection getDefaultElementCollection(com.sun.tools.xjc.model.CPropertyInfo property)
                                              throws AssertionError
Throws:
AssertionError

getDefaultSingleProperty

public SingleProperty getDefaultSingleProperty(Persistence persistence,
                                               QName typeName)

getDefaultCollectionProperty

public CollectionProperty getDefaultCollectionProperty(Persistence persistence,
                                                       QName typeName)

getBasic

public Basic getBasic(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getBasic in interface Customizing

createColumn$Scale

public Integer createColumn$Scale(com.sun.tools.xjc.model.CPropertyInfo property)

createColumn$Precision

public Integer createColumn$Precision(com.sun.tools.xjc.model.CPropertyInfo property)

createColumn$Length

public Integer createColumn$Length(com.sun.tools.xjc.model.CPropertyInfo property)

getBasic

public Basic getBasic(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
Specified by:
getBasic in interface Customizing

getOneToMany

public OneToMany getOneToMany(com.sun.tools.xjc.model.CPropertyInfo property)
Description copied from interface: Customizing
Returns the one-to-many customization for the given property. Must not return null.

Specified by:
getOneToMany in interface Customizing
Parameters:
property - property to retrieve customization for.
Returns:
One-to-many customization for the given property, never null.

getModelCustomization

public Persistence getModelCustomization(com.sun.tools.xjc.model.CPropertyInfo property)

getModelCustomization

public Persistence getModelCustomization(com.sun.tools.xjc.model.CClassInfo classInfo)

getOneToMany

public OneToMany getOneToMany(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getOneToMany in interface Customizing

getManyToOne

public ManyToOne getManyToOne(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getManyToOne in interface Customizing

getManyToOne

public ManyToOne getManyToOne(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getManyToOne in interface Customizing

getOneToOne

public OneToOne getOneToOne(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getOneToOne in interface Customizing

getOneToOne

public OneToOne getOneToOne(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getOneToOne in interface Customizing

getManyToMany

public ManyToMany getManyToMany(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getManyToMany in interface Customizing

getElementCollection

public ElementCollection getElementCollection(com.sun.tools.xjc.outline.FieldOutline fieldOutline)
Specified by:
getElementCollection in interface Customizing

getElementCollection

public ElementCollection getElementCollection(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getElementCollection in interface Customizing

getManyToMany

public ManyToMany getManyToMany(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getManyToMany in interface Customizing

getEntity

public Entity getEntity(com.sun.tools.xjc.outline.ClassOutline classOutline)
Specified by:
getEntity in interface Customizing

getEntity

public Entity getEntity(com.sun.tools.xjc.model.CClassInfo classInfo)

getToMany

public Object getToMany(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getToMany in interface Customizing

getToOne

public Object getToOne(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getToOne in interface Customizing

getToOne

public Object getToOne(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getToOne in interface Customizing

getToMany

public Object getToMany(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getToMany in interface Customizing

getMappedSuperclass

public MappedSuperclass getMappedSuperclass(com.sun.tools.xjc.outline.ClassOutline classOutline)
Specified by:
getMappedSuperclass in interface Customizing

getMappedSuperclass

public MappedSuperclass getMappedSuperclass(com.sun.tools.xjc.model.CClassInfo classInfo)

getEntityOrMappedSuperclassOrEmbeddable

public Object getEntityOrMappedSuperclassOrEmbeddable(com.sun.tools.xjc.outline.ClassOutline classOutline)
Specified by:
getEntityOrMappedSuperclassOrEmbeddable in interface Customizing

getEntityOrMappedSuperclassOrEmbeddable

public Object getEntityOrMappedSuperclassOrEmbeddable(com.sun.tools.xjc.model.CClassInfo classInfo)
Specified by:
getEntityOrMappedSuperclassOrEmbeddable in interface Customizing

getEmbeddable

public Embeddable getEmbeddable(com.sun.tools.xjc.model.CClassInfo classInfo)

getEmbeddable

public Embeddable getEmbeddable(com.sun.tools.xjc.outline.ClassOutline classOutline)
Specified by:
getEmbeddable in interface Customizing

getEmbedded

public Embedded getEmbedded(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getEmbedded in interface Customizing

getEmbedded

public Embedded getEmbedded(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getEmbedded in interface Customizing

getJaxbContext

public JaxbContext getJaxbContext(com.sun.tools.xjc.outline.FieldOutline property)
Specified by:
getJaxbContext in interface Customizing

getJaxbContext

public JaxbContext getJaxbContext(com.sun.tools.xjc.model.CPropertyInfo property)
Specified by:
getJaxbContext in interface Customizing


Copyright © 2005-2011. All Rights Reserved.