text
stringlengths
3
1.18M
package com.honey.solr.schema.node; import com.honey.compilation.xml.XmlElement; import com.honey.solr.SolrFactory; import com.honey.solr.schema.SchemaNode; public class UniqueKey implements SchemaNode { private SolrFactory solrFactory; public UniqueKey(SolrFactory solrFactory){ this.solrFactor...
package com.honey.solr.schema.node; import java.util.Iterator; import java.util.List; import java.util.Properties; import com.honey.compilation.xml.XmlElement; import com.honey.core.calculator.JavaNameCalculator; import com.honey.solr.SchemaField; import com.honey.solr.SolrConstant; import com.honey.solr.So...
package com.honey.solr.schema; import com.honey.compilation.xml.XmlElement; public interface SchemaNode { public void appendChildNode(XmlElement root) ; }
package com.honey.solr.schema; import com.honey.compilation.xml.Document; import com.honey.compilation.xml.XmlElement; import com.honey.core.dbmapping.introspect.IntrospectSchemaColumn; import com.honey.core.dbmapping.structure.Schema; import com.honey.core.types.FullyQualifiedJavaType; import com.honey.solr.So...
package com.honey.configureation; import com.honey.core.dbmapping.introspect.IntrospectSchema; import com.honey.core.dbmapping.introspect.IntrospectSchemaColumn; public class SchemaConfiguration { /** * 数据库结构信息 */ private IntrospectSchema introspectSchema ; private IntrospectSchemaColumn intros...
package com.honey.configureation.xmlparser; import java.util.ArrayList; import java.util.List; import java.util.Properties; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; /** * 解...
package com.honey.configureation.xmlparser; import java.io.InputStream; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.java.plugin.boot.Boot; import o...
package com.honey.configureation.holder; import java.util.Properties; import org.w3c.dom.Element; import com.honey.configureation.xmlparser.ParseElement; import com.honey.core.utils.StringUtility; public class PluginHolder implements ConfigurationHolder{ private String pluginid ; private Element ...
package com.honey.configureation.holder; import java.util.Properties; import org.w3c.dom.Element; import com.honey.configureation.xmlparser.ParseElement; /** * JDBC 节点解析 * @author Administrator * */ public class JDBCConnectionHolder implements ConfigurationHolder{ /** jdb jar文件位置*/ private...
package com.honey.configureation.holder; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; import org.w3c.dom.Element; import com.honey.configureation.xmlparser.ParseElement; import com.honey.core.utils.StringUtility; /** * 配置文...
package com.honey.configureation.holder; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Docum...
package com.honey.configureation.holder; import java.util.Properties; import org.w3c.dom.Element; import com.honey.configureation.xmlparser.ParseElement; import com.honey.core.compiler.StorageType; import com.honey.core.utils.StringUtility; public class ProjectEnvironmentHolder implements ConfigurationHol...
package com.honey.configureation.holder; import java.util.Properties; import org.w3c.dom.Element; /** * 配置文件插入点 * @author Administrator * */ public interface ConfigurationHolder { /** * 解析xml节点 * @param element 节点 * @param properties 插件环境变量 */ public void parserElement(Element eleme...
package com.honey.configureation.holder; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Properties; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c....
package com.honey.configureation; import java.util.Properties; import com.honey.configureation.holder.JDBCConnectionHolder; import com.honey.configureation.holder.MappingEnvironmentHolder; import com.honey.configureation.holder.ProjectEnvironmentHolder; public class Context { private Properties systemPrope...
package com.honey.configureation; import java.io.InputStream; import org.java.plugin.Plugin; import org.java.plugin.PluginLifecycleException; import org.java.plugin.registry.Extension; import org.java.plugin.registry.ExtensionPoint; import org.java.plugin.registry.Extension.Parameter; import org.java.plugin....
package com.honey.configureation; import org.java.plugin.util.ExtendedProperties; public interface Configuration { public void initConfiguration( ExtendedProperties properties , String[] arg); }
package com.honey.core.calculator; /** * java名称转换器 * @author Administrator * */ public interface JavaNameCalculator extends Calculator{ /** * java类名称转换器 * @param str 指定字符串 * @return 转换成java类名称 */ public String classNameCalculator(String ...inputString); /** * java方法名称转换器 * @pa...
package com.honey.core.calculator; /** * 名称计算器 * @author Administrator * */ public interface Calculator { }
package com.honey.core.calculator; /** * 数据库字段映射到java的bean字段转换器 * @author Administrator * */ public interface MappingCalculator extends Calculator { /** * 数据库结构(表、视图、临时表、函数、存储过程)名称到java名称转换 * @param schemaName 数据库结构名称 * @return java名称 */ public String schemaCalculator(String ...inputStrin...
package com.honey.core.dbmapping.introspect; import com.honey.core.dbmapping.ActualSchemaName; /** * 从数据库中获取信息 * @author Administrator * */ public interface Introspect { /** * 执行 */ public void introspect(ActualSchemaName actualTableName); }
package com.honey.core.dbmapping.introspect; import com.honey.core.dbmapping.structure.Schema; /** * 用于获取数据库结构的扩展点 * @author Administrator * */ public interface IntrospectSchema extends Introspect{ /** * 返回数据可结构的类型,SchemaType中定义了如下类型:<br /> * TABLE <br /> * VIEW <br /> * TE...
package com.honey.core.dbmapping.introspect; import java.util.List; import com.honey.core.dbmapping.structure.FunctionParameter; /** * 在部分数据库中jdbc是不允许直接调用,例如mysql * 从数据结构中获取列信息 * @author Administrator * */ public interface IntrospectFunctionParameter extends IntrospectSchemaColumn { /** * 获取...
package com.honey.core.dbmapping.introspect; import java.util.List; import com.honey.core.dbmapping.structure.Column; /** * 从数据结构中获取列信息 * @author Administrator * */ public interface IntrospectSchemaColumn extends Introspect { /** * 获取数据库所有的字段 * @return */ public List<Column> allColumns...
package com.honey.core.dbmapping.introspect; import java.util.List; import com.honey.core.dbmapping.structure.TableColumn; /** * 从数据结构中获取列信息 * @author Administrator * */ public interface IntrospectTableColumn extends IntrospectSchemaColumn { /** * 除数据库主键,大字段,外的所有字段 * @return */ public ...
package com.honey.core.dbmapping.introspect; import java.util.List; import com.honey.core.dbmapping.structure.ProcedureParameter; /** * 从数据结构中获取列信息 * @author Administrator * */ public interface IntrospectProcedureParameter extends IntrospectSchemaColumn { /** * 获取存储过程输入参数 * @return */ ...
package com.honey.core.dbmapping.structure; /** * 外键关联关系 举例说明这个关系:<br /> * A表的id字段记为A.id (A是主键表)<br /> * B表的f_1字段记为B.f_1 (B是外键表)<br /> * C表的f_2字段记为C.f_2 (C是外键表)<br /> * 假设:<br /> * A.id是的B.f_1外键<br /> * A.id是的C.f_2外键<br /> * 那么<br /> * 真对于A表<br /> * ExportedKey获取B和B.f_1 以及 C和C.f_2的信息,也就是...
package com.honey.core.dbmapping.structure; /** * 存储过程结构 * @author Administrator * */ public interface Procedure extends Schema{ /** * 存储过程是否返回值, 详情参阅DatabaseMetaData类 * @return */ public ProcedureResultType getProcedureResultType(); /** * 存储过程是否返回值.请参阅DatabaseMetaData类 * @author A...
package com.honey.core.dbmapping.structure; /** * 数据库结构类型定义<br /> * * @author Administrator * */ public enum StructureType { /** 物理表 */ TABLE((short)0,true,"TABLE"), /** 视图 */ VIEW((short)1,false,"VIEW"), /** 临时表 */ TEMPORARY((short)2,false,"TEMPORARY"), /** 存储过程 */ PROCEDURE(...
package com.honey.core.dbmapping.structure; /** * 函数参数结构 * @author Administrator * */ public interface FunctionParameter extends Column{ /** * 存储过程参数类型(指 输入参数 还是输出参数) * @return */ public FunctionColumnType getFunctionColumnType(); /** * * 参数输入输出类型 * * DatabaseMetaData中对get...
package com.honey.core.dbmapping.structure; /** * 存储过程参数结构 * * @author Administrator * */ public interface ProcedureParameter extends Column{ /** * 存储过程参数类型(指 输入参数 还是输出参数) * * @return */ public ProcedureColumnType getProcedureColumnType(); /** * * 参数输入输出类型 * * Data...
package com.honey.core.dbmapping.structure; /** * 数据表的结构 * @author Administrator */ public interface Table extends Schema{ /** * 数据库的catalog * @return */ public String getCatalog() ; /** * 获取数据库的schema * @return */ public String getSchema() ; /** * 获取数据库的别名 * @retur...
package com.honey.core.dbmapping.structure; import java.util.Map; /** * 数据列验证器,数据提交时按照指定的格式进行验证; * @author Administrator * */ public interface ColumnValidator { /** * 获取验证器名称 * @return */ public String getValidatorName(); /** * 验证错误提示信息 * @return */ public String getErrorM...
package com.honey.core.dbmapping.structure; import com.honey.core.types.FullyQualifiedJavaType; import com.honey.core.utils.KeyValuePair; /** * * 在DatabaseSchema类中描述了数据库的结构, 在这些结构中对外操作都需要用的字段.例如:<br /> * table使用列, procedure使用传入参数等,把这些字段抽象出SchemaColumn. * * @author Administrator * */ public inte...
package com.honey.core.dbmapping.structure; import java.util.List; import com.honey.core.types.FullyQualifiedJavaType; /** * 数据库枚举类型, 包含 枚举类的名称和枚举对象. * 父类方法说明<br /> * getName() 返回枚举对象名称,就是数据库字段名称<br /> * getComment() 枚举注释,也可以是字段注释<br /> * 本类方法说明<br /> * getEnums <br /> * 返回枚举列表 * @author A...
package com.honey.core.dbmapping.structure; /** * 外键关联关系. 举例说明这个关系:<br /> * A表的id字段记为A.id (A是主键表)<br /> * B表的f_1字段记为B.f_1 (B是外键表)<br /> * C表的f_2字段记为C.f_2 (C是外键表)<br /> * 假设:<br /> * A.id是的B.f_1外键<br /> * A.id是的C.f_2外键<br /> * 那么<br /> * 真对于A表<br /> * ExportedKeyStructure获取B和B.f_1 以及 C和...
package com.honey.core.dbmapping.structure; import java.util.Map; import com.honey.core.types.Vendor; /** * 数据库结构描述. 一般情况下数据库分为如下几种结构.<br /> * TABLE <br /> * VIEW <br /> * TEMPORARY <br /> * PROCEDURE <br /> * FUNCTION <br /> * 这些结构定义请参阅StructureType这个类 * * @author ...
package com.honey.core.dbmapping.structure; /** * 抽象出数据库结构 * @author Administrator * */ public interface Structure { /** * 获取结构的名称:返回以下几种情况<br /> * SchemaType.TABLE 返回表的名称<br /> * SchemaType.VIEW 返回视图名称<br /> * SchemaType.TEMPORARY 返回表名称<br /> * SchemaType.PROCEDURE 返回存储过程名称<br /> ...
package com.honey.core.dbmapping.structure; /** * 在部分数据库中jdbc是不允许直接调用 * 函数结构 * @author Administrator * */ public interface Function extends Schema{ /** * 函数是否返回值, 详情参阅DatabaseMetaData类 * @return */ public FunctionResultType getFunctionResultType(); /** * 函数是否返回值.请参阅DatabaseMetaData类 ...
package com.honey.core.dbmapping.structure; import java.util.List; /** * 数据库表列的映射继承SchemaColumn * @author Administrator * */ public interface TableColumn extends Column{ /** * 是否是主键 * @return */ public boolean isPrimaryKey() ; /** * 是否是自动增长列 * @return */ public boolean is...
package com.honey.core.dbmapping; import com.honey.core.dbmapping.structure.StructureType; import com.honey.core.utils.StringUtility; /** * 数据库参数信息 * * 常用数据库Catalog和Schema对照表 * <table border="1" cellspacing="0" cellpadding="0"> * <tr> * <td>供应商</td><td >Catalog支持</td><td >Schema支持</td> * </tr...
package com.honey.core; import org.java.plugin.Plugin; /** * 插件不做任何事情 * @author Administrator * */ public abstract class NullPlugin extends Plugin { @Override protected void doStart() throws Exception { } @Override protected void doStop() throws Exception { } }
package com.honey.core.processor; import com.honey.core.dbmapping.structure.Column; public interface ColumnProcessor { public Column processor(Column column); }
package com.honey.core.types; /** * 常用的类 * @author Administrator * */ public class ExceptionFullyQualifiedJavaType extends FullyQualifiedJavaType{ /** * 通过class转换成java对象封装 * @param clazz */ public ExceptionFullyQualifiedJavaType(Class<?> clazz) { super(clazz.getName()); } /** *...
package com.honey.core.types; /** * 常用的类 * @author Administrator * */ public class JDKFullyQualifiedJavaType extends FullyQualifiedJavaType{ /** * 通过class转换成java对象封装 * @param clazz */ public JDKFullyQualifiedJavaType(Class<?> clazz) { super(clazz.getName()); } /** * 通过完整的字符串包转换成ja...
package com.honey.core.types; /** * 数据类型,包括一下几种类型:<br /> * <ul> * <li> * jdbc 类型 * </li> * <li> * sql类型 * </li> * <li> * java对象类型 * </li> * </ul> * @author Administrator * */ public class DataType { /** 数据库类型名称 */ private String databaseName; /** jdbc中 ...
package com.honey.core.types.translator; import java.sql.Types; import java.util.HashMap; import java.util.Map; import com.honey.core.types.DataType; import com.honey.core.types.JavaTypeResolver; /** * JDK定义数据库类型转到java.sql.Types类型 * @author Administrator * */ public class JdkJdbcTypeNameTranslator...
package com.honey.core.types.translator; import java.sql.Types; import java.util.Map; import com.honey.core.types.DataType; import com.honey.core.types.JdbcTypeNameTranslator; /** * 抽象虚类转换器 * @author Administrator * */ public abstract class AbstractJdbcTypeNameTranslator implements JdbcTypeNameTrans...
package com.honey.core.types.translator; import java.util.HashMap; import java.util.Map; import com.honey.core.types.DataType; /** * SqlServer 数据库类型映射,同样适用sybase数据库<br /> * 关系映射来源jtds-1.2.6-src.zip(SqlServer/sybase jdbc驱动),源码中的TdsData类 * @author Administrator * */ public class SqlServerJdbcTypeName...
package com.honey.core.types.translator; import java.sql.Types; import java.util.HashMap; import java.util.Map; import com.honey.core.types.DataType; /** * postgre数据库类型到java.sql.Types类型数据转换<br /> * 没有完全支持postgre数据库类型<br /> * @author Administrator * */ public class PostgreJdbcTypeNameTranslator ext...
package com.honey.core.types.translator; import java.sql.Types; import java.util.HashMap; import java.util.Map; import com.honey.core.types.DataType; /** * * sql 92 数据类型转换 * @author Administrator * */ public class SQL92JdbcTypeNameTranslator extends AbstractJdbcTypeNameTranslator{ /**java.sql.T...
package com.honey.core.types.translator; import java.sql.Types; import java.util.HashMap; import java.util.Map; import com.honey.core.types.DataType; /** * mysql 数据库类型转换 * @author Administrator * */ public final class MysqlJdbcTypeNameTranslator extends AbstractJdbcTypeNameTranslator { /**数据...
package com.honey.core.types; /** * 数据库类型转到java.sql.Types类型 * @author Administrator * */ public interface JdbcTypeNameTranslator { /** * 根据java.sql.Types获取数据库类型 * @param jdbcType java.sql.Types类型 * @return DataType */ @Deprecated public DataType getJdbcTypeName(int jdbcType) ; /**...
package com.honey.core.types; import com.honey.core.types.translator.MysqlJdbcTypeNameTranslator; import com.honey.core.types.translator.PostgreJdbcTypeNameTranslator; import com.honey.core.types.translator.JdkJdbcTypeNameTranslator; import com.honey.core.types.translator.SQL92JdbcTypeNameTranslator; import com....
package com.honey.core.types; public class PrimitiveTypeWrapper extends FullyQualifiedJavaType { private static PrimitiveTypeWrapper booleanInstance; private static PrimitiveTypeWrapper byteInstance; private static PrimitiveTypeWrapper characterInstance; private static PrimitiveTypeWrapper doubleInstance; ...
package com.honey.core.types; import java.math.BigDecimal; import java.sql.Types; import java.util.Date; import java.util.HashMap; import java.util.Map; import com.honey.core.dbmapping.structure.Column; import com.honey.core.dbmapping.structure.TableColumn; /** * java.sql.Types类型转到java对象类型 * * @aut...
package com.honey.core.types; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import com.honey.compilation.java.JavaKeyWord; import com.honey.core.utils.StringUtility; /** * java 类型封装. 子类的写法: com.packagename.ParentClassName$ChildClassName * @author Administrator ...
package com.honey.core.types; /** * 常用的类 * @author Administrator * */ public class ServletFullyQualifiedJavaType extends FullyQualifiedJavaType{ /** * 通过class转换成java对象封装 * @param clazz */ public ServletFullyQualifiedJavaType(Class<?> clazz) { super(clazz.getName()); } /** * 通过完...
package com.honey.core.utils; import java.io.File; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; /** * 导入jar到系统的ClassLoader中. * * @author Administrator * */ public c...
package com.honey.core.utils; import java.lang.reflect.Field; import java.lang.reflect.InvocationHandler; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Proxy; /** * 反射通用类 * @author Administrator * */ public class ReflectUtility { /**...
package com.honey.core.utils; /** * 键值对 * @author Administrator * */ public class KeyValuePair { /** 键 */ private String key; /** 值 */ private String value; /** * 构造函数 * @param key 键 * @param value 值 */ public KeyValuePair(String key, String value) { this.key = key; t...
package com.honey.core.utils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * 时间格式化通用类 * @author Administrator * */ public class TimeUtility { static public final String FORMAT_DATE_ONLY_CH = "yyyy年MM月dd日"; static public f...
package com.honey.core.utils; /** * 十六进制编/解码 * @author Administrator * */ public class HexCode { /** 十六进制使用字符 */ private final static char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; /** * 编码 * @param data * @return */ public final...
package com.honey.core.utils; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.security.MessageDigest; import java.security.NoSuchAlgorithmExcept...
package com.honey.core.utils; import java.lang.reflect.Field; /** * 打印出对象中字段属性值 * * @author Administrator * */ public class ObjectDump { public static String dump(Object obj) { String answer = null; if (obj != null) { try { Class<?> cls = obj.getClass(); answer = "[[" + obj.ge...
package com.honey.core.utils; import java.util.Locale; import com.honey.core.types.FullyQualifiedJavaType; import com.honey.core.types.JDKFullyQualifiedJavaType; /** * java beans 工具类 * * @author Administrator * */ public class JavaBeansUtil { /** * 生成getter 方法 * @param javaProperty 字符串...
package com.honey.core.utils; import java.io.File; import java.util.Collection; import java.util.Enumeration; import java.util.Iterator; import java.util.Map; /** * 对象为空通用判定类 * @author Administrator * */ public class EmptyUtility { /** * str==null 或者 str.length ==0 返回true * @param str *...
package com.honey.core.utils; public class Constant { public static final String VERSION ="v3.0"; public static final String SINCE="1.5" ; public static final String PROJECT_NAME="Honey v3.0 Test" ; }
package com.honey.core.utils; import java.util.Collection; import org.java.plugin.Plugin; import org.java.plugin.PluginLifecycleException; import org.java.plugin.registry.Extension; import org.java.plugin.registry.ExtensionPoint; import org.java.plugin.registry.Extension.Parameter; import com.honey.core.se...
package com.honey.core.utils; import java.util.Random; /** * 随机字符串 * * @author Administrator * */ public class RandomStringUtils { private static final Random RANDOM = new Random(); public RandomStringUtils() { super(); } /** * 随机数字 * * @param count * @return */ public static String random...
package com.honey.core.utils; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.util.HashMap; import java.util.Map; /** * Io 类库 * @a...
package com.honey.core.utils; public enum JavaVersion { JAVA_0_9(1.5f, "0.9"), /** * Java 1.1. */ JAVA_1_1(1.1f, "1.1"), /** * Java 1.2. */ JAVA_1_2(1.2f, "1.2"), /** * Java 1.3. */ JAVA_1_3(1.3f, "1.3"), /** * Java 1.4. */ ...
package com.honey.core.builder; /** * 字符缓冲 * @author Administrator * */ public interface CharacterBuilder { public CharacterBuilder append(CharacterBuilder sb); /** * 追加对象 * @param obj * @return */ public CharacterBuilder append(Object obj); /** * 追加字符串 * @param str *...
package com.honey.core.builder; /** * 优化jdk的StringBuilder * * @author Administrator * */ public final class OptimizeStringBuilder implements CharacterBuilder { /** * 默认缓冲区容量大小16 */ private static final int DEFAULT_INITIAL_CAPACITY = 16; /** * 默认的扩容因子 */ private static final flo...
package com.honey.core.builder; /** * * 代码中大量使用StringBuilder,而FastStringBuilder针对StringBuilder的特殊优化 * * @author Administrator * */ public final class CharacterBuilderFactory { /** * 返回系统默认的StringBuilder. * * @return */ public static CharacterBuilder createDefaultStringBuilder()...
package com.honey.core.builder; /** * 优化StringBuilder,实现StringBuilder大部分方法. * * @author Administrator * */ public final class FastStringBuilder implements CharacterBuilder , CharSequence, Appendable, java.io.Serializable { private static final long serialVersionUID = -3281631510453736993L; /*...
package com.honey.core.formater; import java.io.File; import com.honey.core.compiler.CompilationType; public interface CodeFormater { /** * 支持格式化的代码文件的类型 * @return */ public CompilationType[] supportCompilationTypes( ); /** * 格式或代码 * @param code 源代码文件流 * @return */ public vo...
package com.honey.core.writer; import java.io.File; import com.honey.core.compiler.CompilationDescriptor; /** * 编译后的内容写入文件中 * @author Administrator * */ public interface CompilationWriter { /** * 按照编译描述符写入文件 * @param compilationDescriptor */ public void writeToFile(CompilationDescripto...
package com.honey.core; import java.util.List; import java.util.Map; import org.java.plugin.PluginLifecycleException; import com.honey.core.notify.Notify; import com.honey.core.notify.Signal; import com.honey.core.utils.EmptyUtility; class NotifyToPlugin { Map<Class<Signal>, List<Notify>> notifies = ...
package com.honey.core; public final class PluginConstent { /** 获取数据库结构参数 */ public static final String EXTENSION_INTROSPECT_SCHEMA = "IntrospectSchema" ; /** 获取存储过程参数插入点 */ public static final String EXTENSION_INTROSPECT_PROCEDURE_PARAMETER="IntrospectProcedureParameter" ; /** 获取数据库列的插入点 */ pu...
package com.honey.core; import org.java.plugin.Plugin; /** * 扩展点, * @author Administrator * */ public abstract class Extension<T extends Plugin> { /** 扩展点所属的plugin */ private T belongPlugin; /** * 构造函数 * @param belongPlugin */ public Extension(T belongPlugin){ this.belongPlugin...
package com.honey.core.feature; import java.io.File; import com.honey.core.compiler.Compilation; import com.honey.core.compiler.CompilationType; import com.honey.core.types.FullyQualifiedJavaType; /** * * @author Administrator * */ public interface SourceCodeFeature{ /** * 支持抽取文件特征的文件类型 ...
package com.honey.core.feature; /** * * 对编译的内容划分成块,实现子类分别实现块结构的特征. * @author Administrator * */ public interface Feature { /** * 内容块的名称 * @return */ public String blockName(); /** * 当前名称所指定的块的特征值 * @return */ public String feater(); /** * 用于识别块的唯一值. * @return ...
package com.honey.core.exception; import java.io.PrintWriter; import java.io.PrintStream; public class UncheckedException extends RuntimeException { /** * */ private static final long serialVersionUID = 1L; protected final Throwable cause; /** * Divider between causes printouts. */ ...
package com.honey.core.exception; public class HoneyException extends Exception{ private static final long serialVersionUID = -8291103679721902366L; public HoneyException(String message) { super(message); } }
package com.honey.core.exception; import java.io.StringWriter; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.sql.SQLException; import java.lang.reflect.InvocationTargetException; public class ExceptionUtil { /** * 获取当前异常堆栈的所有节点 * @return */ public...
package com.honey.core.notify; public class SpringSignal extends Signal{ private String springContextFile = null; public String getSpringContextFile() { return springContextFile; } public void setSpringContextFile(String springContextFile) { this.springContextFile = springContextFile; } ...
package com.honey.core.notify; /** * 通知的信号 * @author Administrator * */ public class Signal { /** 通知信号的来源插件 */ private String fromPlugin = null; /** 通知信号的目的插件 */ private String toPlugin = null; /** 通知信号的内容 */ private Object attachment = null; /** * @return the fromPlugin */ ...
package com.honey.core.notify; /** * xml通知 * @author Administrator * */ public class XmlSignal extends Signal{ }
package com.honey.core.notify; /** * 接收通知 * @author Administrator * */ public interface Notify { /** * 支持信号量类型 * @return */ public Class<Signal>[] supportSignal(); /** * 插件执行通知过来的信号 * @param signal */ public void execute( Signal signal ); }
package com.honey.core; import java.io.File; import java.sql.SQLException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.java.plugin.PluginLifecycleException; import org.java.plugin.boot.Application; import org.java...
package com.honey.core.compiler; import com.honey.core.builder.CharacterBuilder; /** * * 文件缩进格式 * * @author Administrator * */ public final class IndentSpace { /** 系统支持的回车符号 */ public static final String lineSeparator; static { String ls = System.getProperty("line.separator"); if (...
package com.honey.core.compiler; /** * 编译异常 * @author Administrator * */ public class CompilationException extends Exception{ private static final long serialVersionUID = -8291103679721902366L; public CompilationException(String message) { super(message); } }
package com.honey.core.compiler; /** * 文件存储类型 * @author Administrator * */ public enum StorageType { /** 备份存储 */ BACKUP_STORAGE ("Backup"), /** 多文件存储 */ MULTI_STORAGE ("Multi"), /** 强制覆盖存储,不验证文件正确性,强制覆盖源文件,不建议使用 */ OVERRIDE_STORAGE ("Override"), /** 验证文件存储,文件验证通过覆盖文件,如果验证失败跳过生成,建...
package com.honey.core.compiler; import java.io.File; /** * 编译文件描述符 * @author Administrator * */ public class CompilationDescriptor { /** 文件编译器 */ private Compilation compilation; /** 编译后的文件所在的工作空间目录 */ private String workSpace; /** 文件类型 */ private CompilationType compilationType ; ...
package com.honey.core.compiler; /** * 文件类型 * @author Administrator * */ public enum CompilationType { /** java文件 */ JAVA((short)0, "java", false ), /** xml文件 */ XML((short)1 ,"xml", false ), /** properties文件 */ PROPERTIES((short)2 ,"properties", false ), /** sql文件 */ SQL ((sh...
package com.honey.core.compiler; import java.util.List; import com.honey.core.builder.CharacterBuilder; import com.honey.core.types.FullyQualifiedJavaType; /** * 文件编译器,用于各种文件编译接口 * @author Administrator * */ public interface Compilation { /** * 编译文件内容 * * @return */ public Charact...
package com.honey.core.compiler; /** * 生成类的主要用途和内容 * @author Administrator * */ public enum ContentType { /** 实体bean类 */ JAVA_ENTITY_BEEN , /** DAO 接口类 */ JAVA_DAO_INTERFACE , /** DAO 接口实现类 */ JAVA_DAO_IMPLEMENTS , /** base DAO 接口类 */ JAVA_BASE_DAO, /** Service接口类 */ J...
package com.honey.core.compiler; import com.honey.core.builder.CharacterBuilder; /** * 编译文件内容节点 * * @author Administrator * */ public interface CompilationElement { /** * 按照缩进级别编译文件节点 * @param indentLevel 缩进级别 * @return * @throws CompilationException */ public CharacterBuilde...
package com.honey.core; import org.java.plugin.Plugin; import org.java.plugin.PluginLifecycleException; import org.java.plugin.registry.Extension; import org.java.plugin.registry.ExtensionPoint; import org.java.plugin.util.ExtendedProperties; import com.honey.configureation.ConfigurationPlugin; import com.ho...