File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed
java/org/mybatis/dynamic/sql/util
resources/org/mybatis/dynamic/sql/util Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1818public abstract class GeneralInsertMappingVisitor <R > implements ColumnMappingVisitor <R > {
1919 @ Override
2020 public final R visit (SelectMapping mapping ) {
21- throw new UnsupportedOperationException ();
21+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "1" )); //$NON-NLS-1$ //$NON-NLS-2$
2222 }
2323
2424 @ Override
2525 public final R visit (PropertyMapping mapping ) {
26- throw new UnsupportedOperationException ();
26+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "2" )); //$NON-NLS-1$ //$NON-NLS-2$
2727 }
2828
2929 @ Override
3030 public final R visit (PropertyWhenPresentMapping mapping ) {
31- throw new UnsupportedOperationException ();
31+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "3" )); //$NON-NLS-1$ //$NON-NLS-2$
3232 }
3333
3434 @ Override
3535 public final R visit (ColumnToColumnMapping columnMapping ) {
36- throw new UnsupportedOperationException ();
36+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "4" )); //$NON-NLS-1$ //$NON-NLS-2$
3737 }
3838}
Original file line number Diff line number Diff line change 1818public abstract class InsertMappingVisitor <R > implements ColumnMappingVisitor <R > {
1919 @ Override
2020 public final <T > R visit (ValueMapping <T > mapping ) {
21- throw new UnsupportedOperationException ();
21+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "5" )); //$NON-NLS-1$ //$NON-NLS-2$
2222 }
2323
2424 @ Override
2525 public final <T > R visit (ValueOrNullMapping <T > mapping ) {
26- throw new UnsupportedOperationException ();
26+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "6" )); //$NON-NLS-1$ //$NON-NLS-2$
2727 }
2828
2929 @ Override
3030 public final <T > R visit (ValueWhenPresentMapping <T > mapping ) {
31- throw new UnsupportedOperationException ();
31+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "7" )); //$NON-NLS-1$ //$NON-NLS-2$
3232 }
3333
3434 @ Override
3535 public final R visit (SelectMapping mapping ) {
36- throw new UnsupportedOperationException ();
36+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "8" )); //$NON-NLS-1$ //$NON-NLS-2$
3737 }
3838
3939 @ Override
4040 public final R visit (ColumnToColumnMapping columnMapping ) {
41- throw new UnsupportedOperationException ();
41+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "9" )); //$NON-NLS-1$ //$NON-NLS-2$
4242 }
4343}
Original file line number Diff line number Diff line change 1818public abstract class MultiRowInsertMappingVisitor <R > extends InsertMappingVisitor <R > {
1919 @ Override
2020 public final R visit (PropertyWhenPresentMapping mapping ) {
21- throw new UnsupportedOperationException ();
21+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "12" )); //$NON-NLS-1$ //$NON-NLS-2$
2222 }
2323}
Original file line number Diff line number Diff line change 1818public abstract class UpdateMappingVisitor <R > implements ColumnMappingVisitor <R > {
1919 @ Override
2020 public final R visit (PropertyMapping mapping ) {
21- throw new UnsupportedOperationException ();
21+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "10" )); //$NON-NLS-1$ //$NON-NLS-2$
2222 }
2323
2424 @ Override
2525 public final R visit (PropertyWhenPresentMapping mapping ) {
26- throw new UnsupportedOperationException ();
26+ throw new UnsupportedOperationException (Messages . getString ( "ERROR.31" , "11" )); //$NON-NLS-1$ //$NON-NLS-2$
2727 }
2828}
Original file line number Diff line number Diff line change @@ -46,3 +46,4 @@ ERROR.27=You must specify a "from" clause before any other clauses in a select s
4646ERROR.28 =You must specify a select statement in a sub query
4747ERROR.29 =Insert Select Statements Must Contain an "into" phrase
4848ERROR.30 =The parameters for insertMultipleWithGeneratedKeys must contain exactly one parameter of type String
49+ ERROR.31 =Internal Error {0}
You can’t perform that action at this time.
0 commit comments