public static String nativeEventsTableName ( final StreamId streamId ) { // User defined ID if ( streamId instanceof JpaStreamId ) { final JpaStreamId jpaId = ( JpaStreamId ) streamId ; return jpaId . getNativeTableName ( ) ; } // Default ID if ( streamId . isProjection ( ) ) { return camel2Underscore ( streamId . getName ( ) ) ; } if ( streamId . getParameters ( ) . size ( ) == 0 ) { return NoParamsEvent . NO_PARAMS_EVENTS_TABLE ; } return camel2Underscore ( streamId . getName ( ) ) + "_events" ; }
Returns a native database events table name .