org.unitils.dbmaintainer.locator
Class ClassPathScriptLocator

java.lang.Object
  extended by org.unitils.dbmaintainer.locator.ClassPathResourceLocator
      extended by org.unitils.dbmaintainer.locator.ClassPathScriptLocator

public class ClassPathScriptLocator
extends ClassPathResourceLocator

Locate db scripts.

Since:
1.0.2
Author:
tdr

Field Summary
protected  String path
           
protected  String schema
           
protected  List<String> scriptExtensions
           
protected  List<Script> scriptList
           
 
Fields inherited from class org.unitils.dbmaintainer.locator.ClassPathResourceLocator
resourceList
 
Constructor Summary
ClassPathScriptLocator()
           
 
Method Summary
protected  void addToScriptList(List<URL> resourcesF, boolean defaultDatabase)
           
protected  boolean isScriptFile(String location)
          Vefiry's of the location ends with a valid file-extension.
 void loadScripts(List<Script> scriptList1, String path1, ResourcePickingStrategie resourcePickingStrategie, List<String> scriptExtensions1, String schema, boolean defaultDatabase)
           
 
Methods inherited from class org.unitils.dbmaintainer.locator.ClassPathResourceLocator
loadResources, searchResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptList

protected List<Script> scriptList

path

protected String path

scriptExtensions

protected List<String> scriptExtensions

schema

protected String schema
Constructor Detail

ClassPathScriptLocator

public ClassPathScriptLocator()
Method Detail

loadScripts

public void loadScripts(List<Script> scriptList1,
                        String path1,
                        ResourcePickingStrategie resourcePickingStrategie,
                        List<String> scriptExtensions1,
                        String schema,
                        boolean defaultDatabase)
Parameters:
scriptList1 -
path1 -
resourcePickingStrategie -
scriptExtensions1 -

addToScriptList

protected void addToScriptList(List<URL> resourcesF,
                               boolean defaultDatabase)
                        throws IOException
Throws:
IOException

isScriptFile

protected boolean isScriptFile(String location)
Vefiry's of the location ends with a valid file-extension.

Parameters:
location -
Returns:


Copyright © 2014. All Rights Reserved.