Documentation of 'org.apache.derby.iapi.error.SQLWarningFactory' Java class
SQLWarningFactory
org.apache.derby.iapi.error

Class SQLWarningFactory



  • public class SQLWarningFactory
    extends java.lang.Object
    This class generates SQLWarning instances. It has an understanding of Derby's internal error/warning message Ids, and transforms these to localised error messages and appropriate SQLState.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.sql.SQLWarning newSQLWarning(java.lang.String messageId, java.lang.Object... args)
      Generates a SQLWarning instance based on the supplied messageId and arguments.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLWarningFactory

        public SQLWarningFactory()
    • Method Detail

      • newSQLWarning

        public static java.sql.SQLWarning newSQLWarning(java.lang.String messageId,
                                                        java.lang.Object... args)
        Generates a SQLWarning instance based on the supplied messageId and arguments. It looks up the messageId to generate a localised warning message. Also, SQLState is set correctly based on the messageId.
        Parameters:
        messageId - A Derby messageId as defined in org.apache.derby.shared.common.reference.SQLState.
        args - Arguments for the warning message
        Returns:
        Properly initialized SQLWarning instance.
        See Also:
        org.apache.derby.shared.common.reference.SQLState

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.