org.broadleafcommerce.openadmin.server.service.persistence.module
Interface RecordHelper

All Known Implementing Classes:
AdornedTargetListPersistenceModule, BasicPersistenceModule, MapStructurePersistenceModule

public interface RecordHelper

Author:
jfischer

Method Summary
 Serializable createPopulatedInstance(Serializable instance, Entity entity, Map<String,FieldMetadata> mergedProperties, Boolean setId)
           
 PersistenceModule getCompatibleModule(OperationType operationType)
           
 BaseCtoConverter getCtoConverter(PersistencePerspective persistencePerspective, com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto, String ceilingEntityFullyQualifiedClassname, Map<String,FieldMetadata> mergedProperties)
           
 FieldManager getFieldManager()
           
 Object getPrimaryKey(Entity entity, Map<String,FieldMetadata> mergedProperties)
           
 Entity getRecord(Class<?> ceilingEntityClass, PersistencePerspective persistencePerspective, Serializable record)
           
 Entity getRecord(Map<String,FieldMetadata> primaryMergedProperties, Serializable record, Map<String,FieldMetadata> alternateMergedProperties, String pathToTargetObject)
           
 Entity[] getRecords(Class<?> ceilingEntityClass, PersistencePerspective persistencePerspective, List<? extends Serializable> records)
           
 Entity[] getRecords(Map<String,FieldMetadata> primaryMergedProperties, List<? extends Serializable> records)
           
 Entity[] getRecords(Map<String,FieldMetadata> primaryMergedProperties, List<? extends Serializable> records, Map<String,FieldMetadata> alternateMergedProperties, String pathToTargetObject)
           
 Map<String,FieldMetadata> getSimpleMergedProperties(String entityName, PersistencePerspective persistencePerspective)
           
 int getTotalRecords(PersistencePackage persistencePackage, com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto, BaseCtoConverter ctoConverter)
           
 

Method Detail

getCtoConverter

BaseCtoConverter getCtoConverter(PersistencePerspective persistencePerspective,
                                 com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto,
                                 String ceilingEntityFullyQualifiedClassname,
                                 Map<String,FieldMetadata> mergedProperties)
                                 throws ClassNotFoundException
Throws:
ClassNotFoundException

getRecords

Entity[] getRecords(Map<String,FieldMetadata> primaryMergedProperties,
                    List<? extends Serializable> records,
                    Map<String,FieldMetadata> alternateMergedProperties,
                    String pathToTargetObject)
                    throws ParserConfigurationException,
                           DOMException,
                           IllegalAccessException,
                           InvocationTargetException,
                           NoSuchMethodException,
                           TransformerFactoryConfigurationError,
                           TransformerConfigurationException,
                           IllegalArgumentException,
                           TransformerException,
                           SecurityException,
                           ClassNotFoundException
Throws:
ParserConfigurationException
DOMException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
TransformerFactoryConfigurationError
TransformerConfigurationException
IllegalArgumentException
TransformerException
SecurityException
ClassNotFoundException

getRecords

Entity[] getRecords(Map<String,FieldMetadata> primaryMergedProperties,
                    List<? extends Serializable> records)
                    throws ParserConfigurationException,
                           DOMException,
                           IllegalAccessException,
                           InvocationTargetException,
                           NoSuchMethodException,
                           TransformerFactoryConfigurationError,
                           TransformerConfigurationException,
                           IllegalArgumentException,
                           TransformerException,
                           SecurityException,
                           ClassNotFoundException
Throws:
ParserConfigurationException
DOMException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
TransformerFactoryConfigurationError
TransformerConfigurationException
IllegalArgumentException
TransformerException
SecurityException
ClassNotFoundException

getRecords

Entity[] getRecords(Class<?> ceilingEntityClass,
                    PersistencePerspective persistencePerspective,
                    List<? extends Serializable> records)
                    throws SecurityException,
                           IllegalArgumentException,
                           ClassNotFoundException,
                           NoSuchMethodException,
                           IllegalAccessException,
                           InvocationTargetException,
                           DOMException,
                           TransformerConfigurationException,
                           ParserConfigurationException,
                           TransformerFactoryConfigurationError,
                           TransformerException,
                           NoSuchFieldException
Throws:
SecurityException
IllegalArgumentException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
DOMException
TransformerConfigurationException
ParserConfigurationException
TransformerFactoryConfigurationError
TransformerException
NoSuchFieldException

getRecord

Entity getRecord(Map<String,FieldMetadata> primaryMergedProperties,
                 Serializable record,
                 Map<String,FieldMetadata> alternateMergedProperties,
                 String pathToTargetObject)
                 throws ParserConfigurationException,
                        DOMException,
                        IllegalAccessException,
                        InvocationTargetException,
                        NoSuchMethodException,
                        TransformerFactoryConfigurationError,
                        TransformerConfigurationException,
                        IllegalArgumentException,
                        TransformerException,
                        SecurityException,
                        ClassNotFoundException
Throws:
ParserConfigurationException
DOMException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
TransformerFactoryConfigurationError
TransformerConfigurationException
IllegalArgumentException
TransformerException
SecurityException
ClassNotFoundException

getRecord

Entity getRecord(Class<?> ceilingEntityClass,
                 PersistencePerspective persistencePerspective,
                 Serializable record)
                 throws SecurityException,
                        IllegalArgumentException,
                        ClassNotFoundException,
                        NoSuchMethodException,
                        IllegalAccessException,
                        InvocationTargetException,
                        DOMException,
                        TransformerConfigurationException,
                        ParserConfigurationException,
                        TransformerFactoryConfigurationError,
                        TransformerException,
                        NoSuchFieldException
Throws:
SecurityException
IllegalArgumentException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
DOMException
TransformerConfigurationException
ParserConfigurationException
TransformerFactoryConfigurationError
TransformerException
NoSuchFieldException

getTotalRecords

int getTotalRecords(PersistencePackage persistencePackage,
                    com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto,
                    BaseCtoConverter ctoConverter)
                    throws ClassNotFoundException
Throws:
ClassNotFoundException

createPopulatedInstance

Serializable createPopulatedInstance(Serializable instance,
                                     Entity entity,
                                     Map<String,FieldMetadata> mergedProperties,
                                     Boolean setId)
                                     throws IllegalAccessException,
                                            InvocationTargetException,
                                            NoSuchMethodException,
                                            ParseException,
                                            NumberFormatException,
                                            InstantiationException,
                                            ClassNotFoundException
Throws:
IllegalAccessException
InvocationTargetException
NoSuchMethodException
ParseException
NumberFormatException
InstantiationException
ClassNotFoundException

getPrimaryKey

Object getPrimaryKey(Entity entity,
                     Map<String,FieldMetadata> mergedProperties)
                     throws NumberFormatException
Throws:
NumberFormatException

getSimpleMergedProperties

Map<String,FieldMetadata> getSimpleMergedProperties(String entityName,
                                                    PersistencePerspective persistencePerspective)
                                                    throws ClassNotFoundException,
                                                           SecurityException,
                                                           IllegalArgumentException,
                                                           NoSuchMethodException,
                                                           IllegalAccessException,
                                                           InvocationTargetException,
                                                           NoSuchFieldException
Throws:
ClassNotFoundException
SecurityException
IllegalArgumentException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
NoSuchFieldException

getFieldManager

FieldManager getFieldManager()

getCompatibleModule

PersistenceModule getCompatibleModule(OperationType operationType)


Copyright © 2013. All Rights Reserved.