Package de.hybris.bootstrap.ddl
Class DMLRecordFactory
- java.lang.Object
-
- de.hybris.bootstrap.ddl.DMLRecordFactory
-
public class DMLRecordFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDMLRecordFactory.FactoryYRecordstatic classDMLRecordFactory.PropsSupport
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,YRecord>propsMapprotected java.util.Map<java.lang.String,YRecord>yAttributeDescriptorsprotected java.util.Map<java.lang.String,YRecord>yComposedTypes
-
Constructor Summary
Constructors Constructor Description DMLRecordFactory(YDbModel dbModel, org.apache.ddlutils.model.Database database, YTypeSystem typeSystem, HybrisPlatform platform, CodeGenerator codeGenerator, PkFactory pkFactory, int propertyMaxLength, java.lang.String typeSystemName, java.lang.String tablePrefix, PropertiesLoader properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAtomicType(YAtomicType yAtomicType)protected DMLRecordFactory.FactoryYRecordaddAttributeDescriptor(YComposedType enclosingType, YAttributeDescriptor yAttributeDescriptor)protected voidaddCollectionType(YCollectionType yCollectionType)protected DMLRecordFactory.FactoryYRecordaddComposedType(YComposedType yComposedType)protected YRecordaddCustomProperty(YTypeSystemElement parentElement, YDeployment deployment, PK itemPK, PK itemTypePK, java.lang.String name, java.lang.Object value)protected voidaddEnumerationValues(YEnumType yEnumType)protected YRecordaddEnumType(YEnumType enumType)protected voidaddMapType(YMapType yMapType)protected YRecordaddRelationType(YRelation yRelation)protected voidaddUserRights()protected voidappendRelationDescriptorAttributes(DMLRecordFactory.FactoryYRecord row, YAttributeDescriptor yAttributeDescriptor)protected booleanexists(YEnumValue yEnumValue)protected java.lang.StringgenerateUniquePropertyKey(YTypeSystemElement parentElement, PK itemPK, java.lang.String name)protected java.lang.StringgetColumnName(YComposedType composedType, java.lang.String qualifier)protected java.util.DategetCurrentTime()protected org.apache.ddlutils.model.DatabasegetDatabase()protected java.lang.StringgetDescriptorKey(YComposedType enclosingType, YAttributeDescriptor yAttributeDescriptor)protected java.lang.StringgetKey(YEnumValue yEnumValue)protected YTypeSystemgetTypeSystem()java.util.Collection<YRecord>getYrecords()protected DMLRecordFactory.FactoryYRecordnewItemRecord(YComposedType type)protected DMLRecordFactory.FactoryYRecordnewItemRecord(YComposedType type, PK ownPK)protected DMLRecordFactory.FactoryYRecordnewItemRecord(java.lang.String type)protected YRecordnewRecord(YDeployment deployment)protected voidprepareDefaultCurrency()protected voidprepareDefaultLanguage()voidprepareMediaFolders()protected voidprepareMetaInformation(java.lang.String systemName)protected voidprepareNumberSeries()
-
-
-
Constructor Detail
-
DMLRecordFactory
public DMLRecordFactory(YDbModel dbModel, org.apache.ddlutils.model.Database database, YTypeSystem typeSystem, HybrisPlatform platform, CodeGenerator codeGenerator, PkFactory pkFactory, int propertyMaxLength, java.lang.String typeSystemName, java.lang.String tablePrefix, PropertiesLoader properties)
-
-
Method Detail
-
getYrecords
public java.util.Collection<YRecord> getYrecords()
-
addCustomProperty
protected YRecord addCustomProperty(YTypeSystemElement parentElement, YDeployment deployment, PK itemPK, PK itemTypePK, java.lang.String name, java.lang.Object value)
-
generateUniquePropertyKey
protected java.lang.String generateUniquePropertyKey(YTypeSystemElement parentElement, PK itemPK, java.lang.String name)
-
addUserRights
protected void addUserRights()
-
prepareMediaFolders
public void prepareMediaFolders()
-
addComposedType
protected DMLRecordFactory.FactoryYRecord addComposedType(YComposedType yComposedType)
-
prepareNumberSeries
protected void prepareNumberSeries()
-
prepareMetaInformation
protected void prepareMetaInformation(java.lang.String systemName)
-
addMapType
protected void addMapType(YMapType yMapType)
-
addCollectionType
protected void addCollectionType(YCollectionType yCollectionType)
-
addEnumerationValues
protected void addEnumerationValues(YEnumType yEnumType)
-
getKey
protected java.lang.String getKey(YEnumValue yEnumValue)
-
addAttributeDescriptor
protected DMLRecordFactory.FactoryYRecord addAttributeDescriptor(YComposedType enclosingType, YAttributeDescriptor yAttributeDescriptor)
-
appendRelationDescriptorAttributes
protected void appendRelationDescriptorAttributes(DMLRecordFactory.FactoryYRecord row, YAttributeDescriptor yAttributeDescriptor)
-
getColumnName
protected java.lang.String getColumnName(YComposedType composedType, java.lang.String qualifier)
-
newItemRecord
protected DMLRecordFactory.FactoryYRecord newItemRecord(java.lang.String type)
-
newItemRecord
protected DMLRecordFactory.FactoryYRecord newItemRecord(YComposedType type)
-
newItemRecord
protected DMLRecordFactory.FactoryYRecord newItemRecord(YComposedType type, PK ownPK)
-
newRecord
protected YRecord newRecord(YDeployment deployment)
-
prepareDefaultLanguage
protected void prepareDefaultLanguage()
-
prepareDefaultCurrency
protected void prepareDefaultCurrency()
-
addAtomicType
protected void addAtomicType(YAtomicType yAtomicType)
-
getCurrentTime
protected java.util.Date getCurrentTime()
-
getDescriptorKey
protected java.lang.String getDescriptorKey(YComposedType enclosingType, YAttributeDescriptor yAttributeDescriptor)
-
getDatabase
protected org.apache.ddlutils.model.Database getDatabase()
-
getTypeSystem
protected YTypeSystem getTypeSystem()
-
exists
protected boolean exists(YEnumValue yEnumValue)
-
-