public static boolean useSequenceForOrderNumber ( WorkspaceEntry wsConfig , String dbDialect ) throws RepositoryConfigurationException { try { if ( wsConfig . getContainer ( ) . getParameterValue ( JDBCWorkspaceDataContainer . USE_SEQUENCE_FOR_ORDER_NUMBER , JDBCWorkspaceDataContainer . USE_SEQUENCE_AUTO ) . equalsIgnoreCase ( JDBCWorkspaceDataContainer . USE_SEQUENCE_AUTO ) ) { return JDBCWorkspaceDataContainer . useSequenceDefaultValue ( ) ; } else { return wsConfig . getContainer ( ) . getParameterBoolean ( JDBCWorkspaceDataContainer . USE_SEQUENCE_FOR_ORDER_NUMBER ) ; } } catch ( RepositoryConfigurationException e ) { return JDBCWorkspaceDataContainer . useSequenceDefaultValue ( ) ; } }
Use sequence for order number .