Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,254 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/com/speedment/orm/config/model/ConfigEntityConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* | ||
* Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); You may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package com.speedment.orm.config.model; | ||
|
||
/** | ||
* Copyright (c), Speedment AB | ||
* @author pemi | ||
*/ | ||
public class ConfigEntityConstant { | ||
|
||
public static final String XMLTAG_IDXCOL = "INDEX_COLUMN"; | ||
public static final String XMLTAG_PMGR = "PROJECT_MANAGER"; | ||
public static final String XMLTAG_PROJ = "PROJECT"; | ||
public static final String XMLTAG_DBMS = "DBMS"; | ||
public static final String XMLTAG_SCH = "SCHEMA"; | ||
public static final String XMLTAG_TBL = "TABLE"; | ||
public static final String XMLTAG_COL = "COLUMN"; | ||
public static final String XMLTAG_IDX = "INDEX"; | ||
public static final String XMLTAG_FGK = "FK"; | ||
public static final String XMLTAG_FKCOL = "FK_COLUMN"; | ||
public static final String XMLTAG_PKCOL = "PK_COLUMN"; | ||
public static final String XMLATR_NAME = "NAME"; | ||
public static final String XMLATR_POS = "POSITION"; | ||
public static final String XMLATR_DFLT = "DEFAULT"; | ||
public static final String XMLATR_NULL = "NULL"; | ||
public static final String XMLATR_DEC = "DECIMALS"; | ||
public static final String XMLATR_SIZE = "SIZE"; | ||
public static final String XMLATR_TYPE = "TYPE"; | ||
public static final String XMLATR_PRI = "PRIMARY"; | ||
public static final String XMLATR_PKCOL = "PKCOLUMN"; | ||
public static final String XMLATR_PKTBL = "PKTABLE"; | ||
public static final String XMLATR_CATALOG = "CATALOG_NAME"; | ||
public static final String XMLATR_SCHEMA = "SCHEMA_NAME"; | ||
public static final String XMLATR_ASC = "ASCDESC"; | ||
public static final String XMLATR_UNI = "UNIQUE"; | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
src/main/java/com/speedment/orm/config/model/ConfigEntityFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* | ||
* Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); You may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package com.speedment.orm.config.model; | ||
|
||
import com.speedment.orm.annotations.Api; | ||
import com.speedment.orm.platform.Component; | ||
import com.speedment.orm.platform.SpeedmentPlatform; | ||
|
||
/** | ||
* | ||
* @author pemi | ||
*/ | ||
@Api(version = 0) | ||
public interface ConfigEntityFactory extends Component { | ||
|
||
static ConfigEntityFactory getInstance() { | ||
return SpeedmentPlatform.getInstance().get(ConfigEntityFactory.class); | ||
} | ||
|
||
ProjectManager newProjectManager(); | ||
|
||
Project newProject(); | ||
|
||
Dbms newDbms(); | ||
|
||
Schema newSchema(); | ||
|
||
Table newTable(); | ||
|
||
Column newColumn(); | ||
|
||
Index newIndex(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.