C# Class Castle.ActiveRecord.Framework.Internal.XmlGenerationVisitor

Traverse the tree emitting proper xml configuration
Inheritance: AbstractDepthFirstVisitor
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
CreateXml ( ActiveRecordModel model ) : void

Creates the XML.

MakeTypeName ( Type type ) : String

Create a valid name from a type, without including all the version and public key information

Reset ( ) : void

Resets this instance.

VisitAny ( AnyModel model ) : void

Visits any.

VisitBelongsTo ( BelongsToModel model ) : void

Visits the belongs to.

VisitCollectionID ( CollectionIDModel model ) : void

Visits the collection ID.

VisitCompositePrimaryKey ( CompositeKeyModel model ) : void

Visits the composite primary key.

VisitCompositeUserType ( CompositeUserTypeModel model ) : void

Visits the custom composite user type.

VisitDependentObject ( DependentObjectModel model ) : void

Visits the dependent object.

VisitField ( FieldModel model ) : void

Visits the field.

VisitHasAndBelongsToMany ( HasAndBelongsToManyModel model ) : void

Visits the has and belongs to many.

VisitHasMany ( HasManyModel model ) : void

Visits the has many.

VisitHasManyToAny ( HasManyToAnyModel model ) : void

Visits the has many to any.

VisitHasManyToAnyConfig ( HasManyToAnyModel model ) : void

Visits the has many to any config.

VisitHilo ( Castle.ActiveRecord.Framework.Internal.HiloModel model ) : void

Visits the hilo.

VisitImport ( ImportModel model ) : void

Visits the import.

VisitKey ( KeyModel model ) : void

Visits the key.

VisitModel ( ActiveRecordModel model ) : void

Visits the model.

VisitNested ( Castle.ActiveRecord.Framework.Internal.NestedModel model ) : void

Visits the nested.

VisitNestedParentReference ( NestedParentReferenceModel referenceModel ) : void

Visits the parent

VisitOneToOne ( Castle.ActiveRecord.Framework.Internal.OneToOneModel model ) : void

Visits the one to one.

VisitPrimaryKey ( PrimaryKeyModel model ) : void

Visits the primary key.

VisitProperty ( PropertyModel model ) : void

Visits the property.

VisitTimestamp ( TimestampModel model ) : void

Visits the timestamp.

VisitVersion ( VersionModel model ) : void

Visits the version.

Private Methods

Méthode Description
Append ( string xml ) : void
AppendF ( string xml ) : void
AppendIdentation ( ) : void
BeginWriteProperty ( string accessString, string columnType, string formula, bool insert, string name, Type propType, bool update ) : void
ConditionalWrite ( string attName, string value, bool condition ) : String
CreateXmlPI ( ) : void
Dedent ( ) : void
EndMappingNode ( ) : void
EndWriteProperty ( ) : void
Ident ( ) : void
MakeAtt ( String attName, String value ) : String
MakeAtt ( String attName, bool value ) : String
MakeAtt ( String attName, bool value, bool output ) : String
MakeClassAtt ( Type type ) : String
MakeCustomTypeAtt ( String attName, Type type ) : String
MakeCustomTypeAttIfNotNull ( String attName, Type type ) : String
MakeTypeAtt ( Type type, String typeName ) : String
StartMappingNode ( bool useAutoImport ) : void
TranslateCacheEnum ( CacheEnum cacheEnum ) : string
TranslateCascadeEnum ( CascadeEnum cascadeEnum ) : string
TranslateCascadeEnum ( ManyRelationCascadeEnum cascadeEnum ) : string
TranslateFetch ( FetchEnum fetch ) : string
TranslateNotFoundBehaviourEnum ( NotFoundBehaviour notFoundBehaviourEnum ) : string
WriteCache ( CacheEnum cacheEnum ) : void
WriteCollection ( ManyRelationCascadeEnum cascadeEnum, Type targetType, RelationType type, string name, string accessString, string table, string schema, bool lazy, bool inverse, string orderBy, string where, string sort, string columnKey, string compositeKeyColumnKeys, string element, string columnRef, string compositeKeyColumnRefs, IVisitable extraModel, string index, string indexType, CacheEnum cache, NotFoundBehaviour notFoundBehaviour, FetchEnum fetch, int batchSize, Type collectionType ) : void
WriteColumn ( string check, string column, string index, int length, bool notNull, string sqlType, bool unique, string uniqueKey ) : void
WriteCompositeColumns ( String columns ) : void
WriteDiscriminator ( ActiveRecordModel model ) : void
WriteElement ( string element, Type targetType ) : void
WriteIfFalse ( String attName, bool value ) : String
WriteIfNonNull ( String attName, String value ) : String
WriteIfNotOne ( String attName, int value ) : String
WriteIfNotZero ( String attName, int value ) : String
WriteIfTrue ( String attName, bool value ) : String
WriteIndex ( String column, String type ) : void
WriteJcsCache ( CacheEnum cacheEnum ) : void
WriteKey ( String column ) : void
WriteManyToMany ( Type type, String columnRef, String notFoundMode ) : void
WriteOneToMany ( Type type, String notFoundMode ) : void
WriteProperty ( String name, Type propType, String accessString, String columnType, bool insert, bool update, String formula, String column, int length, bool notNull, bool unique, String uniqueKey, String sqlType, String index, String check ) : void

