j2ee thread: how do u know how many sql statements have been added to batch
i have a peculiar poblem iam actually checking in the database whethere the login exists if it doesnt im adding it to a batch with one more data and executing the batch all works fine if the login and the other field doesnt exist but if exists then there wont be any thing in the batch but at the end im using executeBatch which will throw an null pouinter exception how do u find how many statements were added to the batch and how dod u check if the batch is null pls help
|





