Skip to content
Advertisement

Mapping SQL NUMERIC[10,0] to java type

I need to map NUMERIC[10,0] parameter type of a sybase stored procedure to a java type.

What would be this type?

Also, if you can help me define a regular expression for this NUMERIC[10,0] type I’ll be greatful.

Advertisement

Answer

Use Long as Integer is to short to map all possible values. Have a look at MAX_VALUE of both types.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement