public DefaultRevisionInfoGenerator(String revisionInfoEntityName, System.Type revisionInfoT,
            //Class<? extends RevisionListener> listenerClass,
            PropertyData revisionInfoTimestampData
            /*, bool timestampAsDate */)
        {
            this.revisionInfoEntityName = revisionInfoEntityName;
            this.revisionInfoType = revisionInfoT;
            this.revisionInfoTimestampData = revisionInfoTimestampData;

            //if (!listenerClass.equals(RevisionListener.class)) {
            //    // This is not the default value.
            //    try {
            //        evtDelegate = listenerClass.newInstance();
            //    } catch (InstantiationException e) {
            //        throw new MappingException(e);
            //    } catch (IllegalAccessException e) {
            //        throw new MappingException(e);
            //    }
            //} else {
                // Default evtDelegate - none
                newRevisionDelegate = null;
            //}
        }
示例#2
0
        public DefaultRevisionInfoGenerator(String revisionInfoEntityName, System.Type revisionInfoT,
                                            //Class<? extends RevisionListener> listenerClass,
                                            PropertyData revisionInfoTimestampData
                                            /*, bool timestampAsDate */)
        {
            this.revisionInfoEntityName    = revisionInfoEntityName;
            this.revisionInfoType          = revisionInfoT;
            this.revisionInfoTimestampData = revisionInfoTimestampData;


            //if (!listenerClass.equals(RevisionListener.class)) {
            //    // This is not the default value.
            //    try {
            //        evtDelegate = listenerClass.newInstance();
            //    } catch (InstantiationException e) {
            //        throw new MappingException(e);
            //    } catch (IllegalAccessException e) {
            //        throw new MappingException(e);
            //    }
            //} else {
            // Default evtDelegate - none
            newRevisionDelegate = null;
            //}
        }