Skip to content

Commit

Permalink
db2hbm/hbm2net:added some credits
Browse files Browse the repository at this point in the history
git-svn-id: https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk@1272 d7b3437e-3345-0410-94a8-cbd290e69f67
  • Loading branch information
felpo committed Feb 23, 2010
1 parent 21cfa42 commit 184a7bf
Show file tree
Hide file tree
Showing 43 changed files with 132 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
abstract class AlterActionBase
{
protected string Name { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
class ApplyEntityExceptionsStrategy:IMetadataStrategy
{
public ILog Logger { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
[global::System.Serializable]
public class ConfigurationValidationException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class ConfigurationValidator
{
public string WarningMessage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class DefaultNamingStrategy:INamingStrategy
{
public DefaultNamingStrategy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class EntityException
{
Regex entityMatch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
static class Extensions
{
public static bool ParseFromDb(this bool boolean,string data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class FirstPassEntityCollector:IMetadataStrategy
{
GenerationContext currentContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.Db2hbm.ForeignKeyCrawlers
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
class MSSQLForeignKeyCrawlerFactory : IForeignKeyCrawlerFactory
{
public void Register()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public static class ForeignKeyCrawlersRegistar
{
static Dictionary<System.Type, IForeignKeyCrawlerFactory> factories = new Dictionary<System.Type,IForeignKeyCrawlerFactory>() ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class GenerationContext
{
public GenerationContext()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IForeignKeyColumnInfo
{
string PrimaryKeyColumnName { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IForeignKeyCrawlerFactory
{
IForeignKeyCrawler Create();
void Register();
}
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IForeignKeyCrawler
{
IForeignKeyColumnInfo[] GetForeignKeyColumns(DbConnection dbConnection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IMappingModel
{
@class AddClassForTable(string tableName,string entityName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IMetadataStrategy
{
void Process(GenerationContext context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface INamingStrategy
{
string GetEntityNameFromTableName(string tableName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IStreamProvider
{
TextWriter GetTextWriter(string entityName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface ITableExceptions
{
db2hbmconfTable GetTableException(string table, string catalog, string schema);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public abstract class KeyAwareMetadataStrategy:IMetadataStrategy
{
GenerationContext currentContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class ManyToManyStrategy:KeyAwareMetadataStrategy
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class ManyToOneStrategy : KeyAwareMetadataStrategy
{
GenerationContext currentContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
class MappingModelImpl:IMappingModel
{
Dictionary<string, @class> entityMapByTable = new Dictionary<string, @class>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
abstract class MemberExceptionBase
{
protected abstract bool IsMatch(object item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
class PrimaryKeyStrategy:KeyAwareMetadataStrategy
{
const string ISIDENTITY = "IsIdentity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class SetStrategy:KeyAwareMetadataStrategy
{
GenerationContext context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class SetToMapStrategy:KeyAwareMetadataStrategy
{
GenerationContext context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class StdoutStreamProvider:IStreamProvider
{
#region IStreamProvider Members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

namespace NHibernate.Tool.Db2hbm
{

///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class TableEnumerator:IEnumerable<DataRow>
{
public static db2hbmconf Configuration { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
class TableExceptions:ITableExceptions
{
Dictionary<string, db2hbmconfTable> exceptions = new Dictionary<string, db2hbmconfTable>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class TypeConverter
{
class CandidateType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace NHibernate.Tool.Db2hbm
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public static class TypeFactory
{
static Dictionary<System.Type, object> services = new Dictionary<System.Type, object>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
[AttributeUsage(AttributeTargets.Property,AllowMultiple=false)]
public class OptionAttribute:Attribute
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class CommandLineParser
{
List<string> fileNames;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
[global::System.Serializable]
public class ConfigurationValidationException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class ConfigurationValidator
{
public string WarningMessage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

namespace NHibernate.Tool.hbm2net.T4
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class CustomHost : ITextTemplatingEngineHost
{
static Dictionary<string, System.Type> directiveProcessors = new Dictionary<string, System.Type>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public class Hbm2NetParameters:CommandLineParser
{
public Hbm2NetParameters(string[] args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface ICanProvideStream
{
Stream GetStream(ClassMapping clazz,string outputDirectory,out string fileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace NHibernate.Tool.hbm2net
{
///<author>
/// Felice Pollano (felice@felicepollano.com)
///</author>
public interface IFileCreationObserver
{
void FileCreated(string path);
Expand Down
Loading

0 comments on commit 184a7bf

Please sign in to comment.