C# 클래스 Castle.ActiveRecord.Framework.Internal.XmlGenerationVisitor

Traverse the tree emitting proper xml configuration
상속: AbstractDepthFirstVisitor
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

CreateXml() 공개 메소드

Creates the XML.
public CreateXml ( ActiveRecordModel model ) : void
model ActiveRecordModel The model.
리턴 void

MakeTypeName() 공개 정적인 메소드

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
리턴 String

Reset() 공개 메소드

Resets this instance.
public Reset ( ) : void
리턴 void

VisitAny() 공개 메소드

Visits any.
public VisitAny ( AnyModel model ) : void
model AnyModel The model.
리턴 void

VisitBelongsTo() 공개 메소드

Visits the belongs to.
public VisitBelongsTo ( BelongsToModel model ) : void
model BelongsToModel The model.
리턴 void

VisitCollectionID() 공개 메소드

Visits the collection ID.
public VisitCollectionID ( CollectionIDModel model ) : void
model CollectionIDModel The model.
리턴 void

VisitCompositePrimaryKey() 공개 메소드

Visits the composite primary key.
public VisitCompositePrimaryKey ( CompositeKeyModel model ) : void
model CompositeKeyModel The model.
리턴 void

VisitCompositeUserType() 공개 메소드

Visits the custom composite user type.
public VisitCompositeUserType ( CompositeUserTypeModel model ) : void
model CompositeUserTypeModel The model.
리턴 void

VisitDependentObject() 공개 메소드

Visits the dependent object.
public VisitDependentObject ( DependentObjectModel model ) : void
model DependentObjectModel The model
리턴 void

VisitField() 공개 메소드

Visits the field.
public VisitField ( FieldModel model ) : void
model FieldModel The model.
리턴 void

VisitHasAndBelongsToMany() 공개 메소드

Visits the has and belongs to many.
public VisitHasAndBelongsToMany ( HasAndBelongsToManyModel model ) : void
model HasAndBelongsToManyModel The model.
리턴 void

VisitHasMany() 공개 메소드

Visits the has many.
public VisitHasMany ( HasManyModel model ) : void
model HasManyModel The model.
리턴 void

VisitHasManyToAny() 공개 메소드

Visits the has many to any.
public VisitHasManyToAny ( HasManyToAnyModel model ) : void
model HasManyToAnyModel The model.
리턴 void

VisitHasManyToAnyConfig() 공개 메소드

Visits the has many to any config.
public VisitHasManyToAnyConfig ( HasManyToAnyModel model ) : void
model HasManyToAnyModel The model.
리턴 void

VisitHilo() 공개 메소드

Visits the hilo.
public VisitHilo ( Castle.ActiveRecord.Framework.Internal.HiloModel model ) : void
model Castle.ActiveRecord.Framework.Internal.HiloModel The model.
리턴 void

VisitImport() 공개 메소드

Visits the import.
public VisitImport ( ImportModel model ) : void
model ImportModel The model.
리턴 void

VisitKey() 공개 메소드

Visits the key.
public VisitKey ( KeyModel model ) : void
model KeyModel The model.
리턴 void

VisitModel() 공개 메소드

Visits the model.
public VisitModel ( ActiveRecordModel model ) : void
model ActiveRecordModel The model.
리턴 void

VisitNested() 공개 메소드

Visits the nested.
public VisitNested ( Castle.ActiveRecord.Framework.Internal.NestedModel model ) : void
model Castle.ActiveRecord.Framework.Internal.NestedModel The model.
리턴 void

VisitNestedParentReference() 공개 메소드

Visits the parent
public VisitNestedParentReference ( NestedParentReferenceModel referenceModel ) : void
referenceModel NestedParentReferenceModel The reference model.
리턴 void

VisitOneToOne() 공개 메소드

Visits the one to one.
public VisitOneToOne ( Castle.ActiveRecord.Framework.Internal.OneToOneModel model ) : void
model Castle.ActiveRecord.Framework.Internal.OneToOneModel The model.
리턴 void

VisitPrimaryKey() 공개 메소드

Visits the primary key.
public VisitPrimaryKey ( PrimaryKeyModel model ) : void
model PrimaryKeyModel The model.
리턴 void

VisitProperty() 공개 메소드

Visits the property.
public VisitProperty ( PropertyModel model ) : void
model PropertyModel The model.
리턴 void

VisitTimestamp() 공개 메소드

Visits the timestamp.
public VisitTimestamp ( TimestampModel model ) : void
model TimestampModel The model.
리턴 void

VisitVersion() 공개 메소드

Visits the version.
public VisitVersion ( VersionModel model ) : void
model VersionModel The model.
리턴 void