Method Details

CreateXml() public méthode

Creates the XML.
public CreateXml ( ActiveRecordModel model ) : void
model ActiveRecordModel The model.
Résultat void

MakeTypeName() public static méthode

Create a valid name from a type, without including all the version and public key information
public static MakeTypeName ( Type type ) : String
type System.Type
Résultat String

Reset() public méthode

Resets this instance.
public Reset ( ) : void
Résultat void

VisitAny() public méthode

Visits any.
public VisitAny ( AnyModel model ) : void
model AnyModel The model.
Résultat void

VisitBelongsTo() public méthode

Visits the belongs to.
public VisitBelongsTo ( BelongsToModel model ) : void
model BelongsToModel The model.
Résultat void

VisitCollectionID() public méthode

Visits the collection ID.
public VisitCollectionID ( CollectionIDModel model ) : void
model CollectionIDModel The model.
Résultat void

VisitCompositePrimaryKey() public méthode

Visits the composite primary key.
public VisitCompositePrimaryKey ( CompositeKeyModel model ) : void
model CompositeKeyModel The model.
Résultat void

VisitCompositeUserType() public méthode

Visits the custom composite user type.
public VisitCompositeUserType ( CompositeUserTypeModel model ) : void
model CompositeUserTypeModel The model.
Résultat void

VisitDependentObject() public méthode

Visits the dependent object.
public VisitDependentObject ( DependentObjectModel model ) : void
model DependentObjectModel The model
Résultat void

VisitField() public méthode

Visits the field.
public VisitField ( FieldModel model ) : void
model FieldModel The model.
Résultat void

VisitHasAndBelongsToMany() public méthode

Visits the has and belongs to many.
public VisitHasAndBelongsToMany ( HasAndBelongsToManyModel model ) : void
model HasAndBelongsToManyModel The model.
Résultat void

VisitHasMany() public méthode

Visits the has many.
public VisitHasMany ( HasManyModel model ) : void
model HasManyModel The model.
Résultat void

VisitHasManyToAny() public méthode

Visits the has many to any.
public VisitHasManyToAny ( HasManyToAnyModel model ) : void
model HasManyToAnyModel The model.
Résultat void

VisitHasManyToAnyConfig() public méthode

Visits the has many to any config.
public VisitHasManyToAnyConfig ( HasManyToAnyModel model ) : void
model HasManyToAnyModel The model.
Résultat void

VisitHilo() public méthode

Visits the hilo.
public VisitHilo ( Castle.ActiveRecord.Framework.Internal.HiloModel model ) : void
model Castle.ActiveRecord.Framework.Internal.HiloModel The model.
Résultat void

VisitImport() public méthode

Visits the import.
public VisitImport ( ImportModel model ) : void
model ImportModel The model.
Résultat void

VisitKey() public méthode

Visits the key.
public VisitKey ( KeyModel model ) : void
model KeyModel The model.
Résultat void

VisitModel() public méthode

Visits the model.
public VisitModel ( ActiveRecordModel model ) : void
model ActiveRecordModel The model.
Résultat void

VisitNested() public méthode

Visits the nested.
public VisitNested ( Castle.ActiveRecord.Framework.Internal.NestedModel model ) : void
model Castle.ActiveRecord.Framework.Internal.NestedModel The model.
Résultat void

VisitNestedParentReference() public méthode

Visits the parent
public VisitNestedParentReference ( NestedParentReferenceModel referenceModel ) : void
referenceModel NestedParentReferenceModel The reference model.
Résultat void

VisitOneToOne() public méthode

Visits the one to one.
public VisitOneToOne ( Castle.ActiveRecord.Framework.Internal.OneToOneModel model ) : void
model Castle.ActiveRecord.Framework.Internal.OneToOneModel The model.
Résultat void

VisitPrimaryKey() public méthode

Visits the primary key.
public VisitPrimaryKey ( PrimaryKeyModel model ) : void
model PrimaryKeyModel The model.
Résultat void

VisitProperty() public méthode

Visits the property.
public VisitProperty ( PropertyModel model ) : void
model PropertyModel The model.
Résultat void

VisitTimestamp() public méthode

Visits the timestamp.
public VisitTimestamp ( TimestampModel model ) : void
model TimestampModel The model.
Résultat void

VisitVersion() public méthode

Visits the version.
public VisitVersion ( VersionModel model ) : void
model VersionModel The model.
Résultat void