Package ProblemDomainComponent

Examples of ProblemDomainComponent.systemLogClass


                try{
                   
                    if( !configuration.getField( "audittrail" ).equals( "yes" ) ) return;
                   
                    systemLogClass loggedAction = new systemLogClass();

                    loggedAction.setLog_id( 0 );
                    loggedAction.setLog_user( transaction.getSESSION_ID() );       
                    loggedAction.setLog_time( KMetaUtilsClass.timeStamp() );
                    loggedAction.setLog_action( action );
                    loggedAction.setLog_object_id( target.getOID() );
                    loggedAction.setLog_object_class( target.getClass().getName() );

                    if( message.length() > 4000 ) message = message.substring( 0, 4000 );
                    loggedAction.setLog_object_message( message );       

                    transaction.getEntityManager().persist( loggedAction );
                   
                }catch( Exception error){                   
                    throw new KExceptionClass( "Can not add audit trial entry to database", error  );
View Full Code Here

TOP

Related Classes of ProblemDomainComponent.systemLogClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.